[Python-checkins] r52887 - in sandbox/branches/setuptools-0.6: EasyInstall.txt setuptools/command/easy_install.py

phillip.eby python-checkins at python.org
Fri Dec 1 04:41:11 CET 2006


Author: phillip.eby
Date: Fri Dec 1 04:41:08 2006
New Revision: 52887
Modified:
 sandbox/branches/setuptools-0.6/EasyInstall.txt
 sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py
Log:
Fixed a problem with ``.pth`` testing on Windows when ``sys.executable``
has a space in it (e.g., the user installed Python to a ``Program 
Files`` directory). (backport from trunk)
Modified: sandbox/branches/setuptools-0.6/EasyInstall.txt
==============================================================================
--- sandbox/branches/setuptools-0.6/EasyInstall.txt	(original)
+++ sandbox/branches/setuptools-0.6/EasyInstall.txt	Fri Dec 1 04:41:08 2006
@@ -1269,6 +1269,10 @@
 are opened read-only (e.g. reading ``/dev/urandom`` for random numbers, as
 is done by ``os.urandom()`` on some platforms).
 
+ * Fixed a problem with ``.pth`` testing on Windows when ``sys.executable``
+ has a space in it (e.g., the user installed Python to a ``Program Files``
+ directory).
+
 0.6c3
 * You once again use "python -m easy_install" with Python 2.4 and above.
 
Modified: sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py	(original)
+++ sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py	Fri Dec 1 04:41:08 2006
@@ -349,7 +349,7 @@
 if basename.lower()=='python.exe' and os.path.exists(alt):
 # use pythonw.exe to avoid opening a console window
 executable = alt
- if ' ' in executable: executable='"%s"' % executable
+
 from distutils.spawn import spawn
 spawn([executable,'-E','-c','pass'],0)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /