[ROCm][CI/Build] Change install location of uv (#28741)

Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
This commit is contained in:
Gregory Shtrasberg 2025-11-14 16:34:18 -05:00 committed by GitHub
parent 0de4f217ab
commit 5a84b76b86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,10 +17,7 @@ RUN python3 -m pip install --upgrade pip
RUN apt-get purge -y sccache; python3 -m pip uninstall -y sccache; rm -f "$(which sccache)"
# Install UV
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# Activate virtual environment and add uv to PATH
ENV PATH="/root/.local/bin:$PATH"
RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh
# This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
# Reference: https://github.com/astral-sh/uv/pull/1694