Skip to content

Commit c91d9f0

Browse files
aranguyenrickeylev
andauthored
build: add flag_alias definition for Starlarkification of python flags (#3450)
With this change, when user build with a native python flag, `flag_alias` will point to the starlark version of the flag. Please see design doc [here](https://docs.google.com/document/d/1yOvi4hVV7Ja32ocwVb4lsEUnijftk8nilXPncYm-BH8/edit?tab=t.0#heading=h.qn3unswby87l) for more details. This feature should work as a no-op in the latest bazel 8.x and 7.x releases. --------- Co-authored-by: Richard Levasseur <richardlev@gmail.com> Co-authored-by: Richard Levasseur <rlevasseur@google.com>
1 parent 0351baa commit c91d9f0

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

MODULE.bazel

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,17 +356,17 @@ bazel_binaries.local(
356356
name = "self",
357357
path = "tests/integration/bazel_from_env",
358358
)
359-
bazel_binaries.download(version = "7.4.1")
360-
bazel_binaries.download(version = "8.0.0")
359+
bazel_binaries.download(version = "7.7.0")
360+
bazel_binaries.download(version = "8.5.1")
361361
bazel_binaries.download(version = "9.0.0rc1")
362362
use_repo(
363363
bazel_binaries,
364364
"bazel_binaries",
365365
# These don't appear necessary, but are reported as direct dependencies
366366
# that should be use_repo()'d, so we add them as requested
367367
"bazel_binaries_bazelisk",
368-
"build_bazel_bazel_7_4_1",
369-
"build_bazel_bazel_8_0_0",
368+
"build_bazel_bazel_7_7_0",
369+
"build_bazel_bazel_8_5_1",
370370
"build_bazel_bazel_9_0_0rc1",
371371
# "build_bazel_bazel_rolling",
372372
"build_bazel_bazel_self",
@@ -459,3 +459,23 @@ uv_dev = use_extension(
459459
uv_dev.configure(
460460
version = "0.6.2",
461461
)
462+
463+
flag_alias(
464+
name = "build_python_zip",
465+
starlark_flag = "//python/config_settings:build_python_zip",
466+
)
467+
468+
flag_alias(
469+
name = "incompatible_default_to_explicit_init_py",
470+
starlark_flag = "//python/config_settings:incompatible_default_to_explicit_init_py",
471+
)
472+
473+
flag_alias(
474+
name = "python_path",
475+
starlark_flag = "//python/config_settings:python_path",
476+
)
477+
478+
flag_alias(
479+
name = "experimental_python_import_all_repositories",
480+
starlark_flag = "//python/config_settings:experimental_python_import_all_repositories",
481+
)

0 commit comments

Comments
 (0)