blob: e4502a608ec2d92393403a24dcb5a05709d4fe00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/pybind/CMakeLists.txt b/src/pybind/CMakeLists.txt
index 664543172a..e74d73c084 100644
--- a/src/pybind/CMakeLists.txt
+++ b/src/pybind/CMakeLists.txt
@@ -62,12 +62,6 @@ foreach(python_version ${py_vers})
endforeach()
if(WITH_MGR)
- if(NOT WITH_PYTHON2 AND MGR_PYTHON_VERSION_MAJOR EQUAL 2)
- message(FATAL_ERROR "mgr plugins require python2 binding")
- elseif(NOT WITH_PYTHON3 AND MGR_PYTHON_VERSION_MAJOR EQUAL 3)
- message(FATAL_ERROR "mgr plugins require python3 binding")
- endif()
-
if(USE_OPENSSL)
execute_process(
COMMAND ${PYTHON${PYTHON_VERSION}_EXECUTABLE} -c "import ssl; print('.'.join(map(str,ssl.OPENSSL_VERSION_INFO[0:3])))"
|