|
1 | 1 | load("@python3_9//:defs.bzl", python39 = "interpreter") |
| 2 | +load("@python3_10//:defs.bzl", python310 = "interpreter") |
2 | 3 | load("@py_deps_buildkite//:requirements.bzl", ci_require = "requirement") |
3 | 4 | load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_runtime", "py_runtime_pair") |
4 | 5 |
|
@@ -82,3 +83,24 @@ toolchain( |
82 | 83 | toolchain = ":py39_runtime_pair", |
83 | 84 | toolchain_type = "@bazel_tools//tools/python:toolchain_type", |
84 | 85 | ) |
| 86 | + |
| 87 | +py_runtime( |
| 88 | + name = "py310_runtime", |
| 89 | + interpreter = python310, |
| 90 | + python_version = "PY3", |
| 91 | + visibility = ["//visibility:private"], |
| 92 | +) |
| 93 | + |
| 94 | +py_runtime_pair( |
| 95 | + name = "py310_runtime_pair", |
| 96 | + py2_runtime = None, |
| 97 | + py3_runtime = ":py310_runtime", |
| 98 | + visibility = ["//visibility:private"], |
| 99 | +) |
| 100 | + |
| 101 | +toolchain( |
| 102 | + name = "py310_toolchain", |
| 103 | + exec_compatible_with = ["//:hermetic_python"], |
| 104 | + toolchain = ":py310_runtime_pair", |
| 105 | + toolchain_type = "@bazel_tools//tools/python:toolchain_type", |
| 106 | +) |
0 commit comments