If do_cmake.sh is being exeuted on Fedora 39 set Python version to 3.12.
Remove versions for anything earlier than Fedora 37
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
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)