Message287354
Paul:
> When inside a venv:
- If you want to execute a script, use a shebang of #!/usr/bin/env python and then use `py myscript.py`
Yes, I'm totally on board with this - that is, as far as I run my own scripts. I just wonder, what if one day I pip install someone else's work, and then bang!, 'py' is just working differently now, for a non-local reason, and without alerting me.
It's true that all major libraries use the "right" kind of shebang these days... Still, I find it a bit disturbing nevertheless.
But thanks for the clarifications, anyways - now 'py' expected behavior is much more clear to me.
Eryk:
> it's far simpler to just support versioned executable names
Keeping my fingers crossed about this.
> Even if we don't install links/copies with these names, I don't see the harm in allowing the launcher to look for them. Users can create the links manually
True, but It would allow for yet another possible source of confusion I'm afraid. No, if py were to look for versioned executables, then versioned executable should be supplied imo. |
|
Date |
User |
Action |
Args |
2017-02-08 17:08:45 | ricpol | set | recipients:
+ ricpol, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, wdhwg001 |
2017-02-08 17:08:45 | ricpol | set | messageid: <1486573725.19.0.423823956619.issue28686@psf.upfronthosting.co.za> |
2017-02-08 17:08:45 | ricpol | link | issue28686 messages |
2017-02-08 17:08:44 | ricpol | create | |
|