Skip to content

Commit 1b61108

Browse files
committed
use the string constant
1 parent 1d72e09 commit 1b61108

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

python/private/BUILD.bazel

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,7 @@ bzl_library(
197197
bzl_library(
198198
name = "internal_config_repo_bzl",
199199
srcs = ["internal_config_repo.bzl"],
200-
deps = [
201-
":bzlmod_enabled_bzl",
202-
":flags_bzl",
203-
],
200+
deps = [":bzlmod_enabled_bzl"],
204201
)
205202

206203
bzl_library(

python/private/internal_config_repo.bzl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ such as globals available to Bazel versions, or propagating user environment
1818
settings for rules to later use.
1919
"""
2020

21-
load("//python/private:flags.bzl", "BootstrapImplFlag")
2221
load("//python/private:text_util.bzl", "render")
2322
load(":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

Comments
 (0)