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/
This commit is contained in:
deeplow 2023-12-13 10:57:33 +00:00
parent b75417bbec
commit 7b57cb209e
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -17,7 +17,7 @@ RUN apk --no-cache -U upgrade && \
font-noto-cjk font-noto-cjk
RUN apk --no-cache add --virtual .builddeps g++ gcc make python3-dev py3-pip \ 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 && apk del .builddeps # FIXME freeze w/ hashes
# Download the trained models from the latest GitHub release of Tesseract, and # Download the trained models from the latest GitHub release of Tesseract, and