-
-
Notifications
You must be signed in to change notification settings - Fork 533
Fallback to py executable on Windows #855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related to #854; that should try using |
The |
I should also note that my Windows knowledge is not complete per se. I have a working knowledge from helping beginners setup their systems for learning and basic scripting. (i.e. I don't use tox on Windows) |
I'm not sure this should be closed. It would still make sense on Windows to fall pack to Tox currently adds cross-platform aliases |
Oh. I misunderstood your last comment. 😅 |
np, it's all a bit confusing :-( |
I've submitted #856 which requests This issue now becomes simply to make It would be a lot less confusing if tox didn't have both |
I think this is a good idea, if you're looking for prior art |
There's been some discussion about a common library to handle this task, as there are a lot of tools that independently reimplement it (tox, nox, pipenv, virtualenv, pre-commit ...) See zooba/pep514tools#2 for some details. |
Coming from pypa/pip#5526
On Windows, the python.org installers do not add a
pythonX.Y.exe
file. So, unless the user goes out of their way, it's basically guaranteed thatpythonX.Y
isn't something on PATH. Thus, on Windows, tox should try to use thepy
launcher for Windows to run interpreters if it does not find existingpythonX.Y
interpreters on PATH. Essentially,pythonX.Y
on Unix is equivalent on Windows would bepy -X.Y
with the advantage of being user configurable.This would allow tox to operate out-of-the-box on Windows a lot more cases than today, mostly as long as some Python 3.3+ interpreter is installed (there's some cases where py doesn't get added to PATH).
This could essentially take form of tox doing extra work on Windows if
pythonX.Y
is not on PATH -- the extra work to also try to usepy -X.Y
.The text was updated successfully, but these errors were encountered: