-
-
Notifications
You must be signed in to change notification settings - Fork 31.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
make install
should symlink bin/python
to bin/python3
#102358
Comments
I guess the downside could be that anyone who is installing a Python 2 and a Python 3 to the same prefix, up til now, would have had |
I agree with the desire for a cross-platform startup command. However, macOS 10 (Catalina) still has 'python' linked to python2. Startup message says that 'future' versions of macOS would not have python2, so use 'python3'. Should not scripts that try to start python2 with 'python' fail rather than silently run python3. I believe that we have considered the presence and meaning of a 'python' link to be a matter for each distribution. Not sure we are ready to change this. |
I think the current (revised) PEP 394 is clear that we are beyond just "letting it be a matter for each distribution" to decide -- we are now already making a clear recommendation of what distributions should do. (They should make But the fact that Catalina didn't get there yet is meaningful. It seems OK to hold off on this change until there are no (relevant) platforms that still have |
Actually, after a re-read of the full current state of PEP 394, it isn't at all clear that we've made that shift yet. (Though it seems like we might be feeling ready to do so soon?) |
It is unclear to me whether this issue is "awaiting a PR" (that adds a While it seems that the "python" over "python3" has won the docs discussion, it is also clear that neither is universally consistent across platforms. I am unsure if universal consistency has any relevance to the "to symlink or not to symlink" question. |
Feature or enhancement
When you build and
make install
CPython from source, currently the installedbin/
directory containspython3
(symlinked topython3.XX
), but it does not containpython
. This issue proposes that it should also contain apython
symlink.Pitch
Windows installs (from python.org) do not contain a
python3
executable, so there is currently no form that documentation examples can take that will work for all platforms reliably.#99185 has more discussion of
python
vspython3
from the Windows perspective.Venv
bin/
dir does contain apython -> python3
symlink.PEP 394 recommends
python
overpython3
as the canonical way to invoke Python.The conclusion in #98761 was that
python -m ...
should be preferred overpython3 -m ...
in documentation examples.Of course, most users will not be building and
make install
ing their own Python. But if our recommendation to redistributors is to providepython -> python3
, would it not be best to model that ourselves inmake install
? Is there any downside?The text was updated successfully, but these errors were encountered: