From df34ed9ffede2084708d2354ecb505231b51314b Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 10 Jun 2015 13:59:36 +0300 Subject: [PATCH] Logging installed Python files into text files; this partially resolves #26 --- .gitignore | 3 +++ CMakeLists.txt | 3 ++- libuavcan/CMakeLists.txt | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0ad0dfa15d..f82baaad13 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ __pycache__ # libuavcan DSDL compiler default output directory dsdlc_generated + +# Log files +*.log diff --git a/CMakeLists.txt b/CMakeLists.txt index 6636e188d8..01a925c3b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,8 @@ install(DIRECTORY dsdl DESTINATION share/uavcan) # pyuavcan # execute_process(COMMAND ./setup.py build WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/pyuavcan) -install(CODE "execute_process(COMMAND ./setup.py install WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/pyuavcan)") +install(CODE "execute_process(COMMAND ./setup.py install --record installed_files.log + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/pyuavcan)") # # libuavcan diff --git a/libuavcan/CMakeLists.txt b/libuavcan/CMakeLists.txt index f2fd00bf79..0c49b5496f 100644 --- a/libuavcan/CMakeLists.txt +++ b/libuavcan/CMakeLists.txt @@ -69,7 +69,8 @@ install(TARGETS uavcan DESTINATION lib) install(DIRECTORY include/uavcan DESTINATION include) install(DIRECTORY include/dsdlc_generated/uavcan DESTINATION include) # Generated and lib's .hpp install(DIRECTORY src DESTINATION src/uavcan) -install(CODE "execute_process(COMMAND ./setup.py install WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/dsdl_compiler)") +install(CODE "execute_process(COMMAND ./setup.py install --record installed_files.log + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/dsdl_compiler)") # # Tests and static analysis - only for debug builds