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 <jcollin@redhat.com>
This commit is contained in:
Jos Collin 2023-04-26 05:43:29 +05:30
parent 11b3cc2e02
commit 581d892ae2
No known key found for this signature in database
GPG Key ID: 10DA18C384692C82

View File

@ -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)