From 9b82afb442d69f9bd14b079be109082967afaf09 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Tue, 23 Apr 2024 21:18:42 -0700 Subject: [PATCH] Fix macos arm64 (#1989) --- .github/workflows/build.bazel.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.bazel.sh b/.github/workflows/build.bazel.sh index 361ab16ed..de88d4137 100755 --- a/.github/workflows/build.bazel.sh +++ b/.github/workflows/build.bazel.sh @@ -22,7 +22,6 @@ if [[ $# == 1 ]]; then fi $PYTHON --version -export TENSORFLOW_INSTALL="$($PYTHON setup.py --install-require)" export PYTHON_BIN_PATH=`which $PYTHON` @@ -41,6 +40,9 @@ if [[ $(uname) == "Darwin" && $(uname -m) == "arm64" ]]; then $PYTHON -m pip install --upgrade --break-system-packages pip $PYTHON -m pip install --upgrade --break-system-packages setuptools $PYTHON -m pip --version + +export TENSORFLOW_INSTALL="$($PYTHON setup.py --install-require)" + $PYTHON -m pip install --break-system-packages ${TENSORFLOW_INSTALL} $PYTHON -m pip install --break-system-packages "urllib3 <2" $PYTHON -m pip uninstall --break-system-packages -y tensorflow-io-gcs-filesystem @@ -48,6 +50,9 @@ else $PYTHON -m pip install --upgrade pip $PYTHON -m pip install --upgrade setuptools $PYTHON -m pip --version + +export TENSORFLOW_INSTALL="$($PYTHON setup.py --install-require)" + $PYTHON -m pip install -q ${TENSORFLOW_INSTALL} $PYTHON -m pip install -q "urllib3 <2" $PYTHON -m pip uninstall -y tensorflow-io-gcs-filesystem