Skip to content

Commit

Permalink
uv pip install in a separate tmp folder (#257)
Browse files Browse the repository at this point in the history
* move uv pip install in separate tmp folder

* [upload]
  • Loading branch information
andiradulescu authored Jul 25, 2024
1 parent 8cddf8a commit 48ea05d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.agnos
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ RUN export PATH="/usr/local/pyenv/bin:/usr/local/pyenv/shims:$PATH" && \
pyenv rehash

# Install openpilot python packages
COPY ./userspace/pyproject.toml ./userspace/uv.lock /tmp/agnos/
RUN mkdir -p /tmp/agnos/uv
COPY ./userspace/pyproject.toml ./userspace/uv.lock /tmp/agnos/uv
RUN export PATH="/usr/local/pyenv/bin:/usr/local/pyenv/shims:$PATH" && \
export PYENV_ROOT="/usr/local/pyenv" && \
eval "$(pyenv init -)" && \
eval "$(pyenv virtualenv-init -)" && \
cd /tmp/agnos && \
cd /tmp/agnos/uv && \
export PYOPENCL_CL_PRETEND_VERSION="2.0" && \
MAKEFLAGS="-j$(nproc)" UV_NO_CACHE=1 uv pip install --no-cache-dir --system .

Expand Down

0 comments on commit 48ea05d

Please sign in to comment.