mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00

It fixes the mysterious error when all cluster env build is failing when pip uninstall / pip install is written in 2 lines. The root cause will be fixed later
19 lines
844 B
YAML
19 lines
844 B
YAML
base_image: {{ env["RAY_IMAGE_ML_NIGHTLY_GPU"] | default("anyscale/ray-ml:nightly-py37-gpu") }}
|
|
|
|
debian_packages:
|
|
- curl
|
|
|
|
python:
|
|
pip_packages:
|
|
- tblib
|
|
# Need to have in pip_packages so it is installed on the driver.
|
|
- git+https://github.com/ray-project/ray_lightning#ray_lightning
|
|
conda_packages: []
|
|
|
|
post_build_cmds:
|
|
- pip uninstall -y ray || true && pip3 install -U {{ env["RAY_WHEELS"] | default("ray") }}
|
|
- {{ env["RAY_WHEELS_SANITY_CHECK"] | default("echo No Ray wheels sanity check") }}
|
|
# Upgrade the Ray Lightning version in post build commands, otherwise it will be cached in the Anyscale Docker image.
|
|
- echo {{ env["TIMESTAMP"] }}
|
|
- pip uninstall ray_lightning -y # Uninstall first so pip does a reinstall.
|
|
- pip3 install -U --no-cache-dir git+https://github.com/ray-project/ray_lightning#ray_lightning
|