From 129b488614230d5c37cee700a6d65aaf013763f2 Mon Sep 17 00:00:00 2001 From: Enno Hermann Date: Tue, 7 May 2024 23:03:18 +0200 Subject: [PATCH] build: update pip and setuptools in dockerfile Otherwise a form of this issue occurs due to older setuptools not supporting pyproject.toml: https://github.com/pypa/setuptools/issues/3269 Might be resolved on Ubuntu 24.04 images. --- Dockerfile | 1 + dockerfiles/Dockerfile.dev | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9fb3005e..05c37d78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM ${BASE} RUN apt-get update && apt-get upgrade -y RUN apt-get install -y --no-install-recommends gcc g++ make python3 python3-dev python3-pip python3-venv python3-wheel espeak-ng libsndfile1-dev && rm -rf /var/lib/apt/lists/* +RUN pip3 install -U pip setuptools RUN pip3 install llvmlite --ignore-installed # Install Dependencies: diff --git a/dockerfiles/Dockerfile.dev b/dockerfiles/Dockerfile.dev index 32e5c6d7..8b77a9a2 100644 --- a/dockerfiles/Dockerfile.dev +++ b/dockerfiles/Dockerfile.dev @@ -11,6 +11,7 @@ RUN apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Install Major Python Dependencies: +RUN pip3 install -U pip setuptools RUN pip3 install llvmlite --ignore-installed RUN pip3 install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 RUN rm -rf /root/.cache/pip