]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98989: configure: add 3.11 to list of Pythons (#98988)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 2 Nov 2022 17:05:42 +0000 (10:05 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 17:05:42 +0000 (10:05 -0700)
Closes #98989

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Misc/NEWS.d/next/Build/2022-11-01-21-45-58.gh-issue-98989.tMxbdB.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2022-11-01-21-45-58.gh-issue-98989.tMxbdB.rst b/Misc/NEWS.d/next/Build/2022-11-01-21-45-58.gh-issue-98989.tMxbdB.rst
new file mode 100644 (file)
index 0000000..6e22ac1
--- /dev/null
@@ -0,0 +1 @@
+Use ``python3.11``, if available, for regeneration and freezing.
index 953c558d6048d4584e2f022bf8f1b6a9bc202956..0c54ea63924ad071a9333115c769d2f44e6e4c50 100755 (executable)
--- a/configure
+++ b/configure
@@ -3361,7 +3361,7 @@ fi
 
 
 
-for ac_prog in python$PACKAGE_VERSION python3.10 python3.9 python3.8 python3.7 python3.6 python3 python
+for ac_prog in python$PACKAGE_VERSION python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 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 210ce3292cfdf7ccd0436217605fb371cc4a60f5..4575a2458ba2f0ad6ed9af3d2de316ae764313da 100644 (file)
@@ -203,7 +203,7 @@ AC_SUBST([FREEZE_MODULE_DEPS])
 AC_SUBST([PYTHON_FOR_BUILD_DEPS])
 
 AC_CHECK_PROGS([PYTHON_FOR_REGEN],
-  [python$PACKAGE_VERSION python3.10 python3.9 python3.8 python3.7 python3.6 python3 python],
+  [python$PACKAGE_VERSION python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3 python],
   [python3])
 AC_SUBST(PYTHON_FOR_REGEN)