Vinay Sajip added the comment:

> I don't understand the motivation for this - how will it be used in practice?

It allows the launcher to do double duty as an executable launcher for scripts 
which works in the same way as executable launchers in setuptools-installed 
scripts.

Its use in this way is redundant if the launcher is actually installed. 
However, if the launcher isn't installed, it's considered the only fool-proof 
way of invoking Python scripts on Windows.

This patch is a consequence of discussions ongoing on distutils-sig about 
bundling setuptools and pip in Python.

In practice, a Python script 'foo' in a distribution, which would be called 
just plain 'foo' on Unix and have a Python shebang line, would be named 
'foo-script.py' with a copy of the launcher as 'foo.exe' alongside, which 
invokes the Python script when run. A GUI script would be called 
'foo-script.pyw' and have the GUI version of the launcher in 'foo.exe'.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18491>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to