Skip to content

Commit

Permalink
Remove extra files from py_binary DefaultInfo
Browse files Browse the repository at this point in the history
This mirrors rules_python to ensure that users can use `execpath` with a
py_binary target.

Fixes aspect-build#455
  • Loading branch information
keith committed Dec 5, 2024
1 parent bf9fdb2 commit 7dc181f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions py/private/py_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ def _py_binary_rule_impl(ctx):

return [
DefaultInfo(
files = depset([
executable_launcher,
ctx.file.main,
site_packages_pth_file,
]),
files = depset([executable_launcher]),
executable = executable_launcher,
runfiles = runfiles,
),
Expand Down

0 comments on commit 7dc181f

Please sign in to comment.