-
-
Notifications
You must be signed in to change notification settings - Fork 678
Override a requirement with a Bazel target #385
Copy link
Copy link
Open
Labels
Can Close?Will close in 30 days if there is no new activityWill close in 30 days if there is no new activitytype: feature request
Description
🚀 feature request
Relevant Rules
load("@rules_python//python:pip.bzl", "pip_install")
Description
We'd like to be able to override a requirement with a Bazel target. This is basically the rules_python equivalent of rules_jvm_external's override_targets directive.
Consider the case where we're using grpc and protobuf from Bazel, and an external python library depends on protobuf==3.13.0 (or whatever). I'd like to replace that dependency with "@com_google_protobuf//:protobuf_python" instead, so I'm not mixing pypi and Bazel versions of protobuf.
Describe the solution you'd like
I like the way that rules_jvm_external has done it.
Describe alternatives you've considered
ø
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Can Close?Will close in 30 days if there is no new activityWill close in 30 days if there is no new activitytype: feature request