File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ set -e -x
33export TF_NEED_CUDA=0
44
55python --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
88python 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
2931bazel-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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export TF_NEED_CUDA=0
44
55# Install Deps
66python --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
1010bash ./tools/testing/build_and_run_tests.sh
@@ -25,5 +25,8 @@ bazel build \
2525 build_pip_pkg
2626
2727bazel-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
You can’t perform that action at this time.
0 commit comments