mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-18 23:57:47 +01:00
681817ceae
GitOrigin-RevId: 83514338be1d662518bab9fe5ab6eefef98f229f
27 lines
636 B
Python
27 lines
636 B
Python
load("@bazel_tools//tools/python:toolchain.bzl", "py_runtime_pair")
|
|
load("@rules_python//python:defs.bzl", "py_runtime")
|
|
|
|
py_runtime(
|
|
name = "python3_runtime",
|
|
files = ["@python_interpreter//:files"],
|
|
interpreter = "@python_interpreter//:python_bin",
|
|
python_version = "PY3",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
py_runtime_pair(
|
|
name = "py_runtime_pair",
|
|
py2_runtime = None,
|
|
py3_runtime = ":python3_runtime",
|
|
)
|
|
|
|
toolchain(
|
|
name = "py_3_toolchain",
|
|
toolchain = ":py_runtime_pair",
|
|
toolchain_type = "@bazel_tools//tools/python:toolchain_type",
|
|
)
|
|
|
|
exports_files([
|
|
"requirements.txt",
|
|
])
|