Skip to content

Commit

Permalink
do_cmake: always pass -DWITH_PYTHON3 to cmake
Browse files Browse the repository at this point in the history
do not pretend that we support python2 anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Mar 9, 2021
1 parent b05ea0d commit 6dbd4f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions do_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6dbd4f5

Please sign in to comment.