Skip to content

Commit 410959b

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Fix for macos wheel build by ignoring missing dependencies after delocate version update (#4201)
Summary: Co-authored-by: Nicolas Hug <[email protected]> Reviewed By: fmassa Differential Revision: D29932706 fbshipit-source-id: 0d42284e10e19fd97570364bf9dec8a1cd142daa
1 parent 818181b commit 410959b

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
@@ -19,7 +19,7 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
1919
env_path=$(dirname $bin_path)
2020
if [[ "$(uname)" == Darwin ]]; then
2121
# Install delocate to relocate the required binaries
22-
pip_install delocate
22+
pip_install "delocate>=0.9"
2323
else
2424
cp "$bin_path/Library/bin/libpng16.dll" torchvision
2525
cp "$bin_path/Library/bin/libjpeg.dll" torchvision
@@ -49,7 +49,7 @@ if [[ "$(uname)" == Darwin ]]; then
4949
bin_path=$(dirname $python_exec)
5050
env_path=$(dirname $bin_path)
5151
for whl in *.whl; do
52-
DYLD_FALLBACK_LIBRARY_PATH="$env_path/lib/:$DYLD_FALLBACK_LIBRARY_PATH" delocate-wheel -v $whl
52+
DYLD_FALLBACK_LIBRARY_PATH="$env_path/lib/:$DYLD_FALLBACK_LIBRARY_PATH" delocate-wheel -v --ignore-missing-dependencies $whl
5353
done
5454
else
5555
if [[ "$OSTYPE" == "msys" ]]; then

0 commit comments

Comments
 (0)