1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Change default Python-Wrapper Module install path.

Default install Path is now /usr/in/<python-version>/lib-dynload.
It is useful for dynamic libraries (.so modules).
May consider building a Python Wheel.

Signed-off-by: Kevin Vu te Laar <vu.te@rwth-aachen.de>
This commit is contained in:
KeVteL 2024-12-12 13:32:18 +01:00 committed by al3xa23
parent 57cd42c85c
commit fed466fd8d

View file

@ -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
)