From: Jelle Zijlstra Date: Wed, 2 Nov 2022 17:05:42 +0000 (-0700) Subject: gh-98989: configure: add 3.11 to list of Pythons (#98988) X-Git-Tag: v3.12.0a2~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7241aaf6f22fdd4710f8d3ef1d594f9725b3b90;p=thirdparty%2FPython%2Fcpython.git gh-98989: configure: add 3.11 to list of Pythons (#98988) Closes #98989 Co-authored-by: Erlend E. Aasland --- 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 000000000000..6e22ac1f03cd --- /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 953c558d6048..0c54ea63924a 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 210ce3292cfd..4575a2458ba2 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)