From: Brad Hubbard Date: Mon, 20 Nov 2023 04:43:31 +0000 (+1000) Subject: do_cmake.sh: set python version for Fedora 39 X-Git-Tag: v19.0.0~56^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=838489f6b1e1911f71ed2af5c2b9a2eaf5e71bc6;p=ceph-ci.git 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 --- diff --git a/do_cmake.sh b/do_cmake.sh index e838bca8b97..90f8a3381df 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)