Skip to content

Commit 7dc181f

Browse files
committed
Remove extra files from py_binary DefaultInfo
This mirrors rules_python to ensure that users can use `execpath` with a py_binary target. Fixes aspect-build#455
1 parent bf9fdb2 commit 7dc181f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

py/private/py_binary.bzl

+1-5
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ def _py_binary_rule_impl(ctx):
108108

109109
return [
110110
DefaultInfo(
111-
files = depset([
112-
executable_launcher,
113-
ctx.file.main,
114-
site_packages_pth_file,
115-
]),
111+
files = depset([executable_launcher]),
116112
executable = executable_launcher,
117113
runfiles = runfiles,
118114
),

0 commit comments

Comments
 (0)