Skip to content

Commit 9b82afb

Browse files
authored
Fix macos arm64 (#1989)
1 parent 969a94c commit 9b82afb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.bazel.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ if [[ $# == 1 ]]; then
2222
fi
2323
$PYTHON --version
2424

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

2726
export PYTHON_BIN_PATH=`which $PYTHON`
2827

@@ -41,13 +40,19 @@ if [[ $(uname) == "Darwin" && $(uname -m) == "arm64" ]]; then
4140
$PYTHON -m pip install --upgrade --break-system-packages pip
4241
$PYTHON -m pip install --upgrade --break-system-packages setuptools
4342
$PYTHON -m pip --version
43+
44+
export TENSORFLOW_INSTALL="$($PYTHON setup.py --install-require)"
45+
4446
$PYTHON -m pip install --break-system-packages ${TENSORFLOW_INSTALL}
4547
$PYTHON -m pip install --break-system-packages "urllib3 <2"
4648
$PYTHON -m pip uninstall --break-system-packages -y tensorflow-io-gcs-filesystem
4749
else
4850
$PYTHON -m pip install --upgrade pip
4951
$PYTHON -m pip install --upgrade setuptools
5052
$PYTHON -m pip --version
53+
54+
export TENSORFLOW_INSTALL="$($PYTHON setup.py --install-require)"
55+
5156
$PYTHON -m pip install -q ${TENSORFLOW_INSTALL}
5257
$PYTHON -m pip install -q "urllib3 <2"
5358
$PYTHON -m pip uninstall -y tensorflow-io-gcs-filesystem

0 commit comments

Comments
 (0)