CMake: Fix to install numpy (source dir was "hardcoded", rather use PYTHON_NUMPY_PATH), was failing under Debian testing.
Note that there is still a problem, destination ("site-packages") is not in blender's python path, so you have to edit sys.path before being able to import numpy... but at least it installs again.
This commit is contained in:
@@ -441,7 +441,7 @@ if(UNIX AND NOT APPLE)
|
||||
|
||||
if(WITH_PYTHON_INSTALL_NUMPY)
|
||||
install(
|
||||
DIRECTORY ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/numpy
|
||||
DIRECTORY ${PYTHON_NUMPY_PATH}/numpy
|
||||
DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/site-packages
|
||||
PATTERN ".svn" EXCLUDE
|
||||
PATTERN "__pycache__" EXCLUDE # * any cache *
|
||||
|
Reference in New Issue
Block a user