Skip to content

Commit

Permalink
[CI] Clean the dev env after build wheels for macOS (ray-project#41694)
Browse files Browse the repository at this point in the history
deactivate the related conda env.

Signed-off-by: Wanqiang Ji <me@jiwq.cn>
Signed-off-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
  • Loading branch information
jiwq and aslonnie authored Dec 9, 2023
1 parent 84ba971 commit b71e1c3
Showing 1 changed file with 5 additions and 12 deletions.
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

0 comments on commit b71e1c3

Please sign in to comment.