Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Meel <ankitjmeel@gmail.com>2021-03-26 22:44:45 +0300
committerAnkit Meel <ankitjmeel@gmail.com>2021-03-26 22:44:45 +0300
commit0ec82477af9bc55e933694300ccd9666fd9534de (patch)
treee2902140e4ed56a8022749f1d82ce1f9de696054
parentad31b13f91e40b40d75222923ac48f6682476b0c (diff)
macOS/bpy: install into site-packages
Reviewed By: #platform_macos, brecht Maniphest Tasks: T86579 Differential Revision: https://developer.blender.org/D10664
-rw-r--r--build_files/cmake/platform/platform_apple.cmake2
-rw-r--r--source/creator/CMakeLists.txt9
2 files changed, 10 insertions, 1 deletions
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake
index 6276032d85c..af745db63b5 100644
--- a/build_files/cmake/platform/platform_apple.cmake
+++ b/build_files/cmake/platform/platform_apple.cmake
@@ -146,7 +146,7 @@ if(WITH_PYTHON)
set(PYTHON_INCLUDE_DIR "${_py_framework}/include/python${PYTHON_VERSION}")
set(PYTHON_EXECUTABLE "${_py_framework}/bin/python${PYTHON_VERSION}")
- set(PYTHON_LIBPATH "${_py_framework}/lib/python${PYTHON_VERSION}/config-${PYTHON_VERSION}")
+ set(PYTHON_LIBPATH "${_py_framework}/lib/python${PYTHON_VERSION}/")
# set(PYTHON_LIBRARY python${PYTHON_VERSION})
# set(PYTHON_LINKFLAGS "-u _PyMac_Error -framework Python") # won't build with this enabled
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 07bc1d5d83d..43533d55f55 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -1054,6 +1054,15 @@ elseif(APPLE)
)
unset(_py_inc_suffix)
endif()
+ if(WITH_PYTHON_MODULE)
+ install(
+ TARGETS blender
+ LIBRARY DESTINATION ${PYTHON_LIBPATH}/site-packages
+ )
+ install_dir(
+ ${CMAKE_INSTALL_PREFIX}/${TARGETDIR_VER}
+ ${PYTHON_LIBPATH}/Resources)
+ endif()
if(WITH_DRACO)
install(