summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azure-pipelines.yml3
-rw-r--r--numpy/core/setup.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 62880bbdd..f8773dc36 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -153,8 +153,9 @@ stages:
CC: /usr/bin/clang
condition: eq(variables['USE_OPENBLAS'], '1')
- script: python setup.py build -j 4 build_ext --inplace install
- displayName: 'Build NumPy without OpenBLAS'
+ displayName: 'Build NumPy without OpenBLAS and new casting'
env:
+ NPY_USE_NEW_CASTINGIMPL: 1
BLAS: None
LAPACK: None
ATLAS: None
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 2b7566c0a..2ec5e1a64 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -26,7 +26,7 @@ NPY_RELAXED_STRIDES_DEBUG = NPY_RELAXED_STRIDES_DEBUG and NPY_RELAXED_STRIDES_CH
# Set to True to use the new casting implementation as much as implemented.
# Allows running the full test suit to exercise the new machinery until
# it is used as default and the old version is eventually deleted.
-NPY_USE_NEW_CASTINGIMPL = os.environ.get('NPY_USE_NEW_CASTINGIMPL', "1") != "0"
+NPY_USE_NEW_CASTINGIMPL = os.environ.get('NPY_USE_NEW_CASTINGIMPL', "0") != "0"
# XXX: ugly, we use a class to avoid calling twice some expensive functions in
# config.h/numpyconfig.h. I don't see a better way because distutils force