From 655397da6e7d43c0e84832cd35b32ee71601e5d1 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 27 Aug 2024 20:06:02 -0700 Subject: [PATCH] use uv! --- Dockerfile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index d75107027..0d7fe098d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,17 +35,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libsqlite3-dev \ clang \ ocl-icd-opencl-dev \ - opencl-headers + opencl-headers \ + portaudio19-dev -RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash -ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}" -RUN pyenv install 3.11.4 && \ - pyenv global 3.11.4 && \ - pyenv rehash +RUN curl -LsSf https://astral.sh/uv/install.sh | sh +ENV PATH="/root/.cargo/bin:${PATH}" +RUN uv venv --python 3.11.4 +RUN uv pip install pkgconfig jinja2 Cython -RUN pip3 install pkgconfig jinja2 - -# installs scons, pycapnp, cython, etc. ENV PYTHONPATH /tmp/plotjuggler/3rdparty -COPY 3rdparty/opendbc_repo/requirements.txt /tmp/ -RUN pip3 install Cython && pip3 install --no-cache-dir -r /tmp/requirements.txt +COPY 3rdparty/openpilot/opendbc_repo/pyproject.toml /tmp/opendbc_repo/pyproject.toml +COPY 3rdparty/openpilot/pyproject.toml /tmp/openpilot/pyproject.toml +RUN uv pip install --no-cache-dir /tmp/opendbc_repo +RUN uv pip install --no-cache-dir /tmp/openpilot