[Distutils] easy_install adds bad interpreter shebang to installed scripts

Felix Schwarz felix.schwarz at web.de
Wed Dec 17 22:24:43 CET 2008


Phillip J. Eby schrieb:
> I'm okay with the change in principle, but in practice, just dropping to 
> "/usr/bin/env python" isn't acceptable.  It should point env to the 
> specific sys.executable, just like the "fix_jython_executable()" 
> function does.

Maybe I misunderstood you but I think this is not possible because the 
executable path may contain spaces. The shebang line will be split along 
spaces so arguments must not contain spaces (they will be considered as 
two separate arguments).

fs


More information about the Distutils-SIG mailing list