summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2020-09-18 02:09:02 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2020-09-18 02:09:02 +0200
commit5bec8df317ffbda8f97486195b758f2261495749 (patch)
tree326cf472008fdc3faa198bb107606deadf8e3251
parentc6853c7c27bb8352ab498848439d4fee9eb79a33 (diff)
downloadnumpy-5bec8df317ffbda8f97486195b758f2261495749.tar.gz
BLD: Fix a macOS build failure when `NPY_BLAS_ORDER=""`
-rw-r--r--numpy/distutils/system_info.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index b4513825d..c3bd6347c 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -471,6 +471,9 @@ def _parse_env_order(base_order, env):
allow_order = base_order.copy()
for order in orders:
+ if not order:
+ continue
+
if order not in base_order:
unknown_order.append(order)
continue
@@ -482,6 +485,9 @@ def _parse_env_order(base_order, env):
allow_order = []
for order in orders:
+ if not order:
+ continue
+
if order not in base_order:
unknown_order.append(order)
continue