mirror of https://github.com/joan2937/pigpio
Python setup needs to be called from root
This commit is contained in:
parent
61cf704187
commit
b5f0e61ccf
|
@ -130,8 +130,7 @@ install(FILES ${man_3_SRC}
|
|||
find_package(Python COMPONENTS Interpreter QUIET)
|
||||
|
||||
if(Python_FOUND)
|
||||
message(STATUS "Installing python modules.")
|
||||
install(CODE "execute_process(COMMAND ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/setup.py install)")
|
||||
install(CODE "execute_process(COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/setup.py install)")
|
||||
endif()
|
||||
#
|
||||
#install(CODE "execute_process(COMMAND ldconfig)")
|
||||
|
|
Loading…
Reference in New Issue