summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-02-08 10:53:21 -0700
committerGitHub <noreply@github.com>2022-02-08 10:53:21 -0700
commita6f55fe293502dd94eccb3799efdbaaa1d5ff1df (patch)
tree7de5a6bd467439d3c96c610b2529c2abb562b026 /numpy/core/setup.py
parent9d3735a6c0781585a4a6cd767f68967d3897b38b (diff)
parentdf8d1fd3c2077ca785b0948912162e03727ace6c (diff)
downloadnumpy-a6f55fe293502dd94eccb3799efdbaaa1d5ff1df.tar.gz
Merge pull request #21000 from charris/replace-looseversion
MAINT: Replace LooseVersion by _pep440.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index f087c8826..9704cff0a 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -422,12 +422,13 @@ def configuration(parent_package='',top_path=None):
exec_mod_from_location)
from numpy.distutils.system_info import (get_info, blas_opt_info,
lapack_opt_info)
+ from numpy.version import release as is_released
config = Configuration('core', parent_package, top_path)
local_dir = config.local_path
codegen_dir = join(local_dir, 'code_generators')
- if is_released(config):
+ if is_released:
warnings.simplefilter('error', MismatchCAPIWarning)
# Check whether we have a mismatch between the set C API VERSION and the