]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs/top/CMakeList.txt: check the minimum compatible python version for cephf...
authorJos Collin <jcollin@redhat.com>
Wed, 22 Feb 2023 12:24:22 +0000 (17:54 +0530)
committerJos Collin <jcollin@redhat.com>
Tue, 18 Apr 2023 11:14:15 +0000 (16:44 +0530)
Fixes: https://tracker.ceph.com/issues/58677
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/tools/cephfs/top/CMakeLists.txt

index 49750c850af046ea07380df7d44c819b29368990..a31d98ddef3e298fd00a5947244bee438eaa95fc 100644 (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 Development)