From 7b57cb209e05fd237293188536b05c94b583066f Mon Sep 17 00:00:00 2001 From: deeplow Date: Wed, 13 Dec 2023 10:57:33 +0000 Subject: [PATCH] PIP force --break-system-packages We're intentionally bypassing PEP 668 [1], which prevents the installation of non-distro python wheels alongside system packages to avoid incompatibilities at distro-level. We are intentionally bypassing this since our container image is a controlled environment (we only ship a version after rigorous testing). [1]: https://peps.python.org/pep-0668/ --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9b3e3b1..35f2532 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN apk --no-cache -U upgrade && \ font-noto-cjk RUN apk --no-cache add --virtual .builddeps g++ gcc make python3-dev py3-pip \ - && pip install --upgrade PyMuPDF \ + && pip install --break-system-packages --upgrade PyMuPDF \ && apk del .builddeps # FIXME freeze w/ hashes # Download the trained models from the latest GitHub release of Tesseract, and