Merge pull request #54566 from badone/wip-python-version-fedora-39

do_cmake.sh: set python version for Fedora 39

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
Brad Hubbard 2023-11-22 09:44:22 +10:00 committed by GitHub
commit e877333f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,16 +19,11 @@ if [ -r /etc/os-release ]; then
source /etc/os-release
case "$ID" in
fedora)
if [ "$VERSION_ID" -ge "37" ] ; then
PYBUILD="3.11"
elif [ "$VERSION_ID" -ge "35" ] ; then
PYBUILD="3.10"
elif [ "$VERSION_ID" -ge "33" ] ; then
PYBUILD="3.9"
elif [ "$VERSION_ID" -ge "32" ] ; then
PYBUILD="3.8"
if [ "$VERSION_ID" -ge "39" ] ; then
PYBUILD="3.12"
else
PYBUILD="3.7"
# Fedora 37 and above
PYBUILD="3.11"
fi
;;
rocky|rhel|centos)