waf: loosen the restriction on depending on python libs
authorAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 06:45:23 +0000 (17:45 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 08:03:27 +0000 (19:03 +1100)
the pidl generated python code can generate dependencies between two
python modules, so we have to allow this for now

buildtools/wafsamba/samba_deps.py

index c2b95bb1ffb515622a743095286dd07bd80868dc..a89c3e8ca3542c07bfd2598fcdb55b308e03c18d 100644 (file)
@@ -439,7 +439,9 @@ def build_direct_deps(bld, tgt_list):
                 sys.exit(1)
             if targets[d] in [ 'EMPTY', 'DISABLED' ]:
                 continue
-            if targets[d] == 'PYTHON':
+            if targets[d] == 'PYTHON' and targets[t.sname] != 'PYTHON' and t.sname.find('.objlist') == -1:
+                # this check should be more restrictive, but for now we have pidl-generated python
+                # code that directly depends on other python modules
                 Logs.error('ERROR: Target %s has dependency on python module %s' % (t.sname, d))
                 sys.exit(1)
             if targets[d] == 'SYSLIB':