]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104487: PYTHON_FOR_REGEN must be minimum Python 3.10 (#104488)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Mon, 15 May 2023 08:02:44 +0000 (10:02 +0200)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 08:02:44 +0000 (08:02 +0000)
Also include Python 3.12 in the list of accepted versions.

Doc/whatsnew/3.12.rst
Misc/NEWS.d/next/Build/2023-05-15-09-34-08.gh-issue-99017.nToOQu.rst [new file with mode: 0644]
configure
configure.ac

index dc1178811e75ccd0b79356fdd7853c6f461f51fd..3e55b3fa0f4734f1f4916d9b535f26df0e6a404a 100644 (file)
@@ -1204,6 +1204,8 @@ Build Changes
 
   (Contributed by Zhang Na in :gh:`90656`.)
 
+* ``PYTHON_FOR_REGEN`` now require Python 3.10 or newer.
+
 
 C API Changes
 =============
diff --git a/Misc/NEWS.d/next/Build/2023-05-15-09-34-08.gh-issue-99017.nToOQu.rst b/Misc/NEWS.d/next/Build/2023-05-15-09-34-08.gh-issue-99017.nToOQu.rst
new file mode 100644 (file)
index 0000000..a3517ac
--- /dev/null
@@ -0,0 +1 @@
+``PYTHON_FOR_REGEN`` now require Python 3.10 or newer.
index 4d3520aee43def8a45febf6f3a561637ade67228..7aad4fe89e3cbf20550a302997d3f54dd6a65162 100755 (executable)
--- a/configure
+++ b/configure
@@ -3359,7 +3359,7 @@ fi
 
 
 
-for ac_prog in python$PACKAGE_VERSION python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3 python
+for ac_prog in python$PACKAGE_VERSION python3.12 python3.11 python3.10 python3 python
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
index 0c63cde0363e2e5db0d608664454e75ad67ff111..115998e0753b264c3bc3777a5381d59d31bf5eec 100644 (file)
@@ -202,7 +202,7 @@ AC_SUBST([FREEZE_MODULE_DEPS])
 AC_SUBST([PYTHON_FOR_BUILD_DEPS])
 
 AC_CHECK_PROGS([PYTHON_FOR_REGEN],
-  [python$PACKAGE_VERSION python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3 python],
+  [python$PACKAGE_VERSION python3.12 python3.11 python3.10 python3 python],
   [python3])
 AC_SUBST(PYTHON_FOR_REGEN)