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:
parent
57cd42c85c
commit
fed466fd8d
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue