| 1 |
load("@rules_python//python:defs.bzl", "py_runtime", "py_runtime_pair") |
| 2 |
|
| 3 |
package(default_visibility = ["//visibility:private"]) |
| 4 |
|
| 5 |
py_runtime( |
| 6 |
name = "python3", |
| 7 |
interpreter_path = "/usr/bin/python3", |
| 8 |
python_version = "PY3", |
| 9 |
stub_shebang = "#!/usr/bin/env python3", |
| 10 |
) |
| 11 |
|
| 12 |
py_runtime_pair( |
| 13 |
name = "just_python3", |
| 14 |
py2_runtime = None, |
| 15 |
py3_runtime = ":python3", |
| 16 |
) |
| 17 |
|
| 18 |
toolchain( |
| 19 |
name = "default_python3_toolchain", |
| 20 |
toolchain = ":just_python3", |
| 21 |
toolchain_type = "@rules_python//python:toolchain_type", |
| 22 |
) |