From d02acea910a805fb352ade7d5da5c2a1d6b090d7 Mon Sep 17 00:00:00 2001 From: Pavel Nakonechnyi Date: Mon, 29 Jul 2024 10:06:50 +0200 Subject: [PATCH] introduce constraints.txt to workaround https://github.com/pypa/setuptools/issues/4519 --- Dockerfile.django-debian | 3 ++- constraints.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 constraints.txt diff --git a/Dockerfile.django-debian b/Dockerfile.django-debian index a057f28f8b..57be078142 100644 --- a/Dockerfile.django-debian +++ b/Dockerfile.django-debian @@ -33,9 +33,10 @@ RUN \ rm -rf /var/lib/apt/lists && \ true COPY requirements.txt ./ +COPY constraints.txt ./ # CPUCOUNT=1 is needed, otherwise the wheel for uwsgi won't always be build succesfully # https://github.com/unbit/uwsgi/issues/1318#issuecomment-542238096 -RUN CPUCOUNT=1 pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt +RUN CPUCOUNT=1 PIP_CONSTRAINT=/app/constraints.txt pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt FROM base as django WORKDIR /app diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 0000000000..764a11f56c --- /dev/null +++ b/constraints.txt @@ -0,0 +1 @@ +setuptools<72