]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: build with python3.10 on ubuntu version >= 22.0 47741/head
authorLaura Flores <lflores@redhat.com>
Mon, 22 Aug 2022 20:46:53 +0000 (20:46 +0000)
committerLaura Flores <lflores@redhat.com>
Tue, 23 Aug 2022 15:09:11 +0000 (10:09 -0500)
Fixes: https://tracker.ceph.com/issues/57230
Signed-off-by: Laura Flores <lflores@redhat.com>
do_cmake.sh

index 7b4d9ddc6446c3527dfac10c04c43aa2fe1356ba..50274547fbf995795d11e2bd070fd72f4a941aa3 100755 (executable)
@@ -42,6 +42,13 @@ if [ -r /etc/os-release ]; then
           ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
           ARGS+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF"
           ;;
+      ubuntu)
+          MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//')
+          if [ "$MAJOR_VER" -ge "22" ] ; then
+              PYBUILD="3.10"
+          fi
+          ;;
+
   esac
 elif [ "$(uname)" == FreeBSD ] ; then
   PYBUILD="3"