]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: specify correct python version for centos 10 stream
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 13 Feb 2025 20:59:58 +0000 (15:59 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 20 Feb 2025 21:26:37 +0000 (16:26 -0500)
Update the python version in the same tedious manner for centos 10
stream.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
do_cmake.sh

index 4d2f598094ab8b531a28f73587e6b0cad08c54e7..2f5c5ee5bd477a7d0ad9129b537448e6ed5e89d2 100755 (executable)
@@ -30,7 +30,9 @@ if [ -r /etc/os-release ]; then
           ;;
       almalinux|rocky|rhel|centos)
           MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//')
-          if [ "$MAJOR_VER" -ge "9" ] ; then
+          if [ "$MAJOR_VER" -ge "10" ] ; then
+              PYBUILD="3.12"
+          elif [ "$MAJOR_VER" -ge "9" ] ; then
               PYBUILD="3.9"
           elif [ "$MAJOR_VER" -ge "8" ] ; then
               PYBUILD="3.6"