Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit b5387b4

Browse files
authored
Merge pull request #236 from radarhere/fixes
Fix failing main build
2 parents aec595a + 136ab89 commit b5387b4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

config.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function pre_build {
5757
build_jpeg
5858
CFLAGS=$ORIGINAL_CFLAGS
5959

60-
if [[ -n "$IS_MACOS" && $MACOSX_DEPLOYMENT_TARGET == "11.0" ]]; then
60+
if [[ -n "$IS_MACOS" ]]; then
6161
TIFF_VERSION=4.2.0
6262
fi
6363
build_tiff
@@ -133,9 +133,11 @@ function run_tests {
133133
brew install openblas
134134
echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg
135135
fi
136-
if [[ "$MB_PYTHON_VERSION" == pypy3.7-* ]]; then
136+
if [[ "$MB_PYTHON_VERSION" == pypy3.7-* ]] && [[ $(uname -m) == "i686" ]]; then
137137
python3 -m pip install numpy==1.20.3
138-
elif [[ "$MB_PYTHON_VERSION" != 3.10 ]] || [[ "$PLAT" != "x86_64" ]]; then
138+
elif [[ "$MB_PYTHON_VERSION" == 3.10 ]] && [[ $(uname -m) == "i686" ]]; then
139+
python3 -m pip install numpy==1.21.4
140+
else
139141
python3 -m pip install numpy
140142
fi
141143

0 commit comments

Comments
 (0)