Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-authored-by: Kefu Chai <kchai@redhat.com>
add_subdirectory(pybind)
add_subdirectory(ceph-volume)
+add_subdirectory(python-common)
# Monitor
add_subdirectory(mon)
--- /dev/null
+if(WITH_PYTHON3)
+ list(APPEND py_vers 3)
+endif()
+if(WITH_PYTHON2)
+ list(APPEND py_vers 2)
+endif()
+
+include(Distutils)
+foreach(python_version ${py_vers})
+ distutils_install_module(ceph
+ PYTHON_VERSION ${python_version})
+endforeach()
list(APPEND tox_tests run-tox-mgr-orchestrator_cli)
set(MGR_ORCHESTRATOR_CLI_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/mgr-orchestrator_cli-virtualenv)
list(APPEND env_vars_for_tox_tests MGR_ORCHESTRATOR_CLI_VIRTUALENV=${MGR_ORCHESTRATOR_CLI_VIRTUALENV})
+
+ add_test(NAME run-tox-python-common
+ COMMAND bash ${CMAKE_SOURCE_DIR}/src/script/run_tox.sh
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/python-common )
+ list(APPEND tox_tests run-tox-python-common)
endif()
set_property(