Skip to content

Commit

Permalink
prune pip-installed scripts from fspython release
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoopes committed Sep 17, 2020
1 parent 4d5cc2f commit 1352e8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ if(INSTALL_PYTHON_DEPENDENCIES)
execute_process(COMMAND bash -c \"${CMAKE_INSTALL_PREFIX}/python/bin/python3 -m pip install -r ${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt ${PKG_TARGET}\" RESULT_VARIABLE retcode)
if(NOT \${retcode} STREQUAL 0)
message(FATAL_ERROR \"Could not install freesurfer python dependencies\")
endif()
execute_process(COMMAND bash -c \"find ${CMAKE_INSTALL_PREFIX}/python/bin -name 'python3*' -type f -exec rm -f {} +\" RESULT_VARIABLE retcode)
if(NOT \${retcode} STREQUAL 0)
message(FATAL_ERROR \"Could not remove pip-installed scripts\")
endif()"
)
endif()
4 changes: 4 additions & 0 deletions qatools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ if(INSTALL_PYTHON_DEPENDENCIES)
execute_process(COMMAND bash -c \"${CMAKE_INSTALL_PREFIX}/python/bin/python3 -m pip install -r ${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt ${PKG_TARGET}\" RESULT_VARIABLE retcode)
if(NOT \${retcode} STREQUAL 0)
message(FATAL_ERROR \"Could not install QA tools dependencies\")
endif()
execute_process(COMMAND bash -c \"find ${CMAKE_INSTALL_PREFIX}/python/bin -name 'python3*' -type f -exec rm -f {} +\" RESULT_VARIABLE retcode)
if(NOT \${retcode} STREQUAL 0)
message(FATAL_ERROR \"Could not remove pip-installed scripts\")
endif()"
)
endif()

0 comments on commit 1352e8a

Please sign in to comment.