From 1389d1bdd39cf362531edbac938e17a9af6d6ba0 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 29 Nov 2024 23:34:32 +0200 Subject: [PATCH] Workbench: Flexible Pip contraints. The OS packages come with a version of packaging. Installing a different version with Pip is not possible as it requires uninstalling the OS version which doesn't have all of the needed metadata, therefore the Pip constraint. Instead of updating the contraint manually everytime it's updated in Debian, use the version that's currently installed and it should always be OK (hopefully). --- workbench/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workbench/Dockerfile b/workbench/Dockerfile index 0606509..118e378 100644 --- a/workbench/Dockerfile +++ b/workbench/Dockerfile @@ -176,7 +176,7 @@ ENV PIPX_HOME /opt/pipx ENV PIPX_BIN_DIR /opt/pipx/bin # hadolint ignore=DL3013 RUN export PIP_CONSTRAINT=/tmp/constraint.txt && \ - echo 'packaging==24.1' >> "$PIP_CONSTRAINT" && \ + python3 -m pip freeze | grep packaging >> "$PIP_CONSTRAINT" && \ python3 -m pip install --no-cache-dir --break-system-packages \ Glances \ PyGObject \ -- GitLab