From 4382ffb4f031dcfd28eef7140cd5e059925d9a04 Mon Sep 17 00:00:00 2001 From: Nicholas Riegel Date: Sat, 30 May 2026 15:09:41 -0400 Subject: [PATCH] fix: --break-system-packages for Python 3.12 (odoo:19.0/Bookworm, PEP 668) Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d58fe13..ebafba8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \