Package: debhelper
Version: 9.20120608
Severity: minor
python_distutils.pm uses this condition to check if a particular version
of Python exists:
if (-x "/usr/bin/".$python) {
However, /usr/bin/python2.X is shipped by the python2.X-minimal package,
whereas the distutils package (which is normally needed to run setup.py)
is in the python2.X package. So the check really should be:
if (-f "/usr/lib/$python/distutils/__init__.py") {
To see why the current behavior is a problem, try building e.g.
activity-log-manager-0.8.0 in an environment which has python2.6-minimal
installed, but python2.6 removed:
$ dpkg-buildpackage
dpkg-buildpackage: source package activity-log-manager
dpkg-buildpackage: source version 0.8.0-1
dpkg-buildpackage: source changed by Siegfried-Angel Gevatter Pujals
<rai...@ubuntu.com>
dpkg-buildpackage: host architecture i386
dpkg-source --before-build activity-log-manager-0.8.0
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
Traceback (most recent call last):
File "setup.py", line 26, in <module>
from distutils.core import setup
ImportError: No module named distutils.core
dh_auto_clean: python2.6 setup.py clean -a returned exit code 1
make: *** [clean] Error 1
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org