From 83e9476bef4051dea8fbed8efac55fd1d6d8ce89 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 9 Sep 2023 15:48:59 +0300
Subject: [PATCH] Workbench: Install PDM and plugins using pipx.

This way they don't conflict with anything else.
---
 workbench/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/workbench/Dockerfile b/workbench/Dockerfile
index 36970e5..49413dc 100644
--- a/workbench/Dockerfile
+++ b/workbench/Dockerfile
@@ -203,7 +203,6 @@ RUN apt-get update && \
         parse \
         passhole \
         passlib \
-        pdm \
         pgcli \
         pip-tools \
         pipenv \
@@ -232,7 +231,8 @@ RUN apt-get update && \
         transmission-rpc \
         ziglang \
     && \
-    echo pdm-version | xargs -tn1 pdm plugin add --pip-args=--break-system-packages && \
+    pipx install pdm && \
+    pipx inject pdm pdm-version pdm-packer pdm-publish && \
     npm install --global \
         corepack \
         @playwright/test \
-- 
GitLab