Skip to content

Commit ffe0dd1

Browse files
committed
First install locally built wheels and then all other dependencies
NOTE: using --no-index to workaround the fact that older versions of pip used to prefer these local packages rather than downloading them from the Internet. See pypa/pip#12110 In previous builds pip may have actually downloaded wheels from PyPI (when they were available) instead of installing the locally built ones without us even knowing about it! The fact that the latest xmlsec v1.3.15 is missing it's wheels for Python 3.11 Linux (as they claim having issues with their build infra ATM) is just exposing the issue.
1 parent 8d30207 commit ffe0dd1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2017-2024 Alexander Todorov <[email protected]>
1+
# Copyright (c) 2017-2025 Alexander Todorov <[email protected]>
22
#
33
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
44
# https://www.gnu.org/licenses/agpl-3.0.html
@@ -38,7 +38,11 @@ COPY ./etc/*.lua /Kiwi/etc/
3838
COPY ./bin/* /Kiwi/bin/
3939

4040
COPY ./dist/ /Kiwi/dist/
41-
RUN pip install --no-cache-dir --find-links /Kiwi/dist/ /Kiwi/dist/kiwitcms_enterprise*.whl
41+
# install locally built wheels first and then download all other dependencies
42+
RUN pip install --no-cache-dir --only-binary :all: decorator lxml && \
43+
pip install --no-cache-dir --find-links /Kiwi/dist/ --no-index /Kiwi/dist/xmlsec*.whl && \
44+
pip install --no-cache-dir --find-links /Kiwi/dist/ --no-index /Kiwi/dist/gssapi*.whl && \
45+
pip install --no-cache-dir --find-links /Kiwi/dist/ /Kiwi/dist/kiwitcms_enterprise*.whl
4246

4347
# workaround broken CSS which will break collectstatic
4448
# because they refer to non-existing ../fonts/glyphicons-halflings-regular.eot (no fonts/ directory)

0 commit comments

Comments
 (0)