Skip to content

Commit

Permalink
Allow root for rules_python toolchains to build in Linux containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjng committed Apr 15, 2024
1 parent 24ef625 commit 9e7a6c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ bazel_dep(name = "libpfm", version = "4.11.0")
# of relying on the changing default version from rules_python.

python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True)
python.toolchain(python_version = "3.8")
python.toolchain(python_version = "3.9")
python.toolchain(python_version = "3.10")
python.toolchain(python_version = "3.11")
python.toolchain(python_version = "3.8", ignore_root_user_error = True)
python.toolchain(python_version = "3.9", ignore_root_user_error = True,)
python.toolchain(python_version = "3.10", ignore_root_user_error = True,)
python.toolchain(python_version = "3.11", ignore_root_user_error = True,)
python.toolchain(
is_default = True,
python_version = "3.12",
ignore_root_user_error = True,
)
use_repo(
python,
Expand Down

0 comments on commit 9e7a6c3

Please sign in to comment.