Package: python-defaults Severity: normal Tags: patch dh_python2 can guess dependencies. But van.pydeb, as used by Debian Zope Team, has more features. Supposedly, if van.pydeb is used, dh_python2 should not do dependency guessing.
But the detection only works with complete rules. The more common case now is to use dh 7 sequencer: dh --with python2 --with pydeb $@ Such usage should also be detected. Patch attached.
=== modified file 'dh_python2' --- dh_python2 2011-01-11 14:45:20 +0000 +++ dh_python2 2011-06-10 18:59:31 +0000 @@ -486,7 +486,9 @@ except IOError: log.warning('cannot open debian/rules file') else: - if re.compile('\n\s*dh_pydeb').search(fp.read()): + rules = fp.read() + if (re.search('\n\s*dh_pydeb', rules) or + re.search('\n\s*dh\s+[^#]*--with\s+pydeb', rules)): log.warning('dh_pydeb detected, PyDist feature disabled') options.guess_deps = False