Skip to content

Commit 9aad4b7

Browse files
committed
fix python version
1 parent 0f6ed93 commit 9aad4b7

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

WORKSPACE

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,11 @@ new_git_repository(
193193
load("@rules_python//python:repositories.bzl", "py_repositories")
194194
py_repositories()
195195

196-
load("@rules_python//python:repositories.bzl", "python_register_multi_toolchains")
197-
DEFAULT_PYTHON = "3.11"
198-
python_register_multi_toolchains(
199-
name = "python",
200-
default_version = DEFAULT_PYTHON,
201-
python_versions = [
202-
"3.12",
203-
"3.11",
204-
"3.10",
205-
"3.9",
206-
"3.8"
207-
],
208-
ignore_root_user_error=True,
196+
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
197+
DEFAULT_PYTHON = "3.12"
198+
python_register_toolchains(
199+
name = "python3_12",
200+
python_version = DEFAULT_PYTHON,
209201
)
210202

211203
# Create a central external repo, @pip_deps, that contains Bazel targets for all the

0 commit comments

Comments
 (0)