Skip to content

Commit 33a2ce4

Browse files
committed
MODULE.bazel: Revert removal of python toolchain
Add definition and config for python toolchain since it is needed for docs-as-code.
1 parent 3459860 commit 33a2ce4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

MODULE.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ module(
1717
)
1818

1919
## Toolchains (dependencies and config)
20+
# python
21+
bazel_dep(name = "rules_python", version = "1.6.3")
22+
23+
PYTHON_VERSION = "3.12"
24+
25+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
26+
python.toolchain(
27+
is_default = True,
28+
python_version = PYTHON_VERSION,
29+
)
30+
use_repo(python)
31+
2032
# rust
2133
bazel_dep(name = "rules_rust", version = "0.65.0")
2234

0 commit comments

Comments
 (0)