Limit numpy on 32-bit to 1.21.4 for Python 3.10 and 1.20.3 for PyPy

This commit is contained in:
Andrew Murray 2021-12-29 23:46:38 +11:00
parent de4d6249ef
commit 136ab890c0

View File

@ -133,9 +133,11 @@ function run_tests {
brew install openblas brew install openblas
echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg
fi fi
if [[ "$MB_PYTHON_VERSION" == pypy3.7-* ]]; then if [[ "$MB_PYTHON_VERSION" == pypy3.7-* ]] && [[ $(uname -m) == "i686" ]]; then
python3 -m pip install numpy==1.20.3 python3 -m pip install numpy==1.20.3
elif [[ "$MB_PYTHON_VERSION" != 3.10 ]] || [[ "$PLAT" != "x86_64" ]]; then elif [[ "$MB_PYTHON_VERSION" == 3.10 ]] && [[ $(uname -m) == "i686" ]]; then
python3 -m pip install numpy==1.21.4
else
python3 -m pip install numpy python3 -m pip install numpy
fi fi