This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients Alexandros Karypidis, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-12-12.23:35:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576193748.32.0.110801913777.issue38999@roundup.psfhosted.org>
In-reply-to
Content
> Do you mean all shebangs, including those with a native file path?

I like the idea as a whole, but ultimately end up disliking all the available options (in the context of py.exe, that is).

* Unix/virtual shebangs don't work reliably on Windows (as we can see :) )
* Native file path shebangs on Windows don't work on Unix

The scripts installed by pip &co. are their own executable wrappers, so the shebang shouldn't matter.

But, the python.org Windows installer associates .py files with py.exe, so it _does_ matter for double-click and PATHEXT scenarios.

Perhaps it is reasonable to redefine "/usr/bin/env python*" as "use %VIRTUALENV% python.exe if set" regardless of the specific version? I really don't want to add checks that require running Python - I'd rather bail out and recommend using "py" directly.
History
Date User Action Args
2019-12-12 23:35:48steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, eryksun, Alexandros Karypidis
2019-12-12 23:35:48steve.dowersetmessageid: <1576193748.32.0.110801913777.issue38999@roundup.psfhosted.org>
2019-12-12 23:35:48steve.dowerlinkissue38999 messages
2019-12-12 23:35:47steve.dowercreate