summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/wscript_build21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/wscript_build b/lib/wscript_build
new file mode 100644
index 0000000000..c47dfc01a8
--- /dev/null
+++ b/lib/wscript_build
@@ -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))