Skip to content

Commit f500416

Browse files
authored
PEP 668: Keep the marker file in container images (python#2289)
This preserves the protections afforded by these changes, in container images.
1 parent 96bfcd0 commit f500416

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

pep-0668.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -659,18 +659,14 @@ on Debian) depends on pipx.
659659

660660
.. _pipx: https://github.com/pypa/pipx
661661

662-
Remove the marker file in container images
663-
------------------------------------------
662+
Keep the marker file in container images
663+
----------------------------------------
664664

665665
Distros that produce official images for single-application containers
666-
(e.g., Docker container images) should remove the
666+
(e.g., Docker container images) should keep the
667667
``EXTERNALLY-MANAGED`` file, preferably in a way that makes it not
668-
come back if a user of that image installs package updates inside
669-
their image (think ``RUN apt-get dist-upgrade``). On dpkg-based
670-
systems, using ``dpkg-divert --local`` to persistently rename the file
671-
would work. On other systems, there may need to be some configuration
672-
flag available to a post-install script to re-remove the
673-
``EXTERNALLY-MANAGED`` file.
668+
go away if a user of that image installs package updates inside
669+
their image (think ``RUN apt-get dist-upgrade``).
674670

675671
Create separate distro and local directories
676672
--------------------------------------------

0 commit comments

Comments
 (0)