From: Gert-Jan Rozing Date: Mon, 26 Aug 2019 09:43:07 +0000 (+0200) Subject: Reenabled python isntall X-Git-Tag: archive/raspbian/1.78-1+rpi1^2~4^2~8^2~2^2^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b59425c9b89aad8d6b651afa6dde0585f6248305;p=pigpio.git Reenabled python isntall --- diff --git a/CMakeLists.txt b/CMakeLists.txt index dca39fb..ea1bd55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,10 +129,10 @@ install(FILES ${man_3_SRC} find_package(Python COMPONENTS Interpreter QUIET) -#file(GLOB setup_SRC "setup.py") -#if(Python_FOUND) -# install(CODE "execute_process(COMMAND cd ${CMAKE_SOURCE_DIR} && ${Python_EXECUTABLE} ${setup_SRC} install)") -#endif() +file(GLOB setup_SRC "setup.py") +if(Python_FOUND) + install(CODE "execute_process(COMMAND cd ${CMAKE_SOURCE_DIR} && ${Python_EXECUTABLE} ${setup_SRC} install)") +endif() # #install(CODE "execute_process(COMMAND ldconfig)")