Skip to content

Commit

Permalink
do_cmake.sh: use python-3.9 with fedora version 33
Browse files Browse the repository at this point in the history
Fedora-33 (rawhide) now has python-3.9.
Build breaks on Fedoa-33 with Traceback:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find Python3: Found unsuitable version "3.9.0", but required is
  exact version "3.8" (found /usr/bin/python3, found components: Interpreter
  Development)

Fixes: https://tracker.ceph.com/issues/47971
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
  • Loading branch information
sunnyku committed Oct 26, 2020
1 parent 2564dd4 commit 2cc747c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion do_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ if [ -r /etc/os-release ]; then
case "$ID" in
fedora)
PYBUILD="3.7"
if [ "$VERSION_ID" -ge "32" ] ; then
if [ "$VERSION_ID" -eq "32" ] ; then
PYBUILD="3.8"
elif [ "$VERSION_ID" -ge "33" ] ; then
PYBUILD="3.9"
fi
;;
rhel|centos)
Expand Down

0 comments on commit 2cc747c

Please sign in to comment.