@@ -18,7 +18,6 @@ such as globals available to Bazel versions, or propagating user environment
1818settings for rules to later use.
1919"""
2020
21- load ("//python/private:flags.bzl" , "BootstrapImplFlag" )
2221load ("//python/private:text_util.bzl" , "render" )
2322load (":repo_utils.bzl" , "repo_utils" )
2423
@@ -93,12 +92,18 @@ def _internal_config_repo_impl(rctx):
9392 builtin_py_info_symbol = "None"
9493 builtin_py_runtime_info_symbol = "None"
9594 builtin_py_cc_link_params_provider = "None"
96- bootstrap_impl_default = BootstrapImplFlag .SCRIPT
95+
96+ # NOTE @aignas 2025-09-28: we are not using flag constants due to circular
97+ # declarations in the WORKSPACE case
98+ bootstrap_impl_default = "script"
9799 else :
98100 builtin_py_info_symbol = "PyInfo"
99101 builtin_py_runtime_info_symbol = "PyRuntimeInfo"
100102 builtin_py_cc_link_params_provider = "PyCcLinkParamsProvider"
101- bootstrap_impl_default = BootstrapImplFlag .SYSTEM_PYTHON
103+
104+ # NOTE @aignas 2025-09-28: we are not using flag constants due to circular
105+ # declarations in the WORKSPACE case
106+ bootstrap_impl_default = "system_python"
102107
103108 rctx .file ("rules_python_config.bzl" , _CONFIG_TEMPLATE .format (
104109 enable_pipstar = _bool_from_environ (rctx , _ENABLE_PIPSTAR_ENVVAR_NAME , _ENABLE_PIPSTAR_DEFAULT ),
0 commit comments