Skip to content

How is py_binary defined? #2036

Answered by rickeylev
allsey87 asked this question in Q&A
Jul 4, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You've pretty much got it.

Bazel provides an implementation of the core python rules. However, they are being moved out of Bazel and into rules_python. Rules_python is a drop in replacement for the old rules built into bazel. The two implementations have almost identical behavior. There's not many differences and they are pretty minor differences (rules_python probably has a few fixes and features beyond it, actually). There's an issue in the Bazel repo that has a list of differences, but I'm on mobile and can't find it.

Eventually, Bazel will remove the built-in implementations. I'm not sure when that'll happen. Hopefully Bazel 8.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@allsey87
Comment options

Answer selected by allsey87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants