Skip to content

Commit

Permalink
Update py_runtime_pair to properly declare config transitions.
Browse files Browse the repository at this point in the history
This is phase 1 of of the switch to toolchain transitions. See #11584 for details.
  • Loading branch information
katre committed Sep 11, 2020
1 parent 26cbf77 commit fae764a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/python/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def _py_runtime_pair_impl(ctx):
py_runtime_pair = rule(
implementation = _py_runtime_pair_impl,
attrs = {
"py2_runtime": attr.label(providers = [PyRuntimeInfo], doc = """\
"py2_runtime": attr.label(providers = [PyRuntimeInfo], cfg = "exec", doc = """\
The runtime to use for Python 2 targets. Must have `python_version` set to
`PY2`.
"""),
"py3_runtime": attr.label(providers = [PyRuntimeInfo], doc = """\
"py3_runtime": attr.label(providers = [PyRuntimeInfo], cfg = "exec", doc = """\
The runtime to use for Python 3 targets. Must have `python_version` set to
`PY3`.
"""),
Expand Down

0 comments on commit fae764a

Please sign in to comment.