Message358313
> 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. |
|
Date |
User |
Action |
Args |
2019-12-12 23:35:48 | steve.dower | set | recipients:
+ steve.dower, paul.moore, tim.golden, zach.ware, eryksun, Alexandros Karypidis |
2019-12-12 23:35:48 | steve.dower | set | messageid: <1576193748.32.0.110801913777.issue38999@roundup.psfhosted.org> |
2019-12-12 23:35:48 | steve.dower | link | issue38999 messages |
2019-12-12 23:35:47 | steve.dower | create | |
|