From: Kefu Chai Date: Mon, 7 Jun 2021 09:49:24 +0000 (+0800) Subject: do_cmake.sh: refactor code to set PYBUILD X-Git-Tag: v17.1.0~1722^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7597405c3dfbfd894154d73b38fc2e8e40ccb1f;p=ceph.git do_cmake.sh: refactor code to set PYBUILD so it is more consistent with rhel/centos part. Signed-off-by: Kefu Chai --- diff --git a/do_cmake.sh b/do_cmake.sh index c85799aec277c..25b8efd395926 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -19,11 +19,12 @@ if [ -r /etc/os-release ]; then source /etc/os-release case "$ID" in fedora) - PYBUILD="3.7" - if [ "$VERSION_ID" -eq "32" ] ; then - PYBUILD="3.8" - elif [ "$VERSION_ID" -ge "33" ] ; then - PYBUILD="3.9" + if [ "$VERSION_ID" -ge "33" ] ; then + PYBUILD="3.9" + elif [ "$VERSION_ID" -ge "32" ] ; then + PYBUILD="3.8" + else + PYBUILD="3.7" fi ;; rhel|centos)