diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-02 08:47:38 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:27:22 +1000 |
commit | fe0febcf304b8ef5eec19b2f3d540ae936e005e3 (patch) | |
tree | 699c6750ed8ec02fa2ab9c3f499f1e60e9dcfdb5 /lib/wscript_build | |
parent | 60bfedb8f4d334727c6b5ec4170ec6c8dc8d2560 (diff) | |
download | samba-fe0febcf304b8ef5eec19b2f3d540ae936e005e3.tar.gz samba-fe0febcf304b8ef5eec19b2f3d540ae936e005e3.tar.bz2 samba-fe0febcf304b8ef5eec19b2f3d540ae936e005e3.zip |
s4-waf: added new install system for external python libs
Diffstat (limited to 'lib/wscript_build')
-rw-r--r-- | lib/wscript_build | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/wscript_build b/lib/wscript_build new file mode 100644 index 0000000000..c47dfc01a8 --- /dev/null +++ b/lib/wscript_build @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +import os + +# work out what python external libraries we need to install +external_libs = { + "dns.resolver": "dnspython/dns", + "subunit": "subunit/python/subunit", + "testtools": "testtools/testtools"} + +list = [] + +for module, package in external_libs.iteritems(): + try: + __import__(module) + except ImportError: + list.append(package) + +for e in list: + bld.INSTALL_WILDCARD('${PYTHONDIR}', e + '/**/*', flat=False, + exclude='*.pyc', trim_path=os.path.dirname(e)) |