]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake: always pass -DWITH_PYTHON3 to cmake
authorKefu Chai <kchai@redhat.com>
Thu, 4 Mar 2021 06:30:17 +0000 (14:30 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Mar 2021 11:13:21 +0000 (19:13 +0800)
do not pretend that we support python2 anymore.

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

index 8779d721339c0b3847778078e78ba30d2df43533..d56212af76419eceba7ee420175e49d0daa0d672 100755 (executable)
@@ -13,7 +13,7 @@ if [ -e $BUILD_DIR ]; then
     exit 1
 fi
 
-PYBUILD="2"
+PYBUILD="3"
 ARGS="-GNinja"
 if [ -r /etc/os-release ]; then
   source /etc/os-release
@@ -47,9 +47,7 @@ else
   exit 1
 fi
 
-if [[ "$PYBUILD" =~ ^3(\..*)?$ ]] ; then
-    ARGS+=" -DWITH_PYTHON3=${PYBUILD}"
-fi
+ARGS+=" -DWITH_PYTHON3=${PYBUILD}"
 
 if type ccache > /dev/null 2>&1 ; then
     echo "enabling ccache"