[Barry Warsaw, 2014-05-07] > So the fix if they do FTBFS would be to add ${python:Depends} or > ${python3:Depends}?
yes. Note that missing ${python:Depends} or ${python3:Depends} in Depends in most probably a bug anyway. > There's another weird corner case I guess, which is, that related binary > packages that may contain some data but not necessarily the actual /usr/lib > code could start with python-. dh_python* scans such packages, doesn't find any interesting data and ignores it. The only thing I want to change is to let maintainer decide which helper(s) should handle given binary package (the one without public modules) in debian/control instead of debian/rules (which I was told is not intuitive). Right now both will try to check this package and the last one used wins - this leads to questions like "why my /usr/bin/foo shebang points to /usr/bin/python3 instead of /usr/bin/python?" or "why this package depends on python3?" > For example, python-foo-doc or python-foo-common. Case in point: for the > wheel package, I wanted the /usr/bin scripts to be shebanged python3. The > multi-version build process leaves us with /usr/bin scripts in both the > python2 and python3 packages. I throw away the python2 versions and move the > python3 versions to the python-wheel-common binary package. That package also > contains the manpages of course. It didn't feel right to call that > python3-wheel-common but I did want it separate from either the python- or > python3- library binary packages. how about: * package name starts with python- and contains ${python3:Depends} → dh_python3, stop (new) * package name starts with python- → dh_python2, stop (current behaviour) * package name starts with python3- → dh_python3, stop (current behaviour) * package name starts with pypy- → dh_pypy, stop (current behaviour) * Depends contains ${python:Depends} → dh_python2 (new) * Depends contains ${python3:Depends} → dh_python3 (new) * Depends contains ${pypy:Depends} → dh_pypy (new) * ignore other packages (new) -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140507154905.ge19...@sts0.p1otr.com