From fed466fd8d0d201a526ca9fd2726a3470b426f14 Mon Sep 17 00:00:00 2001 From: KeVteL Date: Thu, 12 Dec 2024 13:32:18 +0100 Subject: [PATCH] Change default Python-Wrapper Module install path. Default install Path is now /usr/in//lib-dynload. It is useful for dynamic libraries (.so modules). May consider building a Python Wheel. Signed-off-by: Kevin Vu te Laar --- clients/python-wrapper/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 )