summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-11-24 21:40:07 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2020-11-24 21:40:07 -0600
commita806c21f787132525316002926e4780243d948cc (patch)
treeed7f501d00996cc69665754dc54069e9f7a4dc44
parent39d2e8b2d81ca0989ab32bfbd234b2cb8dd7cce7 (diff)
downloadnumpy-a806c21f787132525316002926e4780243d948cc.tar.gz
CI: Activate new castingimpl on no-openblas azure job
-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