Skip to content

Commit 8d66cd4

Browse files
committed
Add CcInfo to allowed providers of py_library deps.
This is required in order to use a [pybind_extension](https://github.com/pybind/pybind11_bazel/blob/2b6082a4d9d163a52299718113fa41e4b7978db5/build_defs.bzl#L28) in the `deps` of a `py_libary` as the `pybind_extension` is just a `cc_binary` under the hood. The `py_libary` from the official `rules_python` also supports this.
1 parent 1296c6b commit 8d66cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/private/py_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ _attrs = dict({
205205
),
206206
"deps": attr.label_list(
207207
doc = "Targets that produce Python code, commonly `py_library` rules.",
208-
providers = [[PyInfo], [PyVirtualInfo]],
208+
providers = [[PyInfo], [PyVirtualInfo], [CcInfo]],
209209
),
210210
"data": attr.label_list(
211211
doc = """Runtime dependencies of the program.

0 commit comments

Comments
 (0)