Package: dh-python Version: 1.20131021-1 Hello,
The current dh-python version now fails its own tests. I first noticed that in Ubuntu's autopkgtest jenkins [1], but it is perfectly reproducible by merely "apt-get source dh-python" and "make tests" in current sid. At first it stumbles over missing python3.3-dbg: -------------------- >> begin captured logging << -------------------- dhpython: DEBUG: invoking: python2.7 -c 'import sysconfig as s;print("__SEP__".join(i or "" for i in s.get_config_vars("SOABI", "MULTIARCH", "INCLUDEPY", "LIBPL", "LDLIBRARY")))' dhpython: DEBUG: invoking: python3.3-dbg -c 'import sysconfig as s;print("__SEP__".join(i or "" for i in s.get_config_vars("SOABI", "MULTIARCH", "INCLUDEPY", "LIBPL", "LDLIBRARY")))' dhpython: DEBUG: /bin/sh: 1: python3.3-dbg: not found dhpython: DEBUG: cannot get include path Traceback (most recent call last): File "/usr/share/dh-python/dhpython/interpreter.py", line 382, in include_dir result = self._get_config()[2] File "/usr/share/dh-python/dhpython/interpreter.py", line 502, in _get_config conf_vars = self._execute(cmd, version).split('__SEP__') File "/usr/share/dh-python/dhpython/interpreter.py", line 518, in _execute raise Exception('{} failed with status code {}'.format(command, output['returncode'])) Exception: python3.3-dbg -c 'import sysconfig as s;print("__SEP__".join(i or "" for i in s.get_config_vars("SOABI", "MULTIARCH", "INCLUDEPY", "LIBPL", "LDLIBRARY")))' failed with status code 127 --------------------- >> end captured logging << --------------------- This is easily rectified by adding "python3-all-dbg" to debian/tests/control for nosetests. But then something weirder happens in t203: ---------------------------------------- D: dh_python2 dh_python2:383: args: [] D: dh_python2 dh_python2:385: supported Python versions: 2.6,2.7 (default=2.7) D: dh_python2 debhelper:98: source=foo, binary packages=['python-foo'] D: dh_python2 dh_python2:402: processing package python-foo... D: dh_python2 tools:217: invoking: python2.7 -c 'import sysconfig as s;print("__SEP__".join(i or "" for i in s.get_config_vars("SOABI", "MULTIARCH", "INCLUDEPY", "LIBPL", "LDLIBRARY")))' [...] D: dh_python2 fs:208: package python-foo details = {'nsp.txt': set(), 'ext_no_version': set(), 'ext_vers': {Version('2.7')}, 'requires.txt': set(), 'public_vers': {Version('2.7')}, 'compile': True, 'private_dirs': {'/usr/lib/python-foo': {'ext_no_version': {'debian/python-foo/usr/lib/python-foo/bar.my_multiarch-triplet.so'}, 'compile': True}}, 'shebangs': set()} D: dh_python2 dh_python2:97: guessing files for python2.6 E: dh_python2 dh_python2:106: extension for python2.6 is missing. Build extensions for all supported Python versions (`pyversions -vr`) or adjust X-Python-Version field or pass --no-guessing-versions to dh_python2 make[4]: *** [override_dh_install] Fehler 3 make[4]: Verlasse Verzeichnis '/home/martin/ubuntu/tmp/dh-python-1.20131021/tests/t203' make[3]: *** [binary] Fehler 2 ---------------------------------------- Why does it take the "2.6" from? It's not in pyversions --supported in either Debian sid nor Ubuntu. This could be a bug in the tests of course, but as it's dh_python2 itself that erroneously thinks that 2.6 is supported it smells like an actual bug? Thanks, Martin [1] https://jenkins.qa.ubuntu.com/view/Trusty/view/AutoPkgTest/job/trusty-adt-dh-python/? -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
signature.asc
Description: Digital signature