diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-21 14:55:19 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-21 19:03:26 +1100 |
commit | 7a2cad43df77741997b1009d83280f095c6d99dc (patch) | |
tree | 952fa48b98eecab2618e05397e62a34f1be12045 /buildtools | |
parent | b4dd1accc8178bed96ab8606dc655d30826886e6 (diff) | |
download | samba-7a2cad43df77741997b1009d83280f095c6d99dc.tar.gz samba-7a2cad43df77741997b1009d83280f095c6d99dc.tar.bz2 samba-7a2cad43df77741997b1009d83280f095c6d99dc.zip |
waf: raise an error on a dependency on a python module
it is never correct to list a dependency on a python module
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_deps.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 5f9f294e56..491a48bad8 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -439,6 +439,9 @@ def build_direct_deps(bld, tgt_list): sys.exit(1) if targets[d] in [ 'EMPTY', 'DISABLED' ]: continue + if targets[d] == 'PYTHON': + Logs.error('ERROR: Target %s has dependency on python module %s' % (t.sname, d)) + sys.exit(1) if targets[d] == 'SYSLIB': t.direct_syslibs.add(d) if d in syslib_deps: |