Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
numpy.distutils
1 parent 9bd14d5 commit 00ca8f4Copy full SHA for 00ca8f4
cmake/OpenCVDetectPython.cmake
@@ -216,7 +216,7 @@ if(NOT ${found})
216
message(STATUS " PYTHON3_NUMPY_INCLUDE_DIRS")
217
else()
218
# Attempt to discover the NumPy include directory. If this succeeds, then build python API with NumPy
219
- execute_process(COMMAND "${_executable}" -c "import os; os.environ['DISTUTILS_USE_SDK']='1'; import numpy.distutils; print(os.pathsep.join(numpy.distutils.misc_util.get_numpy_include_dirs()))"
+ execute_process(COMMAND "${_executable}" -c "import numpy; print(numpy.get_include())"
220
RESULT_VARIABLE _numpy_process
221
OUTPUT_VARIABLE _numpy_include_dirs
222
OUTPUT_STRIP_TRAILING_WHITESPACE)
0 commit comments