From 838489f6b1e1911f71ed2af5c2b9a2eaf5e71bc6 Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Mon, 20 Nov 2023 14:43:31 +1000 Subject: [PATCH] do_cmake.sh: set python version for Fedora 39 If do_cmake.sh is being exeuted on Fedora 39 set Python version to 3.12. Remove versions for anything earlier than Fedora 37 Signed-off-by: Brad Hubbard --- do_cmake.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/do_cmake.sh b/do_cmake.sh index e838bca8b976..90f8a3381df3 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -19,16 +19,11 @@ if [ -r /etc/os-release ]; then source /etc/os-release case "$ID" in fedora) - if [ "$VERSION_ID" -ge "37" ] ; then - PYBUILD="3.11" - elif [ "$VERSION_ID" -ge "35" ] ; then - PYBUILD="3.10" - elif [ "$VERSION_ID" -ge "33" ] ; then - PYBUILD="3.9" - elif [ "$VERSION_ID" -ge "32" ] ; then - PYBUILD="3.8" + if [ "$VERSION_ID" -ge "39" ] ; then + PYBUILD="3.12" else - PYBUILD="3.7" + # Fedora 37 and above + PYBUILD="3.11" fi ;; rocky|rhel|centos) -- 2.47.3