Repository navigation
🐛 fix(create): replace stale venv interpreter - #3610
Merged
gaborbernat merged 2 commits intoNov 20, 2026
Merged
Conversation
CPython 3.14 creates a pi-named interpreter alias on UTF-8 filesystems. Recreation now replaces that alias along with the selected interpreter's usual names. Other runtimes keep unrelated files with the same name. The test uses a separate file to replace an executable, then runs the alias being checked. Unsupported copy-based creators are skipped.
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The environment recreation path could leave a copied POSIX interpreter at
bin/pythonwhen rebuilding an existing environment with another Python version. The rebuilt environment then ran the old interpreter. Recreation now replaces copied interpreter aliases before the standard library creator runs. Fixes #3605.Existing interpreter files
The cleanup path removes regular files for the selected interpreter's aliases as well as the symlinks and hard links it already removed. CPython 3.14 also creates
𝜋thonon UTF-8 filesystems; the cleanup includes that name when the selected interpreter matches those conditions.Behavior changes
Recreating a copied POSIX environment refreshes its interpreter aliases. Other files in
binkeep the existing cleanup behavior.Report
ANT-2026-HFVRTAWM.