Skip to content

Commit 67dba98

Browse files
committed
Update py_runtime_pair to properly declare config transitions.
This is phase 1 of of the switch to toolchain transitions. See bazelbuild#11584 for details.
1 parent 54b062c commit 67dba98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/python/toolchain.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def _py_runtime_pair_impl(ctx):
4242
py_runtime_pair = rule(
4343
implementation = _py_runtime_pair_impl,
4444
attrs = {
45-
"py2_runtime": attr.label(providers = [PyRuntimeInfo], doc = """\
45+
"py2_runtime": attr.label(providers = [PyRuntimeInfo], cfg = "exec", doc = """\
4646
The runtime to use for Python 2 targets. Must have `python_version` set to
4747
`PY2`.
4848
"""),
49-
"py3_runtime": attr.label(providers = [PyRuntimeInfo], doc = """\
49+
"py3_runtime": attr.label(providers = [PyRuntimeInfo], cfg = "exec", doc = """\
5050
The runtime to use for Python 3 targets. Must have `python_version` set to
5151
`PY3`.
5252
"""),

0 commit comments

Comments
 (0)