|
9 | 9 | Elana Hashman < [email protected]>,
|
10 | 10 |
|
11 | 11 | PEP-Delegate: Paul Moore < [email protected]>
|
12 |
| -Discussions-To: https://discuss.python.org/t/graceful-cooperation-between-external-and-python-package-managers-pep-668/10302 |
13 |
| -Status: Draft |
| 12 | +Discussions-To: https://discuss.python.org/t/10302 |
| 13 | +Status: Accepted |
14 | 14 | Type: Informational
|
15 | 15 | Topic: Packaging
|
16 | 16 | Content-Type: text/x-rst
|
17 | 17 | Created: 18-May-2021
|
18 | 18 | Post-History: 28-May-2021
|
| 19 | +Resolution: https://discuss.python.org/t/10302/44 |
19 | 20 |
|
20 | 21 | Abstract
|
21 | 22 | ========
|
@@ -293,9 +294,9 @@ Case Description ``pip install`` permitted Deleting exte
|
293 | 294 | 3 Distro Python in venv Currently yes; stays yes There are no externally-installed packages
|
294 | 295 | 4 Distro Python in venv Currently yes; stays yes Currently no; stays no
|
295 | 296 | with ``--system-site-packages``
|
296 |
| -5 Distro Python in Docker Currently yes; stays yes Currently yes; becomes no |
297 |
| - (assuming the Docker image |
298 |
| - removes the marker file) |
| 297 | +5 Distro Python in Docker Currently yes; becomes no Currently yes; becomes no |
| 298 | + (assuming the distro |
| 299 | + adds a marker file) |
299 | 300 | 6 Conda environment Currently yes; stays yes Currently yes; stays yes
|
300 | 301 | 7 Dev-facing distro Currently yes; becomes no Currently often yes; becomes no
|
301 | 302 | (assuming they add a (assuming they configure ``sysconfig`` as needed)
|
@@ -712,7 +713,8 @@ scheme but is still on ``sys.path``.
|
712 | 713 | The other is to arrange for the default ``sysconfig`` scheme to change
|
713 | 714 | when running inside a package build versus when running on an
|
714 | 715 | installed system. The ``sysconfig`` customization hooks from
|
715 |
| -bpo-43976_ should make this easy: make your packaging tool set an |
| 716 | +bpo-43976_ should make this easy (once accepted and implemented): |
| 717 | +make your packaging tool set an |
716 | 718 | environment variable or some other detectable configuration, and
|
717 | 719 | define a ``get_preferred_schemes`` function to return a different
|
718 | 720 | scheme when called from inside a package build. Then you can use ``pip
|
|
0 commit comments