summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem/python_distutils.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Debian/Debhelper/Buildsystem/python_distutils.pm')
-rw-r--r--Debian/Debhelper/Buildsystem/python_distutils.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm
index fd31730..4795b7c 100644
--- a/Debian/Debhelper/Buildsystem/python_distutils.pm
+++ b/Debian/Debhelper/Buildsystem/python_distutils.pm
@@ -155,14 +155,7 @@ sub setup_py {
}
foreach my $python (@python_dbg, @python_requested) {
- my $python_with_version = $python;
- if ($python eq "python") {
- $python_with_version = $python_default;
- }
- elsif ($python eq "python-dbg") {
- $python_with_version = $python_default."-dbg";
- }
- if (-f "/usr/lib/$python_with_version/distutils/__init__.py") {
+ if (-x "/usr/bin/".$python) {
# To allow backports of debhelper we don't pass
# --install-layout=deb to 'setup.py install` for
# those Python versions where the option is