Skip to content

Commit 58f99a6

Browse files
authored
fix(whl_library): :data needs to be data for the library (#4)
This patch fixes an oversight in the expansion of the `BUILD.bazel` file template to make the `:data` target which includes wheel installation content such as `/bin` entrypoints in the case of `ruff` as part of the library target pointed to by `py_requirement`. This allows for py_library/py_binary/... consumers to take dependencies both on data files and on potential binary artifacts packaged as part of a PyPi "library" transparently via `py_requirement` and associated machinery.
1 parent d77f0d0 commit 58f99a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pip_install/private/generate_whl_library_build_bazel.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def generate_whl_library_build_bazel(
258258
"""
259259

260260
additional_content = []
261-
data = []
261+
data = [":data"]
262262
srcs_exclude = []
263263
data_exclude = [] + data_exclude
264264
dependencies = sorted([normalize_name(d) for d in dependencies])

0 commit comments

Comments
 (0)