fix: --break-system-packages for Python 3.12 (odoo:19.0/Bookworm, PEP 668)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Nicholas Riegel 2026-05-30 15:09:41 -04:00
parent 6702c8390e
commit 4382ffb4f0

View file

@ -1,7 +1,10 @@
FROM odoo:19.0 FROM odoo:19.0
# Install Python testing dependencies using the system Python # Install Python testing dependencies.
RUN python3 -m pip install --no-cache-dir \ # odoo:19.0 ships Python 3.12 (Debian 12 Bookworm) which marks the system Python
# as externally-managed (PEP 668). Use --break-system-packages for the test tools
# — this is a single-purpose container, not a shared Python install.
RUN python3 -m pip install --no-cache-dir --break-system-packages \
pytest \ pytest \
pytest-odoo \ pytest-odoo \
pytest-bdd \ pytest-bdd \