[jhbuild/distutils-default-python2: 3/3] 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: 3/3] distutils: default to python2, python can point to Python 3 now
- Date: Wed, 25 Sep 2019 08:09:23 +0000 (UTC)
commit 17e48bad7dc5698b36e89913102deca77eff9f39
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]