Skip to content

Commit 03c8b2f

Browse files
[Build] Make the python usage hermetic and use only python 3.9
1 parent df41b58 commit 03c8b2f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

WORKSPACE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ http_archive(
5555
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.8.0.tar.gz",
5656
)
5757

58+
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
59+
60+
python_register_toolchains(
61+
name = "python3_9",
62+
python_version = "3.9",
63+
)
64+
65+
load("@python3_9//:defs.bzl", "interpreter")
66+
5867
# This one is only needed if you're using the packaging rules.
5968
load("@rules_python//python:pip.bzl", "pip_install")
6069

0 commit comments

Comments
 (0)