]> git.ipfire.org Git - thirdparty/automake.git/commit
python: restore more compatible behavior for $PYTHON.
authorKarl Berry <karl@freefriends.org>
Sun, 9 Feb 2025 17:36:24 +0000 (09:36 -0800)
committerKarl Berry <karl@freefriends.org>
Sun, 9 Feb 2025 17:36:24 +0000 (09:36 -0800)
commit0ea7ef97493cd88da915d1936e04a6ace5c754d8
tree6205541522fbe925523b1d18ea5cb07f9c8bdb39
parent06760b3be4a18a6b1530c4b28f23c0a21b2f1035
python: restore more compatible behavior for $PYTHON.

For https://bugs.gnu.org/74434.

* lib/py-compile: if $PYTHON -V does not include the
string "python" (case-insensitive), consider the support
intentionally disabled and exit successfully, unless PYTHON is set
to false, in which case exit unsuccessfully. This is closer to
the old behavior. Mention this in the help message.
* t/py-compile-env.sh: add test for PYTHON=:.
* NEWS: mention this. (And, en passant, add some past bug#s and
clarify that only RCS/SCCS pattern rules were disabled, not all.)
NEWS
lib/py-compile
t/py-compile-env.sh