I am able to get a py_runtime to point to the correct python interpreter, but now I want to be able to use python 3 for my Bazel rules, and python 2 for existing Bazel rules that were written for python 2. Given py_runtime below, how do I add it to the py_library so that it runs on python 3 while everything else runs on python 2?
py_runtime(
name = "python-3.6",
files = [],
interpreter = "python3interpreter",
)
py_runtime(
name = "python-2.7",
files = [],
interpreter = "python2interpreter",
)
py_library(
name = "foo",
srcs = ["foo.py"]
)