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:
parent
6702c8390e
commit
4382ffb4f0
1 changed files with 5 additions and 2 deletions
|
|
@ -1,7 +1,10 @@
|
|||
FROM odoo:19.0
|
||||
|
||||
# Install Python testing dependencies using the system Python
|
||||
RUN python3 -m pip install --no-cache-dir \
|
||||
# Install Python testing dependencies.
|
||||
# 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-odoo \
|
||||
pytest-bdd \
|
||||
|
|
|
|||
Loading…
Reference in a new issue