Skip to content

Commit

Permalink
fix: propagate target_compatible_with to _py_env when creating a …
Browse files Browse the repository at this point in the history
…test or binary python target
  • Loading branch information
RoyShulman committed Nov 14, 2024
1 parent 9a9e4a2 commit 554238d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def _py_binary_or_test(name, rule, srcs, main, deps = [], resolutions = {}, **kw
package_collisions = package_collisions,
tags = ["manual"],
testonly = kwargs.get("testonly", False),
target_compatible_with = kwargs.get("target_compatible_with", False),
)

def py_binary(name, srcs = [], main = None, **kwargs):
Expand Down

0 comments on commit 554238d

Please sign in to comment.