summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2015-03-28 15:43:29 +0000
committerDavid Disseldorp <ddiss@samba.org>2015-03-30 11:04:15 +0200
commite50342f33d5969f34e5b83f1ed3e7644470fb2ce (patch)
tree5b9ab641a0b62f9f7d858d159d1eaa198ba637b4 /third_party
parentd16c0e369ef58a4051c9c917f9448acebf21d010 (diff)
downloadsamba-e50342f33d5969f34e5b83f1ed3e7644470fb2ce.tar.gz
Move configure part of third party to third_party/wscript.
Change-Id: I34875a8bde99df2e0a2659677e88640bb0ec1816 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/wscript36
-rw-r--r--third_party/wscript_build29
2 files changed, 36 insertions, 29 deletions
diff --git a/third_party/wscript b/third_party/wscript
new file mode 100644
index 00000000000..8e7581f1e6c
--- /dev/null
+++ b/third_party/wscript
@@ -0,0 +1,36 @@
+#!/usr/bin/env python
+
+import os
+
+# work out what python external libraries we need to install
+external_libs = {
+ "dns.resolver": "dnspython/dns",
+ "iso8601": "pyiso8601/iso8601",
+ }
+
+
+def configure(conf):
+ conf.RECURSE('popt')
+ conf.RECURSE('zlib')
+
+
+def build(bld):
+ 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')
diff --git a/third_party/wscript_build b/third_party/wscript_build
deleted file mode 100644
index 9a5fabc0544..00000000000
--- a/third_party/wscript_build
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env python
-
-import os
-
-# work out what python external libraries we need to install
-external_libs = {
- "dns.resolver": "dnspython/dns",
- "iso8601": "pyiso8601",
- }
-
-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')