]> git.ipfire.org Git - thirdparty/automake.git/commit
python: determine Python (3.10) version number correctly.
authorMiro Hron\v{c}ok <miro@hroncok.cz>
Tue, 27 Oct 2020 21:33:46 +0000 (14:33 -0700)
committerKarl Berry <karl@freefriends.org>
Tue, 27 Oct 2020 21:33:46 +0000 (14:33 -0700)
commite21d46fddd0753e66a4acda88317670fee07f3e6
treeb9182fc9804eac7a89708defed3a5190cacb9667
parent310edf02fb3f6da76500c813900d4cea7d9f36d8
python: determine Python (3.10) version number correctly.

This change fixes https://bugs.gnu.org/44239
(and https://bugzilla.redhat.com/show_bug.cgi?id=1889732).

* m4/python.m4: use print('%u.%u' % sys.version_info[:2]) for
the version number instead of merely sys.version[:3], so the
numbers are treated as numbers.
* t/python-vars.sh (PYTHON_VERSION): Likewise.
* doc/automake.texi: Document it.
* NEWS: mention it. (Minor tweaks from Karl Berry.)
NEWS
doc/automake.texi
m4/python.m4
t/python-vars.sh