forked from bartvdbraak/blender
macOS/bpy: install into site-packages
Reviewed By: #platform_macos, brecht Maniphest Tasks: T86579 Differential Revision: https://developer.blender.org/D10664
This commit is contained in:
parent
ad31b13f91
commit
0ec82477af
@ -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
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user