]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake: build with python3.9 on RHEL9 41138/head
authorKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 01:29:19 +0000 (09:29 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 01:34:01 +0000 (09:34 +0800)
rhel9 has python3.9 as of rhel9beta

Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
do_cmake.sh

index d56212af76419eceba7ee420175e49d0daa0d672..c85799aec277c4213ec4fb508f6b5219de2edd3d 100755 (executable)
@@ -28,7 +28,9 @@ if [ -r /etc/os-release ]; then
           ;;
       rhel|centos)
           MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//')
-          if [ "$MAJOR_VER" -ge "8" ] ; then
+          if [ "$MAJOR_VER" -ge "9" ] ; then
+              PYBUILD="3.9"
+          elif [ "$MAJOR_VER" -ge "8" ] ; then
               PYBUILD="3.6"
           fi
           ;;