do_cmake.sh: set python version for Fedora 37

If do_cmake.sh is being exeuted on Fedora 37 set Python version to 3.11.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
This commit is contained in:
Rishabh Dave 2023-04-05 21:57:26 +05:30
parent ef6b9ae3c7
commit 8b14da0466

View File

@ -19,7 +19,9 @@ if [ -r /etc/os-release ]; then
source /etc/os-release
case "$ID" in
fedora)
if [ "$VERSION_ID" -ge "35" ] ; then
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"