Skip to content

Commit d77f0d0

Browse files
committed
tweak(whl_library): capture arbitrary files as data
This fixes wheels like ruff which want to emplace bin/ and other dirs used as library data.
1 parent 7a0283e commit d77f0d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/pip_install/private/generate_whl_library_build_bazel.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ filegroup(
5959
6060
filegroup(
6161
name = "{data_label}",
62-
srcs = glob(["data/**"], allow_empty = True),
62+
srcs = glob(["**/*"],
63+
exclude = ["{whl_name}", "site-packages/**"],
64+
allow_empty = True),
6365
)
6466
6567
filegroup(

0 commit comments

Comments
 (0)