File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,9 +128,14 @@ jobs:
128128 cd /workspace
129129 apt-get update && apt-get install -y python3 python3-pip python3-venv
130130
131- # Use --break-system-packages for CI (safe in disposable container)
132- python3 -m pip install --break-system-packages --upgrade pip build
131+ # Try upgrading pip normally first (for older distros like Ubuntu 20.04),
132+ # then fall back to --break-system-packages (for newer distros like Ubuntu 24.04)
133+ python3 -m pip install --upgrade pip build || python3 -m pip install --break-system-packages --upgrade pip build
134+
135+ # Run build (now that pip/build are installed/upgraded)
133136 python3 -m build
137+
138+ # Install wheels using the flag (latest pip supports it now)
134139 python3 -m pip install --break-system-packages dist/*.whl
135140
136141 omnipkg --version
You can’t perform that action at this time.
0 commit comments