|
|
@ -1,9 +1,30 @@ |
|
|
load("@rules_python//python:defs.bzl", "py_binary") |
|
|
load("@rules_python//python:defs.bzl", "py_binary") |
|
|
load("@my_deps//:requirements.bzl", "requirement") |
|
|
load("@rules_python//python:defs.bzl", "py_runtime_pair") |
|
|
|
|
|
load("@pip_requirements//:requirements.bzl", "requirement") |
|
|
|
|
|
|
|
|
|
|
|
py_runtime( |
|
|
|
|
|
name = "python37", |
|
|
|
|
|
interpreter_path = "/usr/local/bin/python3.7", |
|
|
|
|
|
python_version = "PY3" |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
py_runtime( |
|
|
py_runtime( |
|
|
name = "python38", |
|
|
name = "python38", |
|
|
interpreter_path = "/usr/local/bin/python3.8", |
|
|
interpreter_path = "/usr/local/bin/python3.8", |
|
|
|
|
|
python_version = "PY3" |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
py_runtime_pair( |
|
|
|
|
|
name = "py_runtime_pair", |
|
|
|
|
|
py3_runtime = ":python37", |
|
|
|
|
|
# py3_runtime = ":python38", |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
toolchain( |
|
|
|
|
|
name = "python_toolchain", |
|
|
|
|
|
toolchain = ":py_runtime_pair", |
|
|
|
|
|
toolchain_type = "@rules_python//python:toolchain_type", |
|
|
|
|
|
) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
py_binary( |
|
|
py_binary( |
|
|
|