mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4-waf: added new install system for external python libs
This commit is contained in:
parent
60bfedb8f4
commit
fe0febcf30
21
lib/wscript_build
Normal file
21
lib/wscript_build
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user