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 bluebird, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-12-11.16:49:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576082947.99.0.644322944586.issue39025@roundup.psfhosted.org>
In-reply-to
Content
> Create a pyscript launcher, which would work like py but would take as command-line the name of the script to run ...

This is spelled "py [-x.y] -m [script]", but it's up to the libraries to support it. We can't force them to do it.

> Let py execute a command-line with proper environment for that specific version of python

"Proper environment" is a matter of opinion, as evidenced by hundreds of issues that arise every time people try to get clever here.

And %PATH% on Windows is a system setting that has an impact on every application that launches, and also has different behaviour on different version of the OS (because it's a system setting, so the system can change how it uses that setting over time).

Perhaps what you want is a virtual environment? Then your activate command is spelled "activate" and your exit command is spelled "deactivate". These have some of the issues I hinted at, as well as many of their own, but at least they already exist and are in widespread use, so most libraries are going to avoid relying on things that don't work. Inventing a new approach here would create and entirely new set of things that don't work, and it'll take the ecosystem years to catch up (and many won't even care to try until there's critical mass usage of the new approach, which won't happen until the ecosystem catches up, etc. etc.)
History
Date User Action Args
2019-12-11 16:49:08steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, bluebird, zach.ware
2019-12-11 16:49:07steve.dowersetmessageid: <1576082947.99.0.644322944586.issue39025@roundup.psfhosted.org>
2019-12-11 16:49:07steve.dowerlinkissue39025 messages
2019-12-11 16:49:07steve.dowercreate