aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xEasyInstall.txt4
-rwxr-xr-xsetuptools/command/easy_install.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/EasyInstall.txt b/EasyInstall.txt
index 66b0b190..e4f21218 100755
--- a/EasyInstall.txt
+++ b/EasyInstall.txt
@@ -1269,6 +1269,10 @@ Release Notes/Change History
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.
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 88655610..3b3ca57f 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -349,7 +349,7 @@ Please make the appropriate changes for your system and try again.
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)