diff --git a/packaging/build_wheel.sh b/packaging/build_wheel.sh index 05dc23a43ab..40285f7791b 100755 --- a/packaging/build_wheel.sh +++ b/packaging/build_wheel.sh @@ -18,7 +18,7 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then env_path=$(dirname $bin_path) if [[ "$(uname)" == Darwin ]]; then # Install delocate to relocate the required binaries - pip_install delocate + pip_install "delocate>=0.9" else cp "$bin_path/Library/bin/libpng16.dll" torchvision cp "$bin_path/Library/bin/libjpeg.dll" torchvision @@ -48,7 +48,7 @@ if [[ "$(uname)" == Darwin ]]; then bin_path=$(dirname $python_exec) env_path=$(dirname $bin_path) for whl in *.whl; do - DYLD_FALLBACK_LIBRARY_PATH="$env_path/lib/:$DYLD_FALLBACK_LIBRARY_PATH" delocate-wheel -v $whl + DYLD_FALLBACK_LIBRARY_PATH="$env_path/lib/:$DYLD_FALLBACK_LIBRARY_PATH" delocate-wheel -v --ignore-missing-dependencies $whl done else if [[ "$OSTYPE" == "msys" ]]; then