[jhbuild/distutils-default-python2] distutils: default to python2, python can point to Python 3 now
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/distutils-default-python2] distutils: default to python2, python can point to Python 3 now
- Date: Tue, 24 Sep 2019 17:16:59 +0000 (UTC)
commit c683ffd73e02c2e5a11189c2fa9bc5a12bdfdc66
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Sep 24 19:13:17 2019 +0200
distutils: default to python2, python can point to Python 3 now
Python upstream now allows distributions to move "python" in PATH to
mean Python 3. This breaks the distutils module which is defaulting to
"python" when building Python 2 modules.
Use the more specific "python2" instead.
Fixes #33
jhbuild/modtypes/distutils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/jhbuild/modtypes/distutils.py b/jhbuild/modtypes/distutils.py
index 4acaa090..99e13c96 100644
--- a/jhbuild/modtypes/distutils.py
+++ b/jhbuild/modtypes/distutils.py
@@ -41,7 +41,7 @@ class DistutilsModule(Package, DownloadableModule):
Package.__init__(self, name, branch=branch)
self.supports_non_srcdir_builds = supports_non_srcdir_builds
self.supports_install_destdir = True
- self.python = os.environ.get('PYTHON', 'python')
+ self.python = os.environ.get('PYTHON', 'python2')
def get_srcdir(self, buildscript):
return self.branch.srcdir
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]