]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: use python3.10 for fedora 35 41730/head
authorKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 09:50:49 +0000 (17:50 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 09:53:09 +0000 (17:53 +0800)
fedora34 was released in April 2021 with Python3.9. while fedora 35
(still Rawhide) will include python3.10. see https://fedoraproject.org/wiki/Releases/35/ChangeSet#Python_3.10

so update the script accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
do_cmake.sh

index 25b8efd3959262e0b8264ecf4a5bb45764578928..318715dafc0a000c0c596ba25ce65e987b866def 100755 (executable)
@@ -19,7 +19,9 @@ if [ -r /etc/os-release ]; then
   source /etc/os-release
   case "$ID" in
       fedora)
-          if [ "$VERSION_ID" -ge "33" ] ; then
+          if [ "$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"