PEP 668: Keep the marker file in container images (#2289)

This preserves the protections afforded by these changes, in container
images.
This commit is contained in:
Pradyun Gedam 2022-03-18 17:41:59 +00:00 committed by GitHub
parent 96bfcd082d
commit f500416406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 9 deletions

View File

@ -659,18 +659,14 @@ on Debian) depends on pipx.
.. _pipx: https://github.com/pypa/pipx
Remove the marker file in container images
------------------------------------------
Keep the marker file in container images
----------------------------------------
Distros that produce official images for single-application containers
(e.g., Docker container images) should remove the
(e.g., Docker container images) should keep the
``EXTERNALLY-MANAGED`` file, preferably in a way that makes it not
come back if a user of that image installs package updates inside
their image (think ``RUN apt-get dist-upgrade``). On dpkg-based
systems, using ``dpkg-divert --local`` to persistently rename the file
would work. On other systems, there may need to be some configuration
flag available to a post-install script to re-remove the
``EXTERNALLY-MANAGED`` file.
go away if a user of that image installs package updates inside
their image (think ``RUN apt-get dist-upgrade``).
Create separate distro and local directories
--------------------------------------------