Skip to content
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

Use hermetic python toolchain provided by rules_python #1915

Open
ylecornec opened this issue Jun 29, 2023 · 0 comments
Open

Use hermetic python toolchain provided by rules_python #1915

ylecornec opened this issue Jun 29, 2023 · 0 comments
Labels
P3 minor: not priorized type: feature request

Comments

@ylecornec
Copy link
Member

ylecornec commented Jun 29, 2023

rules_python now provides ways to download and setup hermetic toolchains for bzlmod and workspace mode.

For non nix systems, this could possibly be used instead of our own implementation which uses python3 from the environment.

Note: The last version of rules_python also registers a default toolchain but is does not work when bazel is run as root (see bazelbuild/rules_python#1169). This behavior can be changed usingignore_root_user_error = True as an argument, but this badly effects caching (see bazelbuild/rules_python#713).

def _configure_python3_toolchain(name, register = True):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 minor: not priorized type: feature request
Projects
None yet
Development

No branches or pull requests

1 participant