backupkey: Handle more clearly the case where we find the secret, but it has no value
[Samba.git] / third_party / wscript_build
blob0be84743b3e5c0bf4e98174e46e1d660d3abc026
1 #!/usr/bin/env python
3 import os
5 # work out what python external libraries we need to install
6 external_libs = {
7 "dns.resolver": "dnspython/dns",
10 list = []
12 for module, package in external_libs.items():
13 try:
14 __import__(module)
15 except ImportError:
16 list.append(package)
18 for e in list:
19 bld.INSTALL_WILDCARD('${PYTHONARCHDIR}/samba/third_party', e + '/**/*', flat=False,
20 exclude='*.pyc', trim_path=os.path.dirname(e))
22 bld.SAMBA_GENERATOR('third_party_init_py',
23 rule='touch ${TGT}',
24 target='empty_file')
26 bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/third_party', 'empty_file', destname='__init__.py')
27 bld.RECURSE('zlib')
28 bld.RECURSE('popt')