[jhbuild/wip/path-env: 17/18] Don't set PYTHON



commit 4623e78c08ff58339bf22677bb185cb0b09388f8
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Mar 13 09:35:28 2014 -0400

    Don't set PYTHON
    
    Setting PYTHON to a python2 interpreter prevents automake from being
    able to find python3.

 jhbuild/environment.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/jhbuild/environment.py b/jhbuild/environment.py
index ad6ae84..8eb2d11 100644
--- a/jhbuild/environment.py
+++ b/jhbuild/environment.py
@@ -242,9 +242,3 @@ def setup_env(prefix):
     addpath('PYTHONPATH', pythonpath)
     if not os.path.exists(pythonpath):
         os.makedirs(pythonpath)
-
-    # if there is a Python installed in JHBuild prefix, set it in PYTHON
-    # environment variable, so it gets picked up by configure scripts
-    # <http://bugzilla.gnome.org/show_bug.cgi?id=560872>
-    if os.path.exists(os.path.join(prefix, 'bin', 'python')):
-        os.environ['PYTHON'] = os.path.join(prefix, 'bin', 'python')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]