From 7a2cad43df77741997b1009d83280f095c6d99dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 21 Oct 2010 14:55:19 +1100 Subject: [PATCH] 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 --- buildtools/wafsamba/samba_deps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 5f9f294e56d..491a48bad86 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: -- 2.34.1