osbuilder: ubuntu: Try to install pyinstaller using --break-system-packages

We first try without passing the `--break-system-packages` argument, as
that's not supported on Ubuntu 22.04 or older, but that's required on
Ubuntu 24.04 or newer.

Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
This commit is contained in:
Fabiano Fidêncio 2025-01-26 18:35:11 +01:00
parent c54f78bc6b
commit 2b5dbfacb8

View File

@ -84,4 +84,4 @@ RUN ARCH=$(uname -m); \
esac; \
rustup target add "${rust_arch}-unknown-linux-${libc}"
RUN pip install --no-cache-dir pyinstaller==6.9.0
RUN pip install --no-cache-dir pyinstaller==6.9.0 || pip install --no-cache-dir pyinstaller==6.9.0 --break-system-packages