X-Git-Url: https://git.donarmstrong.com/?p=debhelper.git;a=blobdiff_plain;f=Debian%2FDebhelper%2FBuildsystem%2Fpython_distutils.pm;h=81cff3c9fc8fe15689605f800964f585a0725dbd;hp=4795b7c3aecc24ebae4736077d14f4051546b1f4;hb=00250d8cd20a37be362850d3ed8a652b0768455f;hpb=a597db5ca7446d2d13fa66578ae6720fcbf50459 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