From 00250d8cd20a37be362850d3ed8a652b0768455f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 27 Aug 2012 12:03:50 -0400 Subject: 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Debian/Debhelper') diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm index 4795b7c3..81cff3c9 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 -- cgit v1.2.3