]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: set python version for Fedora 39 54566/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 20 Nov 2023 04:43:31 +0000 (14:43 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 21 Nov 2023 00:44:33 +0000 (10:44 +1000)
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 <bhubbard@redhat.com>
do_cmake.sh

index e838bca8b9762c5cc77bba6da5ccc43d40fba994..90f8a3381df365f044993e04bfbe770f51e0f09e 100755 (executable)
@@ -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)