]> git.donarmstrong.com Git - debhelper.git/commitdiff
python distutils buildsystem: When checking if a version of python is installed,...
authorJoey Hess <joey@kitenet.net>
Mon, 27 Aug 2012 16:03:50 +0000 (12:03 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 27 Aug 2012 16:03:50 +0000 (12:03 -0400)
python hate increasing..

Debian/Debhelper/Buildsystem/python_distutils.pm
debian/changelog

index 4795b7c3aecc24ebae4736077d14f4051546b1f4..81cff3c9fc8fe15689605f800964f585a0725dbd 100644 (file)
@@ -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
index dd7b9a12b5a7785a466d6e33ab2b1c546d4ecc39..489e539d998cfba2203f97db97c472909d575b99 100644 (file)
@@ -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 <joeyh@debian.org>  Thu, 05 Jul 2012 08:51:07 -0600