Skip to content

Commit 868cd51

Browse files
committed
Add environment variable to speed up pip reruns, see pypa/pip#12079 . Needed until next version of pip (23.2.X is released)
1 parent 3332c2f commit 868cd51

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ WORKDIR /app
1616
COPY --from=builder --chown=500:500 /app /app
1717

1818
# Enable compilation of po files into mo files (This is added here for backward compatibility)
19+
1920
ENV zope_i18n_compile_mo_files=true
21+
# https://github.com/pypa/pip/issues/12079
22+
ENV _PIP_USE_IMPORTLIB_METADATA=0
2023

2124
# Link /data (the exposed volume) into /app/var
2225
RUN ln -s /data /app/var

Dockerfile.acceptance

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ ARG PYTHON_VERSION=3.11
33
ARG PLONE_VERSION
44
FROM plone/server-builder:${PLONE_VERSION} as builder
55

6+
# https://github.com/pypa/pip/issues/12079
7+
ENV _PIP_USE_IMPORTLIB_METADATA=0
8+
69
# Install robotframework support
710
RUN /app/bin/pip install plone.app.robotframework>=2.0.0
811

@@ -29,6 +32,8 @@ ENV LISTEN_PORT=${ZSERVER_PORT}
2932
ENV APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.volto:default-homepage
3033
# Packages to be used in configuration
3134
ENV CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors
35+
# https://github.com/pypa/pip/issues/12079
36+
ENV _PIP_USE_IMPORTLIB_METADATA=0
3237

3338
RUN ln -s /data /app/var
3439

Dockerfile.classicui

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ RUN ln -s /data /app/var
2424

2525
# Setup default type for site creation to be classic
2626
ENV TYPE=classic
27+
# https://github.com/pypa/pip/issues/12079
28+
ENV _PIP_USE_IMPORTLIB_METADATA=0

Dockerfile.dev

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ ENV DEBUG_MODE on
2828
ENV zope_i18n_compile_mo_files=
2929
# Set chameleon cache directory
3030
ENV CHAMELEON_CACHE /app/var/cache
31-
31+
# https://github.com/pypa/pip/issues/12079
32+
ENV _PIP_USE_IMPORTLIB_METADATA=0
3233
# Expose Zope Port
3334
EXPOSE 8080
3435

0 commit comments

Comments
 (0)