From: Kefu Chai Date: Thu, 3 Jun 2021 01:29:19 +0000 (+0800) Subject: do_cmake: build with python3.9 on RHEL9 X-Git-Tag: v17.1.0~1774^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41138%2Fhead;p=ceph.git do_cmake: build with python3.9 on RHEL9 rhel9 has python3.9 as of rhel9beta Signed-off-by: Kaleb S KEITHLEY Signed-off-by: Kefu Chai --- diff --git a/do_cmake.sh b/do_cmake.sh index d56212af7641..c85799aec277 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -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 ;;