]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Buildsystem/python_distutils.pm
python distutils buildsystem: When checking if a version of python is installed,...
[debhelper.git] / Debian / Debhelper / Buildsystem / python_distutils.pm
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