Skip to content

Commit

Permalink
poetry -> uv
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed May 26, 2024
1 parent 1370af9 commit 7861f81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Dockerfile.agnos
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,14 @@ RUN export PATH="/usr/local/pyenv/bin:/usr/local/pyenv/shims:$PATH" && \
pyenv rehash

# Install openpilot python packages
COPY ./userspace/pyproject.toml ./userspace/poetry.lock /tmp/agnos/
COPY ./userspace/pyproject.toml /tmp/agnos/
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 && \
poetry config virtualenvs.prefer-active-python true --local && \
poetry config virtualenvs.create false --local && \
export PYOPENCL_CL_PRETEND_VERSION="2.0" && \
export POETRY_VIRTUALENVS_CREATE=false && \
MAKEFLAGS="-j$(nproc)" poetry install --no-cache --no-root && \
pyenv rehash
MAKEFLAGS="-j$(nproc)" UV_NO_CACHE=1 uv pip install --no-cache-dir --system .

# Install nice to haves
COPY ./userspace/install_extras.sh /tmp/agnos/
Expand Down
2 changes: 1 addition & 1 deletion userspace/openpilot_python_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ fi
echo "Setting global python version"
pyenv global $PYTHON_VERSION

pip3 install --no-cache-dir --upgrade pip poetry
pip3 install --no-cache-dir --upgrade pip uv

0 comments on commit 7861f81

Please sign in to comment.