summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-21 14:55:19 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-21 19:03:26 +1100
commit7a2cad43df77741997b1009d83280f095c6d99dc (patch)
tree952fa48b98eecab2618e05397e62a34f1be12045
parentb4dd1accc8178bed96ab8606dc655d30826886e6 (diff)
downloadsamba-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>
-rw-r--r--buildtools/wafsamba/samba_deps.py3
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: