Skip to content

Commit

Permalink
fix python version for bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jul 18, 2024
1 parent 5b05c69 commit d69a30c
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,11 @@ new_git_repository(
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()

load("@rules_python//python:repositories.bzl", "python_register_multi_toolchains")
DEFAULT_PYTHON = "3.11"
python_register_multi_toolchains(
name = "python",
default_version = DEFAULT_PYTHON,
python_versions = [
"3.12",
"3.11",
"3.10",
"3.9",
"3.8"
],
ignore_root_user_error=True,
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
DEFAULT_PYTHON = "3.12"
python_register_toolchains(
name = "python3_12",
python_version = DEFAULT_PYTHON,
)

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

0 comments on commit d69a30c

Please sign in to comment.