diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2022-02-08 10:53:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 10:53:21 -0700 |
commit | a6f55fe293502dd94eccb3799efdbaaa1d5ff1df (patch) | |
tree | 7de5a6bd467439d3c96c610b2529c2abb562b026 /numpy/core/setup.py | |
parent | 9d3735a6c0781585a4a6cd767f68967d3897b38b (diff) | |
parent | df8d1fd3c2077ca785b0948912162e03727ace6c (diff) | |
download | numpy-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.py | 3 |
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 |