From: Andrew Tridgell Date: Sat, 27 Mar 2010 04:12:56 +0000 (+1100) Subject: s4-waf: install the rest of our python files X-Git-Tag: samba-3.6.0pre1~3398 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=bd7bf0e1a91b6e6c78a52a458d3959ef84f4d3e3 s4-waf: install the rest of our python files --- diff --git a/lib/subunit/python/wscript_build b/lib/subunit/python/wscript_build index f690ae30d5b..a4d1bec301a 100644 --- a/lib/subunit/python/wscript_build +++ b/lib/subunit/python/wscript_build @@ -14,3 +14,8 @@ bld.SAMBA_SCRIPT('python_subunit', bld.SAMBA_SCRIPT('python_testtools', pattern='testtools/**/*.py', installdir='python') + +bld.INSTALL_WILDCARD('${PYTHONDIR}', 'subunit/**/*.py', flat=False) +bld.INSTALL_WILDCARD('${PYTHONDIR}', 'testtools/**/*.py', flat=False) +bld.INSTALL_WILDCARD('${PYTHONDIR}', 'iso8601/**/*.py', flat=False) + diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build index e4310e828fa..ad0ac198732 100644 --- a/source4/librpc/wscript_build +++ b/source4/librpc/wscript_build @@ -744,3 +744,5 @@ bld.SAMBA_SCRIPT('python_dcerpc_init', pattern='rpc/dcerpc.py', installdir='python/samba/dcerpc', installname='__init__.py') + +bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py') diff --git a/source4/scripting/python/samba_external/wscript_build b/source4/scripting/python/samba_external/wscript_build new file mode 100644 index 00000000000..fcb2135e278 --- /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 cfa028f4a47..6d2fe9204cc 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) diff --git a/source4/setup/wscript_build b/source4/setup/wscript_build index 1ad5edc6d99..06ce1cccd45 100644 --- a/source4/setup/wscript_build +++ b/source4/setup/wscript_build @@ -10,11 +10,3 @@ for p in '''schema-map-* DB_CONFIG *.inf *.ldif *.reg *.zone *.conf *.php *.txt provision.smb.conf.standalone'''.split(): bld.INSTALL_WILDCARD('${SETUPDIR}', p) -# echo "Installing external python libraries" -# mkdir -p $PYTHONDIR/samba_external || exit 1 -# for p in $($PYTHON scripting/python/samba_external/missing.py); -# do -# echo "Installing missing python library $p" -# mkdir -p $PYTHONDIR/samba_external/$p -# cp -r scripting/python/samba_external/$p/* $PYTHONDIR/samba_external/$p/ || exit 1 -# done