Skip to content

Commit 915f21b

Browse files
martis42Jonathon Belotti
andauthored
Make lazily fetching dependencies compatible to disallow_empty_glob (#477)
Some python packages are provided as ".tar.gz" instead of ".whl". In such cases globbing for ".whl" files returns an empty result. Co-authored-by: Jonathon Belotti <[email protected]>
1 parent ce19337 commit 915f21b

File tree

1 file changed

+1
-1
lines changed
  • python/pip_install/extract_wheels/lib

1 file changed

+1
-1
lines changed

python/pip_install/extract_wheels/lib/bazel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def generate_build_file_contents(
3939
4040
filegroup(
4141
name="{whl_file_label}",
42-
srcs=glob(["*.whl"]),
42+
srcs=glob(["*.whl"], allow_empty = True),
4343
data=[{whl_file_deps}]
4444
)
4545

0 commit comments

Comments
 (0)