summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2022-11-02 17:05:42 (GMT)
committerGitHub <noreply@github.com>2022-11-02 17:05:42 (GMT)
commitf7241aaf6f22fdd4710f8d3ef1d594f9725b3b90 (patch)
tree85a063bb7efdd18631b961c4efbd97732f736723
parent780757ac586d7275db5ee1f229fb2f3d2268d14e (diff)
downloadcpython-f7241aaf6f22fdd4710f8d3ef1d594f9725b3b90.zip
cpython-f7241aaf6f22fdd4710f8d3ef1d594f9725b3b90.tar.gz
cpython-f7241aaf6f22fdd4710f8d3ef1d594f9725b3b90.tar.bz2
gh-98989: configure: add 3.11 to list of Pythons (#98988)
Closes #98989 Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
-rw-r--r--Misc/NEWS.d/next/Build/2022-11-01-21-45-58.gh-issue-98989.tMxbdB.rst1
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
3 files changed, 3 insertions, 2 deletions
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
index 0000000..6e22ac1
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2022-11-01-21-45-58.gh-issue-98989.tMxbdB.rst
@@ -0,0 +1 @@
+Use ``python3.11``, if available, for regeneration and freezing.
diff --git a/configure b/configure
index 953c558..0c54ea6 100755
--- 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
diff --git a/configure.ac b/configure.ac
index 210ce32..4575a24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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)