On Feb 5, 2008 10:57 AM, Phillip J. Eby <[EMAIL PROTECTED]> wrote:
> At 10:43 AM 2/5/2008 -0700, Adam Olsen wrote:
> >So why don't we add a windows equivalent of the shebang?  Files could
> >then start like this:
> >
> >#!/usr/bin/python2.3
> >#¡C:/python23/python
>
> FYI, setuptools uses and supports #! lines on Windows, with the
> executable path in quotes if it contains spaces.  For a given script
> "foo", it generates two files:
>
>      foo.exe
>      foo-script.py
>
> And the .exe is just a standardized .exe file that looks in an
> adjacent -script.py file of the same name for the #! line.
>
> (This is of course only for scripts generated using
> setuptools-specific features.)
>
>
> >A problem with this approach is that, if you only had 2.3 and 2.5
> >installed, both it'd be completely ignored.  You'd need to install a
> >newer version (2.6 or 3.0) to force the use of 2.3.
>
> Setuptools works with versions 2.3 through 2.5, but of course that's
> because of the .exe wrappers.

Sounds good enough to me.  Maybe the only thing "wrong" is people
aren't sufficiently informed of how to be version-specific?


-- 
Adam Olsen, aka Rhamphoryncus
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to