Skip to content

Commit 15b407f

Browse files
committed
fix: exclude libunwind from macOS wheel bundling
libunwind is a system library provided by macOS and should not be bundled into the wheel. This fixes the DelocationError about incompatible minimum macOS version targets. The error occurred because libunwind built for macOS 14.0 was being bundled into wheels targeting macOS 10.15. Since libunwind is available as a system library on all supported macOS versions, we exclude it from delocate bundling.
1 parent b7ba358 commit 15b407f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
CIBW_ENVIRONMENT_MACOS: REPAIR_LIBRARY_PATH="/tmp/filepattern_bld/local_install/lib:/tmp/filepattern_bld/local_install/lib64" ON_GITHUB="TRUE" FILEPATTERN_DEP_DIR="/tmp/filepattern_bld/local_install"
8686
CIBW_ENVIRONMENT_LINUX: LD_LIBRARY_PATH="/tmp/filepattern_bld/local_install/lib:/tmp/filepattern_bld/local_install/lib64:$LD_LIBRARY_PATH" ON_GITHUB="TRUE" FILEPATTERN_DEP_DIR="/tmp/filepattern_bld/local_install"
8787
CIBW_ENVIRONMENT_WINDOWS: PATH="$TEMP\\filepattern\\bin;$PATH" ON_GITHUB="TRUE" FILEPATTERN_DEP_DIR="C:\\TEMP\\filepattern_bld\\local_install"
88-
CIBW_REPAIR_WHEEL_COMMAND_MACOS: DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} && DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
88+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} && DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} --exclude libunwind -w {dest_dir} {wheel}
8989
CIBW_ARCHS: ${{ matrix.cibw_archs }}
9090
CIBW_TEST_REQUIRES: pytest pydantic
9191
CIBW_TEST_COMMAND: pytest {project}/tests/
@@ -175,7 +175,7 @@ jobs:
175175
REPAIR_LIBRARY_PATH="/tmp/filepattern_bld/local_install/lib:/tmp/filepattern_bld/local_install/lib64"
176176
ON_GITHUB="TRUE"
177177
FILEPATTERN_DEP_DIR="/tmp/filepattern_bld/local_install"
178-
CIBW_REPAIR_WHEEL_COMMAND_MACOS: DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} && DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
178+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} && DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} --exclude libunwind -w {dest_dir} {wheel}
179179
CIBW_ARCHS: ${{ matrix.cibw_archs }}
180180
CIBW_TEST_REQUIRES: pytest pydantic
181181
CIBW_TEST_COMMAND: pytest {project}/tests/

0 commit comments

Comments
 (0)