Skip to content

[3.15] gh-106045: Fix venv path discovery for symlinked executables (GH-156483) - #160002

Merged
ambv merged 1 commit into
python:3.15from
miss-islington:backport-e07817d-3.15
Oct 21, 2026
Merged

ambv merged 1 commit into
python:3.15from
miss-islington:backport-e07817d-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Use the resolved base executable when locating the base installation
instead of relying on the home directory in pyvenv.cfg.

Add tests covering relocated Python installations and misleading
standard-library landmarks near executable symlinks.
(cherry picked from commit e07817d)

Co-authored-by: Jonathan J. Helmus jjhelmus@gmail.com

…ythonGH-156483)

Use the resolved base executable when locating the base installation
instead of relying on the home directory in pyvenv.cfg.

Add tests covering relocated Python installations and misleading
standard-library landmarks near executable symlinks.
(cherry picked from commit e07817d)

Co-authored-by: Jonathan J. Helmus <jjhelmus@gmail.com>
@miss-islington
miss-islington requested a review from FFY00 as a code owner October 21, 2026 00:10
@ambv
ambv merged commit a16f183 into python:3.15 Oct 21, 2026
56 checks passed
@miss-islington
miss-islington deleted the backport-e07817d-3.15 branch October 21, 2026 01:43
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.

3 participants