diff --git a/clients/python-wrapper/CMakeLists.txt b/clients/python-wrapper/CMakeLists.txt index a4945e041..451aa929f 100644 --- a/clients/python-wrapper/CMakeLists.txt +++ b/clients/python-wrapper/CMakeLists.txt @@ -5,6 +5,11 @@ set(PYBIND11_FINDPYTHON ON) find_package(pybind11 CONFIG REQUIRED) find_package(Python3 COMPONENTS Interpreter Development REQUIRED) +message(STATUS "Found Python version: ${Python_VERSION}") +message(STATUS "Python major version: ${Python_VERSION_MAJOR}") +message(STATUS "Python minor version: ${Python_VERSION_MINOR}") +message(STATUS "Python so install directory: /usr/bin/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/lib-dynload") + pybind11_add_module(villas-python-wrapper villas-python-wrapper.cpp) target_link_libraries(villas-python-wrapper PUBLIC villas) @@ -12,5 +17,5 @@ install( TARGETS villas-python-wrapper COMPONENT bin RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION /usr/bin/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/lib-dynload )