diff --git a/Dockerfile.agnos b/Dockerfile.agnos index 5de88ee8..fbed0df1 100644 --- a/Dockerfile.agnos +++ b/Dockerfile.agnos @@ -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/ diff --git a/userspace/openpilot_python_dependencies.sh b/userspace/openpilot_python_dependencies.sh index 655e0ec8..4927bcd8 100755 --- a/userspace/openpilot_python_dependencies.sh +++ b/userspace/openpilot_python_dependencies.sh @@ -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