From 52a0758818b43600c6dcddc57d99e77359549053 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sat, 25 Jun 2022 16:47:51 +0100 Subject: [PATCH 1/2] PEP 668: Address feedback --- pep-0668.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pep-0668.rst b/pep-0668.rst index efbd0850571..2802bf6a3a6 100644 --- a/pep-0668.rst +++ b/pep-0668.rst @@ -293,9 +293,9 @@ Case Description ``pip install`` permitted Deleting exte 3 Distro Python in venv Currently yes; stays yes There are no externally-installed packages 4 Distro Python in venv Currently yes; stays yes Currently no; stays no with ``--system-site-packages`` -5 Distro Python in Docker Currently yes; stays yes Currently yes; becomes no - (assuming the Docker image - removes the marker file) +5 Distro Python in Docker Currently yes; becomes no Currently yes; becomes no + (assuming the distro + adds a marker file) 6 Conda environment Currently yes; stays yes Currently yes; stays yes 7 Dev-facing distro Currently yes; becomes no Currently often yes; becomes no (assuming they add a (assuming they configure ``sysconfig`` as needed) @@ -712,7 +712,8 @@ scheme but is still on ``sys.path``. The other is to arrange for the default ``sysconfig`` scheme to change when running inside a package build versus when running on an installed system. The ``sysconfig`` customization hooks from -bpo-43976_ should make this easy: make your packaging tool set an +bpo-43976_ should make this easy (once accepted and implemented): +make your packaging tool set an environment variable or some other detectable configuration, and define a ``get_preferred_schemes`` function to return a different scheme when called from inside a package build. Then you can use ``pip From dc35bc4f12791e33f375cae8dc398f1c474b246f Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sat, 25 Jun 2022 16:44:57 +0100 Subject: [PATCH 2/2] PEP 668: Mark as accepted and update URL --- pep-0668.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pep-0668.rst b/pep-0668.rst index 2802bf6a3a6..8eaeafa653a 100644 --- a/pep-0668.rst +++ b/pep-0668.rst @@ -9,13 +9,14 @@ Author: Geoffrey Thomas , Elana Hashman , Pradyun Gedam PEP-Delegate: Paul Moore -Discussions-To: https://discuss.python.org/t/graceful-cooperation-between-external-and-python-package-managers-pep-668/10302 -Status: Draft +Discussions-To: https://discuss.python.org/t/10302 +Status: Accepted Type: Informational Topic: Packaging Content-Type: text/x-rst Created: 18-May-2021 Post-History: 28-May-2021 +Resolution: https://discuss.python.org/t/10302/44 Abstract ========