d8b9aae01543cdc65afd631f67e1505e8da35fbb
[bbaumbach/samba-autobuild/.git] / third_party / wscript_build
1 #!/usr/bin/env python
2
3 import os
4
5 # work out what python external libraries we need to install
6 external_libs = {
7     }
8
9 list = []
10
11 for module, package in external_libs.items():
12     try:
13         __import__(module)
14     except ImportError:
15         list.append(package)
16
17 for e in list:
18     bld.INSTALL_WILDCARD('${PYTHONARCHDIR}/samba/third_party', e + '/**/*', flat=False,
19                          exclude='*.pyc', trim_path=os.path.dirname(e))
20
21 bld.SAMBA_GENERATOR('third_party_init_py',
22                     rule='touch ${TGT}',
23                     target='empty_file')
24
25 bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/third_party', 'empty_file', destname='__init__.py')
26 bld.RECURSE('zlib')
27 bld.RECURSE('popt')