lib/ldb: fix compiler warnings in ldb_modules_list_from_string()
[Samba.git] / lib / wscript_build
blobc7bf62124bddc5c9300a630c19893543abd03def
1 #!/usr/bin/env python
3 import os, Options
5 # work out what python external libraries we need to install
6 external_libs = {
7 "subunit": "subunit/python/subunit",
8 "testtools": "testtools/testtools"}
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/external', e + '/**/*', flat=False,
20 exclude='*.pyc', trim_path=os.path.dirname(e))
22 bld.SAMBA_GENERATOR('external_init_py',
23 rule='touch ${TGT}',
24 target='empty_file')
26 bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/external', 'empty_file', destname='__init__.py')
28 # a grouping library for event and socket related subsystems
29 bld.SAMBA_LIBRARY('samba-sockets',
30 source=[],
31 private_library=True,
32 grouping_library=True,
33 deps='LIBTSOCKET samba_socket tevent-util')