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.
1 parent 9590c07 commit d8185dbCopy full SHA for d8185db
sklearn/meson.build
@@ -55,7 +55,11 @@ print(incdir)
55
endif
56
57
inc_np = include_directories(incdir_numpy)
58
-np_dep = declare_dependency(include_directories: inc_np)
+# Don't use the deprecated NumPy C API. Define this to a fixed version instead of
59
+# NPY_API_VERSION in order not to break compilation for released SciPy versions
60
+# when NumPy introduces a new deprecation.
61
+numpy_no_deprecated_api = ['-DNPY_NO_DEPRECATED_API=NPY_1_9_API_VERSION']
62
+np_dep = declare_dependency(include_directories: inc_np, compile_args: numpy_no_deprecated_api)
63
64
openmp_dep = dependency('OpenMP', language: 'c', required: false)
65
0 commit comments