diff --git a/tools/docker/core/Dockerfile b/tools/docker/core/Dockerfile index 91b90a4a2..02222008b 100644 --- a/tools/docker/core/Dockerfile +++ b/tools/docker/core/Dockerfile @@ -14,6 +14,9 @@ WORKDIR /opt/certbot # Copy certbot code COPY CHANGELOG.md README.rst src/ +# We keep the relative path to the requirements file the same because, as of +# writing this, tools/pip_install.py is used in the Dockerfile for Certbot +# plugins and this script expects to find the requirements file there. COPY letsencrypt-auto-source/pieces/dependency-requirements.txt letsencrypt-auto-source/pieces/ COPY tools tools COPY acme src/acme diff --git a/tools/pipstrap.py b/tools/pipstrap.py index a77a08af8..2f21a9a5f 100755 --- a/tools/pipstrap.py +++ b/tools/pipstrap.py @@ -12,6 +12,10 @@ import pip_install # We include the hashes of the packages here for extra verification of # the packages downloaded from PyPI. This is especially valuable in our # builds of Certbot that we ship to our users such as our Docker images. +# +# An older version of setuptools is currently used here in order to keep +# compatibility with Python 2 since newer versions of setuptools have dropped +# support for it. REQUIREMENTS = r""" pip==20.2.4 \ --hash=sha256:51f1c7514530bd5c145d8f13ed936ad6b8bfcb8cf74e10403d0890bc986f0033 \