From 00250d8cd20a37be362850d3ed8a652b0768455f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 27 Aug 2012 12:03:50 -0400 Subject: [PATCH] python distutils buildsystem: When checking if a version of python is installed, don't trust the presense of the executable, as a python2.X-minimal package may provide it while not having distutils installed. Closes: #683557 python hate increasing.. --- Debian/Debhelper/Buildsystem/python_distutils.pm | 2 +- debian/changelog | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm index 4795b7c..81cff3c 100644 --- a/Debian/Debhelper/Buildsystem/python_distutils.pm +++ b/Debian/Debhelper/Buildsystem/python_distutils.pm @@ -155,7 +155,7 @@ sub setup_py { } foreach my $python (@python_dbg, @python_requested) { - if (-x "/usr/bin/".$python) { + if (-f "/usr/lib/$python/distutils/__init__.py") { # To allow backports of debhelper we don't pass # --install-layout=deb to 'setup.py install` for # those Python versions where the option is diff --git a/debian/changelog b/debian/changelog index dd7b9a1..489e539 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,10 @@ debhelper (9.20120609) UNRELEASED; urgency=low Thanks, Charles Plessy * python distutils buildsystem: Propigate failure of pyversions. Closes: #683551 Thanks, Clint Byrum + * python distutils buildsystem: When checking if a version of python is + installed, don't trust the presense of the executable, as + a python2.X-minimal package may provide it while not having + distutils installed. Closes: #683557 * dh_icons: Improve documentation. Closes: #684895 -- Joey Hess Thu, 05 Jul 2012 08:51:07 -0600 -- 2.39.2