Message409334
A change in behavior was made to the `ensurepip` module in Python 3.8.7 that causes bootstrapping to break out of an isolated environment. This is relevant to the assumption made in the `venv` module, which ran ensurepip as a sub-process with the `-I` flag environment isolation to force installation in the virtual environment directory.
In Python <= 3.8.6, ensurepip ran the bootstrap within the current interpreter, so the environment remained isolated. But in Python >= 3.8.7 it creates a second subprocess without the `-I` flag, and the un-isolated environment appears to be restored for pip. This would then allow a search of any additional paths, and prevent installation of pip and setuptools from being installed in the venv environment directory if they are found somewhere else. |
|
Date |
User |
Action |
Args |
2021-12-29 23:24:11 | kcdodd | set | recipients:
+ kcdodd |
2021-12-29 23:24:11 | kcdodd | set | messageid: <1640820251.78.0.719610352005.issue46197@roundup.psfhosted.org> |
2021-12-29 23:24:11 | kcdodd | link | issue46197 messages |
2021-12-29 23:24:11 | kcdodd | create | |
|