diff --git a/patches/0001-do-not-add-LIBNAMESUFFIX-to-dylib.patch b/patches/0001-do-not-add-LIBNAMESUFFIX-to-dylib.patch new file mode 100644 index 00000000..9a1956cf --- /dev/null +++ b/patches/0001-do-not-add-LIBNAMESUFFIX-to-dylib.patch @@ -0,0 +1,25 @@ +From cb3d41f8c1b0dce4c954937b32eb76f7154c33ee Mon Sep 17 00:00:00 2001 +From: Matti Picus +Date: Wed, 17 Apr 2024 09:24:51 +1000 +Subject: [PATCH] do not add LIBNAMESUFFIX to dylib + +--- + exports/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/exports/Makefile b/exports/Makefile +index 33c47d477..457e59b2c 100644 +--- a/exports/Makefile ++++ b/exports/Makefile +@@ -137,7 +137,7 @@ libgoto_hpl.def : $(GENSYM) + + ifeq ($(OSNAME), Darwin) + ifeq ($(FIXED_LIBNAME),1) +-INTERNALNAME = $(LIBPREFIX)$(LIBNAMESUFFIX).dylib ++INTERNALNAME = $(LIBPREFIX).dylib + else + INTERNALNAME = $(LIBPREFIX).$(MAJOR_VERSION).dylib + endif +-- +2.39.3 (Apple Git-146) + diff --git a/pyproject.toml b/pyproject.toml index 8093389d..44ddc221 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" [project] name = "scipy-openblas64" -version = "0.3.27.44.0" +version = "0.3.27.44.1" requires-python = ">=3.7" description = "Provides OpenBLAS for python packaging" readme = "README.md" diff --git a/tools/build_steps.sh b/tools/build_steps.sh index 02445d27..6d4b0184 100644 --- a/tools/build_steps.sh +++ b/tools/build_steps.sh @@ -170,7 +170,7 @@ function do_build_lib { CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \ make BUFFERSIZE=20 DYNAMIC_ARCH=1 \ USE_OPENMP=0 NUM_THREADS=64 \ - BINARY=$bitness $interface_flags $target_flags > /dev/null + BINARY=$bitness $interface_flags $target_flags make PREFIX=$BUILD_PREFIX $interface_flags install popd stop_spinner diff --git a/tools/build_wheel.sh b/tools/build_wheel.sh index 456d3ef2..f2f2ca9a 100644 --- a/tools/build_wheel.sh +++ b/tools/build_wheel.sh @@ -34,6 +34,14 @@ if [[ $py_version != $pkg_version* ]]; then exit 1 fi +if [ $(uname) == "Darwin" ]; then + soname=$(cd local/scipy_openblas64/lib; ls libscipy_openblas*.dylib) + echo otool -D local/scipy_openblas64/lib/$soname + otool -D local/scipy_openblas64/lib/$soname + # issue 153: there is a ".0" in the install_name. Remove it + install_name_tool -id $soname local/scipy_openblas64/lib/$soname +fi + rm -rf local/scipy_openblas64/lib/pkgconfig echo "" >> LICENSE.txt echo "----" >> LICENSE.txt