Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Clean the dev env after build wheels for macOS #41694

Merged
merged 3 commits into from
Dec 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions python/build-wheel-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@ DOWNLOAD_DIR=python_downloads

NODE_VERSION="14"

if [ "$(uname -m)" = "arm64" ]; then
# We Don't build wheels for Python 3.7 on Apple Silicon
PY_MMS=("3.8"
"3.9"
"3.10"
"3.11")
else
PY_MMS=("3.8"
"3.9"
"3.10"
"3.11")
fi
PY_MMS=("3.8" "3.9" "3.10" "3.11")

if [[ -n "${SKIP_DEP_RES}" ]]; then
./ci/env/install-bazel.sh
Expand Down Expand Up @@ -104,4 +93,8 @@ for ((i=0; i<${#PY_MMS[@]}; ++i)); do
RAY_INSTALL_CPP=1 $PYTHON_EXE setup.py bdist_wheel
mv dist/*.whl ../.whl/
popd

# cleanup
conda deactivate
conda env remove -y -n "$CONDA_ENV_NAME"
done
Loading