diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-02 12:26:27 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:27:22 +1000 |
commit | 865e478e25e6c9d69915061f6f2211298e730068 (patch) | |
tree | 0429e7545e43f6bf4460a187b5748a477fc878fb /lib/wscript_build | |
parent | 9e52dc441e6709429194555350825ffcf341abf5 (diff) | |
download | samba-865e478e25e6c9d69915061f6f2211298e730068.tar.gz |
s4-waf: create a blank __init__.py in samba/external
needed for the external lib loader
Diffstat (limited to 'lib/wscript_build')
-rw-r--r-- | lib/wscript_build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/wscript_build b/lib/wscript_build index 7424c7f7edc..b8bc9e9120d 100644 --- a/lib/wscript_build +++ b/lib/wscript_build @@ -1,6 +1,7 @@ #!/usr/bin/env python -import os +import os, Options +from samba_utils import TOUCH_FILE, EXPAND_VARIABLES # work out what python external libraries we need to install external_libs = { @@ -19,3 +20,7 @@ for module, package in external_libs.iteritems(): for e in list: bld.INSTALL_WILDCARD('${PYTHONDIR}/samba/external', e + '/**/*', flat=False, exclude='*.pyc', trim_path=os.path.dirname(e)) + +if Options.is_install: + # we need a blank __init__.py in samba/external + TOUCH_FILE(bld.EXPAND_VARIABLES('${PYTHONDIR}/samba/external/__init__.py')) |