summaryrefslogtreecommitdiffstats
path: root/third_party/wscript_build
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/wscript_build')
-rw-r--r--third_party/wscript_build27
1 files changed, 27 insertions, 0 deletions
diff --git a/third_party/wscript_build b/third_party/wscript_build
new file mode 100644
index 0000000000..d8b9aae015
--- /dev/null
+++ b/third_party/wscript_build
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+import os
+
+# work out what python external libraries we need to install
+external_libs = {
+ }
+
+list = []
+
+for module, package in external_libs.items():
+ try:
+ __import__(module)
+ except ImportError:
+ list.append(package)
+
+for e in list:
+ bld.INSTALL_WILDCARD('${PYTHONARCHDIR}/samba/third_party', e + '/**/*', flat=False,
+ exclude='*.pyc', trim_path=os.path.dirname(e))
+
+bld.SAMBA_GENERATOR('third_party_init_py',
+ rule='touch ${TGT}',
+ target='empty_file')
+
+bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/third_party', 'empty_file', destname='__init__.py')
+bld.RECURSE('zlib')
+bld.RECURSE('popt')