From ec9b00a2945a9f3e5d1596789dcc3f7365155be7 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 15 Jan 2026 22:32:29 +0100 Subject: [PATCH] CI: Fix container image build workflow Ubuntu Noble runners now need the `--break-system-packages` option to install system-wide Python packages. However this option is absent from pip on our Ubuntu Jammy arm64 runners. Detect the distribution version and run the appropriate command. note: Removed requests pinning as it was unpinned before. (cherry picked from commit 82075675fe59fbeafd959f2dd80cc2b892e8aa02) --- .github/workflows/stackhpc-container-image-build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stackhpc-container-image-build.yml b/.github/workflows/stackhpc-container-image-build.yml index 473e14f417..56c5bb0517 100644 --- a/.github/workflows/stackhpc-container-image-build.yml +++ b/.github/workflows/stackhpc-container-image-build.yml @@ -157,7 +157,12 @@ jobs: # Normally installed during host configure. - name: Install Docker Python SDK run: | - sudo pip install docker + . /etc/os-release + if [[ $VERSION_ID == 22.04 ]]; then + sudo pip install docker + else + sudo pip install docker --break-system-packages + fi - name: Configure localhost as a seed run: |