summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2022-05-26 23:09:07 +0300
committermattip <matti.picus@gmail.com>2022-05-26 23:09:07 +0300
commit54a7b0b9843e2e89b217eaa38550752bb4754119 (patch)
tree8eae3074f8c9c0927dd1666e9c2b651feead700e /numpy/core/setup.py
parent6014a39cb4d979a334b20b05342f82766a7840cf (diff)
downloadnumpy-54a7b0b9843e2e89b217eaa38550752bb4754119.tar.gz
make MismatchCAPIWarnining into MismatchCAPIError
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index fe9020111..41f702bd1 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -476,11 +476,8 @@ def configuration(parent_package='',top_path=None):
local_dir = config.local_path
codegen_dir = join(local_dir, 'code_generators')
- if is_released:
- warnings.simplefilter('error', MismatchCAPIWarning)
-
# Check whether we have a mismatch between the set C API VERSION and the
- # actual C API VERSION
+ # actual C API VERSION. Will raise a MismatchCAPIError if so.
check_api_version(C_API_VERSION, codegen_dir)
generate_umath_py = join(codegen_dir, 'generate_umath.py')