Skip to content

Commit

Permalink
Fix additional issues on macos arm64 (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
yongtang authored Apr 24, 2024
1 parent 071cc9d commit 969a94c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
brew search python
brew install python@${{ matrix.python }}
python${{ matrix.python }} --version
python${{ matrix.python }} -m pip install -U wheel setuptools
python${{ matrix.python }} -m pip install --break-system-packages -U wheel setuptools
python${{ matrix.python }} setup.py --data bazel-bin -q bdist_wheel --plat-name macosx_12_0_arm64
rm -rf build
python${{ matrix.python }} setup.py --project tensorflow-io-gcs-filesystem --data bazel-bin -q bdist_wheel --plat-name macosx_12_0_arm64
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build.bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,20 @@ $PYTHON -m pip --version

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
$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
fi
$PYTHON -m pip install --upgrade setuptools
$PYTHON -m pip --version

$PYTHON -m pip install -q ${TENSORFLOW_INSTALL}
$PYTHON -m pip install -q "urllib3 <2"
$PYTHON -m pip uninstall -y tensorflow-io-gcs-filesystem
fi


$PYTHON tools/build/configure.py

Expand Down

0 comments on commit 969a94c

Please sign in to comment.