]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
python: Support future python version up to 3.9
authorMathieu Lirzin <mthl@gnu.org>
Sat, 3 Mar 2018 11:01:13 +0000 (12:01 +0100)
committerMathieu Lirzin <mthl@gnu.org>
Thu, 8 Mar 2018 20:26:56 +0000 (21:26 +0100)
This change fixes automake bug#28160.

Since AM_PYTHON_PATH macro takes no maximum version argument, there is
no need to generate _AM_PYTHON_INTERPRETER_LIST dynamically, like what
was previously done by the reverted commit
1d60fb72168e62d33fe433380af621de64e22f23.  We could rely on M4 to
generate this list statically however this is likely to be a complex
solution that would not improve maintainability.

* m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add 'python3.7',
'python3.8', and 'python3.9'.
* NEWS: Update.

NEWS
m4/python.m4

diff --git a/NEWS b/NEWS
index 0d219beee026813154cd3e5686021e7e3a6ba7d4..f2cedfc4847eb538ad6b9497cdf397dfdb1eb8ee 100644 (file)
--- a/NEWS
+++ b/NEWS
 
 New in ?.?.?:
 
+* Bugs fixed:
+
+  - A regression in AM_PYTHON_PATH causing the rejection of non literal
+    minimum version parameter hasn't been fixed. (automake bug#30616)
+
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 New in 1.16:
index 58dd18761e1a0dd125746274c519238b72e68401..63c0a0e042b6fd19f07058ccbad15874dd7c8f35 100644 (file)
@@ -36,11 +36,12 @@ AC_DEFUN([AM_PATH_PYTHON],
  [
   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
   dnl supported. (2.0 was released on October 16, 2000).
-  dnl FIXME: Remove the need to hard-code Python versions here.
   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
-[python python2 python3 python3.6 python3.5 python3.4 python3.3 python3.2 dnl
- python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 dnl
- python2.2 python2.1 python2.0])
+[python python2 python3 dnl
+ python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
+ python3.2 python3.1 python3.0 dnl
+ python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
+ python2.0])
 
   AC_ARG_VAR([PYTHON], [the Python interpreter])