forked from samba-team/samba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move configure part of third party to third_party/wscript.
Change-Id: I34875a8bde99df2e0a2659677e88640bb0ec1816 Signed-off-by: Jelmer Vernooij <[email protected]> Reviewed-by: David Disseldorp <[email protected]>
- Loading branch information
Showing
3 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters