diff options
author | PJ Eby <distutils-sig@python.org> | 2006-12-01 03:41:08 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2006-12-01 03:41:08 +0000 |
commit | f42a267aa749ccfb2862e1b4aaf97b13a7099dfb (patch) | |
tree | f189eaa3a2760c98e5ae20f205a5d264b3fc7266 | |
parent | 3abf8f8b8c886bdbcb28261ced7010f6cc88256f (diff) | |
download | external_python_setuptools-f42a267aa749ccfb2862e1b4aaf97b13a7099dfb.tar.gz external_python_setuptools-f42a267aa749ccfb2862e1b4aaf97b13a7099dfb.tar.bz2 external_python_setuptools-f42a267aa749ccfb2862e1b4aaf97b13a7099dfb.zip |
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)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052887
-rwxr-xr-x | EasyInstall.txt | 4 | ||||
-rwxr-xr-x | setuptools/command/easy_install.py | 2 |
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) |