Skip to content

Conversation

@jjhelmus
Copy link
Contributor

@jjhelmus jjhelmus commented Dec 4, 2025

Patch CPython to allow venvs to be created from symlinks. When inside a venv and base_executable is passed available. Use the resolved path as the executable_dir rather than the one specified by home in pyvenv.cfg

Patch CPython to allow venvs to be created from symlinks.
When inside a venv and base_executable is passed available. Use the
resolved path as the executable_dir rather than the one specified by
home in pyvenv.cfg
@jjhelmus jjhelmus added platform:linux Specific to the Linux platform arch:x86_64 labels Dec 4, 2025
@jjhelmus jjhelmus removed platform:linux Specific to the Linux platform arch:x86_64 labels Dec 5, 2025
@jjhelmus jjhelmus marked this pull request as ready for review December 5, 2025 15:26
@jjhelmus jjhelmus closed this Dec 5, 2025
@jjhelmus jjhelmus reopened this Dec 5, 2025
geofft added a commit that referenced this pull request Dec 5, 2025
Mostly fixes #380, and also fixes #713 because we prefer the actual
binary path to argv[0].

There are two changes here. The second one is taken from PR #903 (and
indirectly from CPython upstream). The reason for that is the first
change doesn't quite work on some aarch64 configs, but the second change
doesn't cover the case of weird argv[0].

Co-authored-by: Jonathan Helmus <[email protected]>
@jjhelmus
Copy link
Contributor Author

jjhelmus commented Dec 5, 2025

superseded by #896

@jjhelmus jjhelmus closed this Dec 5, 2025
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.

1 participant