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:
authorBastien Montagne <bastien@blender.org>2020-12-14 14:29:34 +0300
committerBastien Montagne <bastien@blender.org>2020-12-14 14:29:34 +0300
commit551856ed320dcab6bc2f9b985783ad32506d79ab (patch)
tree58060c9e2c07eea52aa8d1921db0c9c14fdcc8a4 /build_files
parentfdc9350a9f6c9cb43d8c83d111e88e863f884f79 (diff)
Revert "Fix several issues with handling of numpy in CMake."
This reverts commit 5d570c875eda8fb9aa3635f7f4edac0dc1eaedc8. Buildbots are still borken, need more time to investigate.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/macros.cmake40
1 files changed, 0 insertions, 40 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index aeedcf30c31..202b44f611c 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -1139,7 +1139,6 @@ endfunction()
function(find_python_package
package
- relative_include_dir
)
string(TOUPPER ${package} _upper_package)
@@ -1171,10 +1170,7 @@ function(find_python_package
dist-packages
vendor-packages
NO_DEFAULT_PATH
- DOC
- "Path to python site-packages or dist-packages containing '${package}' module"
)
- mark_as_advanced(PYTHON_${_upper_package}_PATH)
if(NOT EXISTS "${PYTHON_${_upper_package}_PATH}")
message(WARNING
@@ -1192,42 +1188,6 @@ function(find_python_package
set(WITH_PYTHON_INSTALL_${_upper_package} OFF PARENT_SCOPE)
else()
message(STATUS "${package} found at '${PYTHON_${_upper_package}_PATH}'")
-
- if(NOT "${relative_include_dir}" STREQUAL "")
- unset(PYTHON_${_upper_package}_INCLUDE_DIRS CACHE)
- find_path(PYTHON_${_upper_package}_INCLUDE_DIRS
- NAMES
- "${package}/${relative_include_dir}"
- HINTS
- "${PYTHON_LIBPATH}/"
- "${PYTHON_LIBPATH}/python${PYTHON_VERSION}/"
- "${PYTHON_LIBPATH}/python${_PY_VER_MAJOR}/"
- PATH_SUFFIXES
- "site-packages/"
- "dist-packages/"
- "vendor-packages/"
- NO_DEFAULT_PATH
- DOC
- "Path to python site-packages or dist-packages containing '${package}' module header files"
- )
- mark_as_advanced(PYTHON_${_upper_package}_INCLUDE_DIRS)
-
- if(NOT EXISTS "${PYTHON_${_upper_package}_INCLUDE_DIRS}")
- message(WARNING
- "Python package '${package}' include dir path could not be found in:\n"
- "'${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/${package}/${relative_include_dir}', "
- "'${PYTHON_LIBPATH}/python${_PY_VER_MAJOR}/site-packages/${package}/${relative_include_dir}', "
- "'${PYTHON_LIBPATH}/python${PYTHON_VERSION}/dist-packages/${package}/${relative_include_dir}', "
- "'${PYTHON_LIBPATH}/python${_PY_VER_MAJOR}/dist-packages/${package}/${relative_include_dir}', "
- "'${PYTHON_LIBPATH}/python${PYTHON_VERSION}/vendor-packages/${package}/${relative_include_dir}', "
- "'${PYTHON_LIBPATH}/python${_PY_VER_MAJOR}/vendor-packages/${package}/${relative_include_dir}', "
- "\n"
- "The 'WITH_PYTHON_${_upper_package}' option will be disabled.\n"
- "The build will be usable, only add-ons that depend on this package won't be functional."
- )
- set(WITH_PYTHON_${_upper_package} OFF PARENT_SCOPE)
- endif()
- endif()
endif()
endif()
endfunction()