Commit 73dd0284 authored by Stefan Behnel's avatar Stefan Behnel

Try to fix NumPy test failures by not setting the "NPY_NO_DEPRECATED_API"...

Try to fix NumPy test failures by not setting the "NPY_NO_DEPRECATED_API" #define for NumPy 1.19.[01].
parent 02d4195a
......@@ -241,7 +241,7 @@ def update_numpy_extension(ext, set_api17_macro=True):
ext.include_dirs.append(numpy.get_include())
if set_api17_macro:
if set_api17_macro and getattr(numpy, '__version__', '') not in ('1.19.0', '1.19.1'):
ext.define_macros.append(('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION'))
# We need the npymath library for numpy.math.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment