Skip to content

Commit

Permalink
feat: enable rules_python Starlark implemention by default for Bazel 7+
Browse files Browse the repository at this point in the history
This makes the base rules use the Starlark code in rules_python
("pystar") instead of what is built into Bazel 7.

The pystar implementation can be disabled by setting
`RULES_PYTHON_ENABLE_PYSTAR=0` in your environment or using
`--action_env`.

Earlier versions of Bazel continue to use the rules built into Bazel
regardless (the new implementation requires special APIs that only Bazel
7 has).

Work towards bazelbuild#1069
  • Loading branch information
rickeylev committed Jan 17, 2024
1 parent 01f8078 commit 0177b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/private/internal_config_repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ settings for rules to later use.
load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED")

_ENABLE_PYSTAR_ENVVAR_NAME = "RULES_PYTHON_ENABLE_PYSTAR"
_ENABLE_PYSTAR_DEFAULT = "0"
_ENABLE_PYSTAR_DEFAULT = "1"

_CONFIG_TEMPLATE = """\
config = struct(
Expand Down

0 comments on commit 0177b10

Please sign in to comment.