do_cmake.sh: specify correct python version for centos 10 stream

Update the python version in the same tedious manner for centos 10
stream.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2025-02-13 15:59:58 -05:00
parent af9e68edf7
commit 37a3fd46c5

View File

@ -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"