Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/pip_install/extract_wheels/lib/bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def generate_build_file_contents(

data_exclude = [
"*.whl",
"**/__pycache__/**",
"**/*.py",
"**/*.pyc",
f"{WHEEL_ENTRY_POINT_PREFIX}*.py",
"**/* *",
"BUILD.bazel",
Expand Down Expand Up @@ -134,7 +136,7 @@ def generate_build_file_contents(

py_library(
name = "{name}",
srcs = glob(["**/*.py"], exclude=["{entry_point_prefix}*.py"], allow_empty = True),
srcs = glob(["**/*.py"], exclude=["{entry_point_prefix}*.py", "**/__pycache__/**"], allow_empty = True),
data = glob(["**/*"], exclude={data_exclude}),
# This makes this directory a top-level in the python import
# search path for anything that depends on this.
Expand Down