[Checkins] SVN: zc.buildout/trunk/ - Quote the 'executable'
argument when trying to detect the python version using popen4.
Sidnei da Silva
sidnei at enfoldsystems.com
Sat Jun 7 12:30:17 EDT 2008
Log message for revision 87226:
- Quote the 'executable' argument when trying to detect the python version using popen4.
Changed:
U zc.buildout/trunk/CHANGES.txt
U zc.buildout/trunk/src/zc/buildout/easy_install.py
-=-
Modified: zc.buildout/trunk/CHANGES.txt
===================================================================
--- zc.buildout/trunk/CHANGES.txt 2008-06-07 09:49:17 UTC (rev 87225)
+++ zc.buildout/trunk/CHANGES.txt 2008-06-07 16:30:15 UTC (rev 87226)
@@ -7,6 +7,9 @@
1.0.4 (unreleased)
==================
+- Quote the 'executable' argument when trying to detect the python
+ version using popen4. (sidnei)
+
- Quote the 'spec' argument, as in the case of installing an egg from
the buildout-cache, if the filename contains spaces it would fail (sidnei)
Modified: zc.buildout/trunk/src/zc/buildout/easy_install.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/easy_install.py 2008-06-07 09:49:17 UTC (rev 87225)
+++ zc.buildout/trunk/src/zc/buildout/easy_install.py 2008-06-07 16:30:15 UTC (rev 87226)
@@ -61,7 +61,7 @@
try:
return _versions[executable]
except KeyError:
- i, o = os.popen4(executable + ' -V')
+ i, o = os.popen4(_safe_arg(executable) + ' -V')
i.close()
version = o.read().strip()
o.close()
More information about the Checkins
mailing list