Skip to content

Commit 178d983

Browse files
malfetpmeierNicolasHug
authored
Fix for macos wheel build by ignoring missing dependencies after delocate version update (#4201) (#4401)
Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Philip Meier <[email protected]> Co-authored-by: Nicolas Hug <[email protected]>
1 parent db08dce commit 178d983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/build_wheel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
1818
env_path=$(dirname $bin_path)
1919
if [[ "$(uname)" == Darwin ]]; then
2020
# Install delocate to relocate the required binaries
21-
pip_install delocate
21+
pip_install "delocate>=0.9"
2222
else
2323
cp "$bin_path/Library/bin/libpng16.dll" torchvision
2424
cp "$bin_path/Library/bin/libjpeg.dll" torchvision
@@ -48,7 +48,7 @@ if [[ "$(uname)" == Darwin ]]; then
4848
bin_path=$(dirname $python_exec)
4949
env_path=$(dirname $bin_path)
5050
for whl in *.whl; do
51-
DYLD_FALLBACK_LIBRARY_PATH="$env_path/lib/:$DYLD_FALLBACK_LIBRARY_PATH" delocate-wheel -v $whl
51+
DYLD_FALLBACK_LIBRARY_PATH="$env_path/lib/:$DYLD_FALLBACK_LIBRARY_PATH" delocate-wheel -v --ignore-missing-dependencies $whl
5252
done
5353
else
5454
if [[ "$OSTYPE" == "msys" ]]; then

0 commit comments

Comments
 (0)