mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
do_cmake.sh: refactor code to set PYBUILD
so it is more consistent with rhel/centos part. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
cf8814d316
commit
e7597405c3
11
do_cmake.sh
11
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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user