Skip to content

Commit 38e6ec2

Browse files
authored
Bump delocate 0.9.1 -> 0.10.2 (#2749)
Set DYLD_LIBRARY_PATH to fix delocate error
1 parent 930dacf commit 38e6ec2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/make_wheel_macOS_arm64.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ set -e -x
33
export TF_NEED_CUDA=0
44

55
python --version
6-
python -m pip install --default-timeout=1000 delocate==0.9.1 wheel setuptools tensorflow==$TF_VERSION
6+
python -m pip install --default-timeout=1000 delocate==0.10.2 wheel setuptools tensorflow==$TF_VERSION
77

88
python configure.py
9+
# Setting DYLD_LIBRARY_PATH to help delocate finding tensorflow after the rpath invalidation
10+
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$(python -c 'import configure; print(configure.get_tf_shared_lib_dir())')
911

1012
# For dynamic linking, we want the ARM version of TensorFlow.
1113
# Since we cannot run it on x86 so we need to force pip to install it regardless
@@ -27,5 +29,5 @@ bazel build \
2729
build_pip_pkg
2830

2931
bazel-bin/build_pip_pkg artifacts "--plat-name macosx_11_0_arm64 $NIGHTLY_FLAG"
30-
delocate-wheel -w wheelhouse artifacts/*.whl
32+
delocate-wheel -w wheelhouse -v artifacts/*.whl
3133

.github/workflows/make_wheel_macOS_x86.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export TF_NEED_CUDA=0
44

55
# Install Deps
66
python --version
7-
python -m pip install --default-timeout=1000 delocate==0.9.1 wheel setuptools tensorflow==$TF_VERSION
7+
python -m pip install --default-timeout=1000 delocate==0.10.2 wheel setuptools tensorflow==$TF_VERSION
88

99
# Test
1010
bash ./tools/testing/build_and_run_tests.sh
@@ -25,5 +25,8 @@ bazel build \
2525
build_pip_pkg
2626

2727
bazel-bin/build_pip_pkg artifacts $NIGHTLY_FLAG
28-
delocate-wheel -w wheelhouse artifacts/*.whl
28+
29+
# Setting DYLD_LIBRARY_PATH to help delocate finding tensorflow after the rpath invalidation
30+
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$(python -c 'import configure; print(configure.get_tf_shared_lib_dir())')
31+
delocate-wheel -w wheelhouse -v artifacts/*.whl
2932

0 commit comments

Comments
 (0)