]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117505: Run ensurepip in isolated env in Windows installer (GH-118257)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Sep 2024 14:16:29 +0000 (16:16 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 14:16:29 +0000 (15:16 +0100)
commit1494d9563f72e5ac14e55d8df3b5cb9391ccef6f
tree7717adaf4d4db48d1a7a77c660e6e0ac55da98f5
parent708173c35e5a51a6aa7e4d0647cbcbfc9adab1ed
gh-117505: Run ensurepip in isolated env in Windows installer (GH-118257)

ensurepip forks a subprocess to run pip itself, but that subprocess only inherits a -I isolated mode flag (see _run_pip() in Lib/ensurepip/__init__.py), not the "-E -s" flags that the installer has been using. This means that parts of ensurepip don't actually run in an isolated environment and can make incorrect decisions based on packages installed in the user site-packages.
(cherry picked from commit c9073eb1a99606df1efeb8959e9f11a8ebc23ae2)

Co-authored-by: Michael Vincent <377567+Vynce@users.noreply.github.com>
Misc/NEWS.d/next/Windows/2024-04-24-22-50-33.gh-issue-117505.gcTb_p.rst [new file with mode: 0644]
Tools/msi/pip/pip.wxs