-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable passing in custom py_runtime (#98)
Could use some help and opinions on the attribute name. This does add rules_python as a bazel dep in order to use the `PyRuntimeInfo` provider. Not sure if that's undesirable. It seems to make sense since rules_uv already depends on the toolchain made available by it. Example usage: ```starlark # in MODULE.bazel python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.11", ) use_repo( python, "python_3_11", ) # in BUILD.bazel pip_compile( name = "requirements_3_11", py3_runtime = "@python_3_11//:py3_runtime", requirements_in = "requirements.in", requirements_txt = "requirements_3_11.txt", ) ``` Fixes #97
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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