Skip to content

Commit 969a94c

Browse files
authored
Fix additional issues on macos arm64 (#1988)
1 parent 071cc9d commit 969a94c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/build.arm64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
brew search python
5353
brew install python@${{ matrix.python }}
5454
python${{ matrix.python }} --version
55-
python${{ matrix.python }} -m pip install -U wheel setuptools
55+
python${{ matrix.python }} -m pip install --break-system-packages -U wheel setuptools
5656
python${{ matrix.python }} setup.py --data bazel-bin -q bdist_wheel --plat-name macosx_12_0_arm64
5757
rm -rf build
5858
python${{ matrix.python }} setup.py --project tensorflow-io-gcs-filesystem --data bazel-bin -q bdist_wheel --plat-name macosx_12_0_arm64

.github/workflows/build.bazel.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,20 @@ $PYTHON -m pip --version
3939

4040
if [[ $(uname) == "Darwin" && $(uname -m) == "arm64" ]]; then
4141
$PYTHON -m pip install --upgrade --break-system-packages pip
42+
$PYTHON -m pip install --upgrade --break-system-packages setuptools
43+
$PYTHON -m pip --version
44+
$PYTHON -m pip install --break-system-packages ${TENSORFLOW_INSTALL}
45+
$PYTHON -m pip install --break-system-packages "urllib3 <2"
46+
$PYTHON -m pip uninstall --break-system-packages -y tensorflow-io-gcs-filesystem
4247
else
4348
$PYTHON -m pip install --upgrade pip
44-
fi
4549
$PYTHON -m pip install --upgrade setuptools
4650
$PYTHON -m pip --version
47-
4851
$PYTHON -m pip install -q ${TENSORFLOW_INSTALL}
4952
$PYTHON -m pip install -q "urllib3 <2"
5053
$PYTHON -m pip uninstall -y tensorflow-io-gcs-filesystem
54+
fi
55+
5156

5257
$PYTHON tools/build/configure.py
5358

0 commit comments

Comments
 (0)