From bd7bf0e1a91b6e6c78a52a458d3959ef84f4d3e3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 Mar 2010 15:12:56 +1100 Subject: s4-waf: install the rest of our python files --- source4/scripting/python/samba_external/wscript_build | 9 +++++++++ source4/scripting/python/wscript_build | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 source4/scripting/python/samba_external/wscript_build (limited to 'source4/scripting') diff --git a/source4/scripting/python/samba_external/wscript_build b/source4/scripting/python/samba_external/wscript_build new file mode 100644 index 0000000000..fcb2135e27 --- /dev/null +++ b/source4/scripting/python/samba_external/wscript_build @@ -0,0 +1,9 @@ +# work out what external modules need to be installed +external_list = [] +try: + import dns.resolver +except: + external_list.append("dnspython") + +for e in external_list: + bld.INSTALL_WILDCARD('${PYTHONDIR}/samba_external', e + '/**/*', flat=False, exclude='*.pyc') diff --git a/source4/scripting/python/wscript_build b/source4/scripting/python/wscript_build index cfa028f4a4..6d2fe9204c 100644 --- a/source4/scripting/python/wscript_build +++ b/source4/scripting/python/wscript_build @@ -36,3 +36,7 @@ bld.SAMBA_SUBSYSTEM('EXT_LIB_PYTHON', '') bld.SAMBA_SCRIPT('samba_python', pattern='samba/**/*.py', installdir='python') + +bld.BUILD_SUBDIR('samba_external') + +bld.INSTALL_WILDCARD('${PYTHONDIR}', 'samba/**/*.py', flat=False) -- cgit