From e2f9078739641728f01b76cac333867029e2fa25 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 29 Dec 2021 22:23:08 +1100 Subject: [PATCH] Only limit numpy to 1.21.4 for Python 3.10 on 32-bit --- config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.sh b/config.sh index 9b58842f..5e6123c1 100644 --- a/config.sh +++ b/config.sh @@ -133,9 +133,9 @@ function run_tests { brew install openblas echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg fi - if [[ "$MB_PYTHON_VERSION" == pypy3.7-* ]]; then - python3 -m pip install numpy==1.20.3 - elif [[ "$MB_PYTHON_VERSION" != 3.10 ]] || [[ "$PLAT" != "x86_64" ]]; then + if [[ "$MB_PYTHON_VERSION" == 3.10 ]] && [[ $(uname -m) == "i686" ]]; then + python3 -m pip install numpy==1.21.4 + else python3 -m pip install numpy fi