From: Jos Collin Date: Wed, 26 Apr 2023 00:13:29 +0000 (+0530) Subject: tools/cephfs/top/CMakeList.txt: check the minimum compatible python version for cephf... X-Git-Tag: v18.1.0~39^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5273a59035ef7b25724bddb2a65ef3a46cffcca2;p=ceph.git tools/cephfs/top/CMakeList.txt: check the minimum compatible python version for cephfs-top The minimum compatible python version for cephfs-top is 3.6.0, which supports the curses apis and constants used in cephfs-top. Fixes: https://tracker.ceph.com/issues/58677 Signed-off-by: Jos Collin (cherry picked from commit 581d892ae2c67237438b61f4f19a6ee8e12c22f7) --- diff --git a/src/tools/cephfs/top/CMakeLists.txt b/src/tools/cephfs/top/CMakeLists.txt index 49750c850af04..8f9df01877519 100644 --- a/src/tools/cephfs/top/CMakeLists.txt +++ b/src/tools/cephfs/top/CMakeLists.txt @@ -5,3 +5,7 @@ if(WITH_TESTS) include(AddCephTest) add_tox_test(cephfs-top) endif() + +set(MINIMUM_COMPATIBLE_VERSION 3.6.0) +find_package(Python3 ${MINIMUM_COMPATIBLE_VERSION} REQUIRED + COMPONENTS Interpreter)