Skip to content

Commit bb24cff

Browse files
committed
use native.py_library instead of native.alias
1 parent f3cef91 commit bb24cff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build_defs.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ def pybind_extension(
105105
**kwargs
106106
)
107107

108-
native.alias(
108+
native.py_library(
109109
name = name,
110-
actual = select({
111-
"@platforms//os:windows": name + ".pyd",
112-
"//conditions:default": name + ".so",
110+
data = select({
111+
"@platforms//os:windows": [name + ".pyd"],
112+
"//conditions:default": [name + ".so"],
113113
}),
114114
testonly = kwargs.get("testonly"),
115115
visibility = kwargs.get("visibility"),

0 commit comments

Comments
 (0)