Skip to content

Commit c0880bf

Browse files
committed
feat: enable rules_python Starlark implemention by default for Bazel 7+
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 #1069
1 parent 1fd2d7d commit c0880bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/private/internal_config_repo.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ settings for rules to later use.
1919
"""
2020

2121
_ENABLE_PYSTAR_ENVVAR_NAME = "RULES_PYTHON_ENABLE_PYSTAR"
22-
_ENABLE_PYSTAR_DEFAULT = "0"
22+
_ENABLE_PYSTAR_DEFAULT = "1"
2323

2424
_CONFIG_TEMPLATE = """\
2525
config = struct(

0 commit comments

Comments
 (0)