-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Use python3 as default executable for x.py #71841
Use python3 as default executable for x.py #71841
Conversation
It seems that most distributions do not symlink python3 to python by default, as was expected when adding this code. We still support python 2.7, but the default is python 3, so reflect that here as well.
Python installation on Windows, on the other hand, doesn't have |
Hm, @petrochenkov -- does "python" work on Windows? Maybe we should hold off on this and try to do a survey of our options... I'm not sure. |
@Mark-Simulacrum
|
Is |
@mati865
Moreover, if the non-MSYS2 Looks like the shebang indeed doesn't affect people working from cmd or powershell |
To clarify, this is an easily resolvable problem, you can manually create a symlink named |
PEP-394 covers Fedora has a I think leaving the shebang with |
Hm. We currently default python in config.toml to whatever invoked x.py -- I think that makes sense; no one should really be invoking bootstrap (the binary) directly. |
I agree, that's a solid choice. I'm not sure what we need then -- better documentation of this nuance in the build requirements? |
Yeah, I think documenting that we use |
@Mark-Simulacrum What about
Not sure where to put it or how to propose a proper PR, though :( |
It seems that most distributions do not symlink python3 to python by default, as
was expected when adding this code. We still support python 2.7, but the default
is python 3, so reflect that here as well.
Fixes #71818
r? @cuviper to confirm my logic here is sound