summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2022-11-17 21:50:58 +0200
committermattip <matti.picus@gmail.com>2022-11-17 21:50:58 +0200
commit441b3de21317c8d4bca8e6c6d90a70214417aa71 (patch)
tree9cb49dd34f8e38130814fb5d9270c82c2b9980fd /tools
parente0bf73d5880868616715b187e32b2f47fa5ba14d (diff)
downloadnumpy-441b3de21317c8d4bca8e6c6d90a70214417aa71.tar.gz
copy LIBRARY_PATH from scipy build
Diffstat (limited to 'tools')
-rw-r--r--tools/wheels/cibw_test_command.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/wheels/cibw_test_command.sh b/tools/wheels/cibw_test_command.sh
index 589033e10..d01fb6a49 100644
--- a/tools/wheels/cibw_test_command.sh
+++ b/tools/wheels/cibw_test_command.sh
@@ -15,7 +15,9 @@ fi
if [[ $RUNNER_OS == "macOS" && $RUNNER_ARCH == "X64" ]]; then
# Not clear why this is needed but it seems on x86_64 this is not the default
# and without it f2py tests fail
- export DYLD_LIBRARY_PATH=/usr/local/lib
+ export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/lib"
+ # Needed so gcc (not clang) can find system libraries like libm (-lm)
+ export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
fi
# Set available memory value to avoid OOM problems on aarch64.
# See gh-22418.