Skip to content

Commit 9c19d72

Browse files
authored
bazel: Mark Python default version different (#530)
With this way, we are more compatible to also different rules_python versions.
1 parent f9619d5 commit 9c19d72

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

MODULE.bazel

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ bazel_dep(name = "rules_python_gazelle_plugin", version = "1.5.1")
1313

1414
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
1515

16-
python.defaults(
17-
# Use python.defaults if you have defined multiple toolchain versions.
18-
python_version = "3.9",
19-
python_version_env = "BAZEL_PYTHON_VERSION",
20-
)
21-
2216
python.toolchain(
17+
is_default = True,
2318
configure_coverage_tool = True,
2419
python_version = "3.9",
2520
)

0 commit comments

Comments
 (0)