diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-04-29 21:16:31 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-04-29 21:16:31 +0000 |
| commit | 3a5ecff18c444eddc4eeb1de6c404a4b44081c60 (patch) | |
| tree | b87852cd42dd9e76ef97c81203ad79e9a26badaa /CMakeScripts/InstallMSYS2.cmake | |
| parent | Code formating (diff) | |
| download | inkscape-3a5ecff18c444eddc4eeb1de6c404a4b44081c60.tar.gz inkscape-3a5ecff18c444eddc4eeb1de6c404a4b44081c60.zip | |
cmake/MSYS2: Only install a fixed list of Python extensions (instead of all extensions that happen to be installed on the build system)
(bzr r15650)
Diffstat (limited to 'CMakeScripts/InstallMSYS2.cmake')
| -rw-r--r-- | CMakeScripts/InstallMSYS2.cmake | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake index bff09cabf..8d31aca46 100644 --- a/CMakeScripts/InstallMSYS2.cmake +++ b/CMakeScripts/InstallMSYS2.cmake @@ -173,7 +173,7 @@ if(WIN32) FILES_MATCHING
PATTERN "*gtk30.mo"
PATTERN "*gtkspell3.mo")
-
+
install(DIRECTORY ${MINGW_PATH}/share/poppler
DESTINATION ${CMAKE_INSTALL_PREFIX}/share)
@@ -234,5 +234,27 @@ if(WIN32) ${MINGW_BIN}/libpython2.7.dll
DESTINATION ${CMAKE_INSTALL_PREFIX})
install(DIRECTORY ${MINGW_LIB}/python2.7
- DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
+ PATTERN "python2.7/site-packages" EXCLUDE)
+
+ set(site_packages "lib/python2.7/site-packages")
+ # Python packages installed via pacman
+ set(packages "python2-lxml" "python2-numpy")
+ foreach(package ${packages})
+ list_files_pacman(${package} paths)
+ install_list(FILES ${paths}
+ ROOT ${MINGW_PATH}
+ INCLUDE ${site_packages} # only include content from "site-packages" (we might consider to install everything)
+ )
+ endforeach()
+ # Python packages installed via pip
+ set(packages "coverage" "pyserial" "scour" "six")
+ foreach(package ${packages})
+ list_files_pip(${package} paths)
+ install_list(FILES ${paths}
+ ROOT ${MINGW_PATH}/${site_packages}
+ DESTINATION ${site_packages}/
+ EXCLUDE "^\\.\\.\\/" # exclude content in parent directories (notably scripts installed to /bin)
+ )
+ endforeach()
endif()
\ No newline at end of file |
