Skip to content

Commit

Permalink
Fix macos arm64 (#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
yongtang authored Apr 24, 2024
1 parent 969a94c commit 9b82afb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ if [[ $# == 1 ]]; then
fi
$PYTHON --version

export TENSORFLOW_INSTALL="$($PYTHON setup.py --install-require)"

export PYTHON_BIN_PATH=`which $PYTHON`

Expand All @@ -41,13 +40,19 @@ 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
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
Expand Down

0 comments on commit 9b82afb

Please sign in to comment.