From 51f71fc17add4a5ed7bc10d35e01fdb90ef11aa0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 22 Jun 2024 09:10:10 +0800 Subject: [PATCH] cmake: bump up required Python3 to 3.9 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 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62aaad94dc8..d0252c57da3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -580,10 +580,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) -- 2.39.5