diff options
author | Matti Picus <matti.picus@gmail.com> | 2021-01-09 20:45:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-09 20:45:40 +0200 |
commit | 2facd1966c379d20a9b15a62a054ee77f74613bb (patch) | |
tree | c40144277eab5bf589f6884744247af21886936f /numpy/core/setup.py | |
parent | 3dbf5ce5fdbc996e8abb6929a219689cf8c18e69 (diff) | |
parent | 90f4b0838b44fabd89bcdd128d5707e7526d9d94 (diff) | |
download | numpy-2facd1966c379d20a9b15a62a054ee77f74613bb.tar.gz |
Merge pull request #17863 from seberg/restructure-cast-loops-master
MAINT: Implement new casting loops based on NEP 42 and 43
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index dfb26c9c1..822f9f580 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -468,14 +468,20 @@ def configuration(parent_package='',top_path=None): # Use relaxed stride checking if NPY_RELAXED_STRIDES_CHECKING: moredefs.append(('NPY_RELAXED_STRIDES_CHECKING', 1)) + else: + moredefs.append(('NPY_RELAXED_STRIDES_CHECKING', 0)) # Use bogus stride debug aid when relaxed strides are enabled if NPY_RELAXED_STRIDES_DEBUG: moredefs.append(('NPY_RELAXED_STRIDES_DEBUG', 1)) + else: + moredefs.append(('NPY_RELAXED_STRIDES_DEBUG', 0)) # Use the new experimental casting implementation in NumPy 1.20: if NPY_USE_NEW_CASTINGIMPL: moredefs.append(('NPY_USE_NEW_CASTINGIMPL', 1)) + else: + moredefs.append(('NPY_USE_NEW_CASTINGIMPL', 0)) # Get long double representation rep = check_long_double_representation(config_cmd) @@ -788,6 +794,7 @@ def configuration(parent_package='',top_path=None): join('src', 'multiarray', 'ctors.h'), join('src', 'multiarray', 'descriptor.h'), join('src', 'multiarray', 'dtypemeta.h'), + join('src', 'multiarray', 'dtype_transfer.h'), join('src', 'multiarray', 'dragon4.h'), join('src', 'multiarray', 'einsum_debug.h'), join('src', 'multiarray', 'einsum_sumprod.h'), |