Skip to content

Commit 48e12a5

Browse files
author
Luca Geretti
committed
Change Python installation directives
1 parent c2fbe54 commit 48e12a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmake/PythonBindings.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ if(PYTHONLIBS_FOUND)
5353
set_target_properties(pyariadne-algebra PROPERTIES PREFIX "" OUTPUT_NAME "algebra" SUFFIX ".so")
5454
target_link_libraries (pyariadne-algebra PUBLIC ${GCOV_LIBRARIES} ariadne PRIVATE pybind11::module)
5555

56-
execute_process(COMMAND ${PYTHON_EXECUTABLE} -m site --user-site OUTPUT_VARIABLE PYARIADNE_INSTALL_DIR)
57-
string(STRIP ${PYARIADNE_INSTALL_DIR} PYARIADNE_INSTALL_DIR)
58-
install(TARGETS pyariadne DESTINATION ${PYARIADNE_INSTALL_DIR})
56+
find_package(Python)
57+
install(TARGETS pyariadne DESTINATION ${Python_SITEARCH})
5958

6059
add_subdirectory(python/tests)
6160

0 commit comments

Comments
 (0)