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:
authorSybren A. Stüvel <sybren@blender.org>2021-10-22 15:01:47 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-10-22 15:01:47 +0300
commitab1909fe06b0d8c1d5eee4824fb19413e0de1b96 (patch)
tree13a22fe7af494836cdc9c014ff232886dc520347 /source/creator
parent282516e53eba9bb3aaddd67b2b099fea98bd4c1f (diff)
Deps: Python, install Cython package
Cython was already bundled with Blender's libraries in SVN (as dependency of Numpy, see rB5bddfde217b1), but was never actually installed in the CMake install step. As a result, `import cython` would fail. This is now fixed.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 5ee9a3f4342..de560e39606 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -639,6 +639,18 @@ if(UNIX AND NOT APPLE)
PATTERN "*.h" EXCLUDE # some includes are not in include dirs
PATTERN "*.a" EXCLUDE # ./core/lib/libnpymath.a - for linking, we don't need.
)
+ install(
+ DIRECTORY ${PYTHON_NUMPY_PATH}/Cython
+ DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/${_suffix}
+ PATTERN ".svn" EXCLUDE
+ PATTERN "__pycache__" EXCLUDE # * any cache *
+ PATTERN "*.pyc" EXCLUDE # * any cache *
+ PATTERN "*.pyo" EXCLUDE # * any cache *
+ )
+ install(
+ FILES ${PYTHON_NUMPY_PATH}/cython.py
+ DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/${_suffix}
+ )
unset(_suffix)
endif()