[Distutils] Path With Space Bug in EasyInstall

Jon-Eric Simmons jsimmons at shff.com
Wed Jan 24 17:29:23 CET 2007

I'm using WindowsXP SP2 and the included shell (no replacements).

Repro steps:
1. Install Python 2.5 using python-2.5.msi.
2. Instead of the default installation path, install Python in
'C:\Program Files\Python25\'.
3. Add two directories to PATH: 'C:\Program Files\Python25' &
'C:\Program Files\Python25\Scripts'
4. Execute ez_setup.py v0.6c5. (See below for output.)
5. Execute easy_install to see if it worked. (See below for output.)

---- Begin ez_setup Output ----
Processing setuptools-0.6c5-py2.5.egg
Copying setuptools-0.6c5-py2.5.egg to c:\program
Adding setuptools 0.6c5 to easy-install.pth file
Installing easy_install-script.py script to C:\Program
Installing easy_install.exe script to C:\Program Files\Python25\Scripts
Installing easy_install-2.5-script.py script to C:\Program
Installing easy_install-2.5.exe script to C:\Program

Installed c:\program
Processing dependencies for setuptools==0.6c5
---- End ez_setup Output ----

---- Begin easy_install Output -----
Cannot find Python executable C:\Program
---- End easy_install Output -----

If I do this with ez_setup v0.6c3, easy_install works just fine.



-----Original Message-----
From: Phillip J. Eby [mailto:pje at telecommunity.com] 
Sent: Wednesday, January 24, 2007 9:51 AM
To: Jon-Eric Simmons
Cc: distutils-sig at python.org
Subject: Re: Path With Space Bug in EasyInstall

At 11:01 AM 1/18/2007 -0600, Jon-Eric Simmons wrote:
>I apologize if emailing you directly isn t the correct route to solve
>issue. The website isn t clear at all about how to report bugs. (Please

>feel free to point me in the right direction.)

Please direct all email regarding setuptools to the distutils-sig list.

>In Windows XP, when I install a fresh version of Python in C:\Program 
>Files\Python2X (I tried both v2.4 & v2.5) and run ez_setup 0.6c5, when
>attempt to run easy_install I get some message like C:\Program is not a

>valid executable.

I need to know the exact message; please include the full text of what
did, both what you typed and what the program displayed.

>However, if I perform the same steps with ez_setup 0.6c3, easy_install 
>The release notes for 0.6c4 make it sound like an issue similar to this
>fixed, yet it appears to be broken by that version.

Yes, and when I changed it to the way that works for you, it broke for 
someone else, so there is apparently more here than meets the eye.
include the exact version of Windows that you're using, and whether you
using any Windows shell replacements (e.g. 4DOS/4NT, etc.).  Thanks.

More information about the Distutils-SIG mailing list