From af2c55561173d606dd44cae8c4d699de062eb981 Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Wed, 17 Apr 2024 11:39:52 +1000 Subject: [PATCH] use install_name_tool to fix the SONAME inside the shared object --- tools/build_wheel.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/build_wheel.sh b/tools/build_wheel.sh index 456d3ef..b1823fc 100644 --- a/tools/build_wheel.sh +++ b/tools/build_wheel.sh @@ -34,6 +34,11 @@ if [[ $py_version != $pkg_version* ]]; then exit 1 fi +if [ $(uname) == "Darwin" ]; then + soname=$(cd local/scipy_openblas64/lib; ls libscipy_openblas*.dylib) + install_name_tool -id $soname local/scipy_openblas64/lib/$soname +fi + rm -rf local/scipy_openblas64/lib/pkgconfig echo "" >> LICENSE.txt echo "----" >> LICENSE.txt