]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: bump up required Python3 to 3.9
authorKefu Chai <tchaikov@gmail.com>
Sat, 22 Jun 2024 01:10:10 +0000 (09:10 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 4 Feb 2026 13:51:20 +0000 (21:51 +0800)
since we've dropped the support of CentOS 8 in favor of CentOS 9, and
the minmum Python3 version used by the suppored distros are 3.9. let's
bump up the Python3 version to 3.9. as we are going to remove the code
for older versions like Python 3.6 and 3.8 backward compatibility.

Refs https://tracker.ceph.com/issues/66399
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 51f71fc17add4a5ed7bc10d35e01fdb90ef11aa0)

CMakeLists.txt

index b138acff0004dbc4a9eb2103d251583788fa5a6b..f4f8832b9719e1e7db0417c27aa5d3093ac830e8 100644 (file)
@@ -552,10 +552,13 @@ endif (WITH_RADOSGW)
 option(WITH_CEPHFS "CephFS is enabled" ON)
 
 if(NOT WIN32)
-# Please specify 3.[0-7] if you want to build with a certain version of python3.
+# Please specify 3.x if you want to build with a certain version of python3.
 set(WITH_PYTHON3 "3" CACHE STRING "build with specified python3 version")
 find_package(Python3 ${WITH_PYTHON3} EXACT REQUIRED
   COMPONENTS Interpreter Development)
+if(Python3_VERSION VERSION_LESS 3.9)
+  message(FATAL_ERROR "${Python3_VERSION} is not supported, please use Python 3.9 and up")
+endif()
 
 option(WITH_MGR "ceph-mgr is enabled" ON)
 if(WITH_MGR)