Repository navigation
✨ feat(create): sync with upstream CPython/PyPy venv - #3036
Merged
Merged
Conversation
gaborbernat
force-pushed
the
sync
branch
12 times, most recently
from
February 15, 2026 20:42
31526e4 to
ab1331c
Compare
gaborbernat
marked this pull request as draft
February 15, 2026 20:52
gaborbernat
force-pushed
the
sync
branch
4 times, most recently
from
February 16, 2026 01:45
54be458 to
9714a3f
Compare
gaborbernat
marked this pull request as ready for review
February 16, 2026 01:49
gaborbernat
enabled auto-merge (squash)
February 16, 2026 01:49
This was referenced Mar 12, 2026
This was referenced Mar 13, 2026
2 of 5 tasks
gaborbernat
pushed a commit
that referenced
this pull request
Jun 8, 2026
Closes #3160. Sourcing activate.fish from fish run inside MSYS2 (or similar) breaks the PATH because of a path style mismatch. This PR applies the changes from #1970 as well as the change to using uname from #3036 to the fish template as well. ### Thanks for contributing, make sure you address all the checklists (for details on how see [development documentation](https://virtualenv.pypa.io/en/latest/development.html#development)) - [ ] ran the linter to address style issues (`tox -e fix`) - [x] wrote descriptive pull request text - [ ] ensured there are test(s) validating the fix - [x] added news fragment in `docs/changelog` folder - [ ] updated/extended the documentation --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
Just to avoid confusion, to my current understanding, uv does not read or rely on the |
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.
virtualenv's builtin creators replicate what CPython's
Lib/venv/and PyPy'slib-python/3/venv/do, but have drifted since ~2020. This PR brings them back in sync by addressing the most impactful gaps identified from reviewing ~84 upstream CPython commits and PyPy's py3.9-3.11 evolution.The highest-priority changes focus on correctness:
pyvenv.cfgnow includes theexecutablekey (CPython 3.11+) that tools likeuvand IDEs rely on, theincludedirectory is created per PEP 405, and free-threaded Python 3.13+ builds get properpython3.Xt/pythonw3.Xt.exeexecutable names plusvenvlaunchert.exelauncher handling on Windows. PyPy environments also improve —PYPY_PORTABLE_DEPS.txtis respected for portable builds, and Windows DLL coverage expands beyond the previous narrowlibpypy*/libffi*globs.Activation scripts receive targeted fixes: bash now uses
uname-based detection to catch MinGW/Git Bash (matching upstream), fish preserves$statusacross the prompt function and drops Fish <3 compatibility, and PowerShell gainsGet-PyVenvConfigwith-VenvDir/-Promptparameters. Allmajor == 3guards are removed since virtualenv requires Python 3.8+, and the single-useresignhelper is inlined at its call site. Thevenvcreator also learns to pass--without-scm-ignore-fileson 3.13+ to avoid conflicts with virtualenv's own.gitignorehandling.Resolves #3021
Resolves #2090