jhbuild r2519 - in trunk: . jhbuild



Author: fpeters
Date: Sat Nov 15 13:45:35 2008
New Revision: 2519
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2519&view=rev

Log:
* jhbuild/config.py: if there is a Python installed in JHBuild prefix,
set it in PYTHON environment variable, so it gets picked up by
configure scripts.  (closes: #560872)



Modified:
   trunk/ChangeLog
   trunk/jhbuild/config.py

Modified: trunk/jhbuild/config.py
==============================================================================
--- trunk/jhbuild/config.py	(original)
+++ trunk/jhbuild/config.py	Sat Nov 15 13:45:35 2008
@@ -246,6 +246,12 @@
         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(self.prefix, 'bin', 'python')):
+            os.environ['PYTHON'] = os.path.join(self.prefix, 'bin', 'python')
+
         # handle environment prepends ...
         for envvar in env_prepends.keys():
             for path in env_prepends[envvar]:



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