X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=third_party%2Fwscript;fp=third_party%2Fwscript;h=8e7581f1e6c5ce3488b3c88ff9652691e0c11234;hb=e50342f33d5969f34e5b83f1ed3e7644470fb2ce;hp=0000000000000000000000000000000000000000;hpb=d16c0e369ef58a4051c9c917f9448acebf21d010;p=vlendec%2Fsamba-autobuild%2F.git diff --git a/third_party/wscript b/third_party/wscript new file mode 100644 index 00000000000..8e7581f1e6c --- /dev/null +++ b/third_party/wscript @@ -0,0 +1,36 @@ +#!/usr/bin/env python + +import os + +# work out what python external libraries we need to install +external_libs = { + "dns.resolver": "dnspython/dns", + "iso8601": "pyiso8601/iso8601", + } + + +def configure(conf): + conf.RECURSE('popt') + conf.RECURSE('zlib') + + +def build(bld): + list = [] + + for module, package in external_libs.items(): + try: + __import__(module) + except ImportError: + list.append(package) + + for e in list: + bld.INSTALL_WILDCARD('${PYTHONARCHDIR}/samba/third_party', e + '/**/*', flat=False, + exclude='*.pyc', trim_path=os.path.dirname(e)) + + bld.SAMBA_GENERATOR('third_party_init_py', + rule='touch ${TGT}', + target='empty_file') + + bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/third_party', 'empty_file', destname='__init__.py') + bld.RECURSE('zlib') + bld.RECURSE('popt')