FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-117505: Run ensurepip in isolated env in Windows installer (GH-118257) by miss-islington · Pull Request #119422 · python/cpython · GitHub

/ cpython Public

[3.12] gh-117505: Run ensurepip in isolated env in Windows installer (GH-118257) - #119422

Merged
zooba merged 2 commits into
python:3.12from
miss-islington:backport-c9073eb-3.12
Sep 18, 2024
Merged

[3.12] gh-117505: Run ensurepip in isolated env in Windows installer (GH-118257)#119422
zooba merged 2 commits into
python:3.12from
miss-islington:backport-c9073eb-3.12

Conversation

miss-islington commented May 22, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 c9073eb)

Co-authored-by: Michael Vincent 377567+Vynce@users.noreply.github.com

…ythonGH-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 c9073eb)

Co-authored-by: Michael Vincent <377567+Vynce@users.noreply.github.com>

zooba commented May 22, 2024

Copy link
Copy Markdown
Member

Waiting to see how this change fares in 3.13b2 before we ship it downlevel.

hugovk commented Sep 15, 2024

Copy link
Copy Markdown
Member

@zooba Triage: ready to merge?

zooba commented Sep 18, 2024

Copy link
Copy Markdown
Member

Yeah, I haven't heard any issues arise.

zooba merged commit 1494d95 into python:3.12 Sep 18, 2024
miss-islington deleted the backport-c9073eb-3.12 branch January 2, 2026 18:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL