mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 22:01:14 -07:00
Install to correct site-packages on non-Debian computers
Because dist-packages is a Debian thing only. Contributes to issue CURA-3368.
This commit is contained in:
parent
b39fece86a
commit
6484df3e60
1 changed files with 7 additions and 1 deletions
|
|
@ -45,9 +45,15 @@ if(NOT APPLE AND NOT WIN32)
|
|||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
RENAME cura)
|
||||
install(DIRECTORY cura
|
||||
if(EXISTS /etc/debian_version)
|
||||
install(DIRECTORY cura
|
||||
DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages
|
||||
FILES_MATCHING PATTERN *.py)
|
||||
else()
|
||||
install(DIRECTORY cura
|
||||
DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/cura
|
||||
FILES_MATCHING PATTERN *.py)
|
||||
endif()
|
||||
install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
|
||||
DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/cura.desktop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue