GNU bug report logs -
#71672
[PATCH] python: Prefer python3 over python
Previous Next
Full log
Message #8 received at 71672 <at> debbugs.gnu.org (full text, mbox):
On Thu, Jun 20, 2024, at 5:50 AM, Collin Funk wrote:
> Shouldn't AM_PATH_PYTHON check for the python3 command before python?
Yes it should.
> The full recommendation of how these should be setup is in PEP 394
Note that PEP 394 is dangerously incorrect on one point: a system where
/usr/bin/python and/or the bare 'python' command invoke Python 3 is a
misconfigured system, because there's -- yes, even now -- a huge volume
of Python 2-only scripts out there in the wild that will malfunction if
run under a Python 3 interpreter. In the worst case "malfunction" means
"cause silent data corruption."
This is mostly not Automake's problem, but -- assuming people who use
AM_PATH_PYTHON with current versions of Automake *want* the Python 3
interpreter, for the most part -- it might be an argument for *not*
probing unsuffixed 'python', only 'python3' and 'python3.*'.
zw
This bug report was last modified 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.