Repository navigation
[Backport staging-25.11] python-env: wrap python executable with --resolve-argv0 - #462248
Merged
Merged
Conversation
This commit, together with #442540, changes the way python environments are built: * When generating wrappers for python executables, we inherit argv[0] from the wrapper. This causes python to initialize its configuration in the environment with all the correct paths. * We also resolve argv[0] to absolute path when invoking python from PATH. This helps set python's prefix correctly on Darwin. The end result is that python environments no longer appear to be venvs, and behave more like a vanilla python installation. In addition it's possible to create a venv using an environment and use packages from both the environment and the venv. (cherry picked from commit abe61db)
1 of 13 tasks
Contributor
There was a problem hiding this comment.
The PR's base branch is set to staging-25.11, but 0 commits from the staging branch are included. Make sure you know the right base branch for your changes, then:
- If the changes should go to the
stagingbranch, change the base branch. - If the changes should go to the
staging-25.11branch, rebase your PR onto the correct merge-base:# git rebase --onto $(git merge-base upstream/staging-25.11 HEAD) $(git merge-base upstream/staging HEAD) git rebase --onto 38ab204bb046824462652a482411f669c87bcbfa 38ab204bb046824462652a482411f669c87bcbfa git push --force-with-lease
Member
|
Apparently an issue with the CI scrip that cannot work correctly with the first backport. Therefore bypassing CI. |
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.
Bot-based backport to
staging-25.11, triggered by a label in #462090.Before merging, ensure that this backport is acceptable for the release.
Even as a non-committer, if you find that it is not acceptable, leave a comment.