-
-
Notifications
You must be signed in to change notification settings - Fork 594
feat: add runtime_env toolchain suite to replace "autodetecting" toolchain #2018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rickeylev
merged 13 commits into
bazel-contrib:main
from
rickeylev:feat.runtime.env.toolchain
Jun 28, 2024
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7a84eeb
feat: add runtime_env toolchain suite to replace "autodetecting" tool…
aignas bddf1c0
Update python/private/BUILD.bazel
aignas 5e1194b
fixup! feat: add runtime_env toolchain suite to replace "autodetectin…
rickeylev 55ec794
fixup
rickeylev 590b01c
Merge branch 'feat.runtime.env.toolchain' of https://github.com/ricke…
rickeylev df3a449
fixup: buildifier
rickeylev 7b14c04
fix autodetecting alias
rickeylev 4ada95e
fix nonstrict alias
rickeylev 686a009
undo accidental edits to precompile test
rickeylev 00af994
fix pycc part of runtime_env test
rickeylev 9e73e87
fix toolchain ordering in test
rickeylev 5fdd45c
fix buildifier
rickeylev 14d7dd3
remove bogus text from changelog
rickeylev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
:::{default-domain} bzl | ||
::: | ||
:::{bzl:currentfile} //python/runtime_env_toolchain:BUILD.bazel | ||
::: | ||
|
||
# //python/runtime_env_toolchain | ||
|
||
::::{target} all | ||
|
||
A set of toolchains that invoke `python3` from the runtime environment. | ||
|
||
Note that this toolchain provides no build-time information, which makes it of | ||
limited utility. This is because the invocation of `python3` is done when a | ||
program is run, not at build time. | ||
|
||
This is only provided to aid migration off the builtin Bazel toolchain | ||
(`@bazel_tools//python:autodetecting_toolchain`), and is largely only applicable | ||
to WORKSPACE builds. | ||
|
||
To use this target, register it as a toolchain in WORKSPACE or MODULE.bazel: | ||
|
||
::: | ||
register_toolchains("@rules_python//python/runtime_env_toolchains:all") | ||
::: | ||
|
||
The benefit of this target over the legacy targets is this defines additional | ||
toolchain types that rules_python needs. This prevents toolchain resolution from | ||
continuing to search elsewhere (e.g. potentially incurring a download of the | ||
hermetic runtimes when they won't be used). | ||
|
||
:::{deprecated} 0.34.0 | ||
|
||
Switch to using a hermetic toolchain or manual toolchain configuration instead. | ||
::: | ||
|
||
:::{versionadded} 0.34.0 | ||
::: | ||
:::: |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.