diff options
author | Brad Hubbard <bhubbard@redhat.com> | 2023-11-20 05:43:31 +0100 |
---|---|---|
committer | Brad Hubbard <bhubbard@redhat.com> | 2023-11-21 01:44:33 +0100 |
commit | 838489f6b1e1911f71ed2af5c2b9a2eaf5e71bc6 (patch) | |
tree | 80ce4a52175563e85c15d4d737e8e2a1fa33b775 /do_cmake.sh | |
parent | Merge pull request #54528 from yuvalif/wip-yuval-63532 (diff) | |
download | ceph-838489f6b1e1911f71ed2af5c2b9a2eaf5e71bc6.tar.xz ceph-838489f6b1e1911f71ed2af5c2b9a2eaf5e71bc6.zip |
do_cmake.sh: set python version for Fedora 39
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>
Diffstat (limited to 'do_cmake.sh')
-rwxr-xr-x | do_cmake.sh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/do_cmake.sh b/do_cmake.sh index e838bca8b97..90f8a3381df 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -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) |