[Checkins] SVN: zc.buildout/branches/help-api/ - fixed some issues with Python executable paths containing spaces
Godefroid Chapelle
gotcha at bubblenet.be
Sun Mar 29 17:26:53 EDT 2009
Log message for revision 98554:
- fixed some issues with Python executable paths containing spaces
Changed:
U zc.buildout/branches/help-api/CHANGES.txt
U zc.buildout/branches/help-api/src/zc/buildout/easy_install.py
U zc.buildout/branches/help-api/src/zc/buildout/tests.py
U zc.buildout/branches/help-api/zc.recipe.egg_/src/zc/recipe/egg/tests.py
-=-
Modified: zc.buildout/branches/help-api/CHANGES.txt
===================================================================
--- zc.buildout/branches/help-api/CHANGES.txt 2009-03-29 21:26:45 UTC (rev 98553)
+++ zc.buildout/branches/help-api/CHANGES.txt 2009-03-29 21:26:52 UTC (rev 98554)
@@ -7,6 +7,9 @@
1.1.2 (Unreleased)
==================
+- Made sure the 'redo_pyc' function and the doctest checkers work with Python
+ executable paths containing spaces.
+
- Expand shell patterns when processing the list of paths in `develop`, e.g::
[buildout]
Modified: zc.buildout/branches/help-api/src/zc/buildout/easy_install.py
===================================================================
--- zc.buildout/branches/help-api/src/zc/buildout/easy_install.py 2009-03-29 21:26:45 UTC (rev 98553)
+++ zc.buildout/branches/help-api/src/zc/buildout/easy_install.py 2009-03-29 21:26:52 UTC (rev 98554)
@@ -1158,7 +1158,7 @@
logger.warning("Couldn't compile %s", filepath)
else:
# Recompile under other optimization. :)
- args = [sys.executable]
+ args = [_safe_arg(sys.executable)]
if __debug__:
args.append('-O')
args.extend(['-m', 'py_compile', filepath])
Modified: zc.buildout/branches/help-api/src/zc/buildout/tests.py
===================================================================
--- zc.buildout/branches/help-api/src/zc/buildout/tests.py 2009-03-29 21:26:45 UTC (rev 98553)
+++ zc.buildout/branches/help-api/src/zc/buildout/tests.py 2009-03-29 21:26:52 UTC (rev 98554)
@@ -3202,7 +3202,7 @@
zc.buildout.testing.normalize_egg_py,
(re.compile('__buildout_signature__ = recipes-\S+'),
'__buildout_signature__ = recipes-SSSSSSSSSSS'),
- (re.compile('executable = \S+python\S*', re.I),
+ (re.compile('executable = [\S ]+python\S*', re.I),
'executable = python'),
(re.compile('[-d] setuptools-\S+[.]egg'), 'setuptools.egg'),
(re.compile('zc.buildout(-\S+)?[.]egg(-link)?'),
@@ -3304,8 +3304,6 @@
zc.buildout.testing.normalize_egg_py,
(re.compile('__buildout_signature__ = recipes-\S+'),
'__buildout_signature__ = recipes-SSSSSSSSSSS'),
- (re.compile('executable = \S+python\S*'),
- 'executable = python'),
(re.compile('[-d] setuptools-\S+[.]egg'), 'setuptools.egg'),
(re.compile('zc.buildout(-\S+)?[.]egg(-link)?'),
'zc.buildout.egg'),
Modified: zc.buildout/branches/help-api/zc.recipe.egg_/src/zc/recipe/egg/tests.py
===================================================================
--- zc.buildout/branches/help-api/zc.recipe.egg_/src/zc/recipe/egg/tests.py 2009-03-29 21:26:45 UTC (rev 98553)
+++ zc.buildout/branches/help-api/zc.recipe.egg_/src/zc/recipe/egg/tests.py 2009-03-29 21:26:52 UTC (rev 98554)
@@ -64,10 +64,8 @@
'zc.buildout-\S+\s*'
),
'__buildout_signature__ = sample- zc.recipe.egg-'),
- (re.compile('executable = \S+python\S*'),
+ (re.compile('executable = [\S ]+python\S*', re.I),
'executable = python'),
- (re.compile('index = \S+python\S+'),
- 'executable = python'),
(re.compile('find-links = http://localhost:\d+/'),
'find-links = http://localhost:8080/'),
(re.compile('index = http://localhost:\d+/index'),
More information about the Checkins
mailing list