From: Dobri Danchev Date: Mon, 18 Aug 2025 10:50:48 +0000 (-0500) Subject: Fix broken build: require updated pip to support --break-system-packages (#15357) X-Git-Tag: upstream/0.0.6199~7 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=618575c5825d7d4f170e686e772178d2aae148ae;p=pkg%2Fggml%2Fsources%2Fllama.cpp Fix broken build: require updated pip to support --break-system-packages (#15357) * Revert "devops : fix compile bug when the BASE_CUDA_DEV_CONTAINER is based on Ubuntu 24.04 (#15005)" This reverts commit e4e915912cfd2ee15c5a4a0074813232134892f6. * devops: Allow pip to modify externally-managed python environment (system installation) - Updated pip install commands to include the --break-system-packages flag, ensuring compatibility when working with system-managed Python environments (PEP 668). - Note: The --break-system-packages option was introduced in 2023. Ensure pip is updated to a recent version before using this flag. fixes [#15004](https://github.com/danchev/llama.cpp/issues/15004) --- diff --git a/.devops/cuda.Dockerfile b/.devops/cuda.Dockerfile index f9dc7f31..4b708ae2 100644 --- a/.devops/cuda.Dockerfile +++ b/.devops/cuda.Dockerfile @@ -60,6 +60,7 @@ RUN apt-get update \ git \ python3 \ python3-pip \ + && pip install --upgrade pip setuptools wheel \ && pip install --break-system-packages -r requirements.txt \ && apt autoremove -y \ && apt clean -y \