ali5h / rules_pip

pip package rules for bazel that are fast (incremental fetch), support different python versions and work with all kinds of packages (i.e. packages with namespaces)
MIT License
60 stars 23 forks source link

Allow replacing pip dependencies with targets #67

Closed fahhem closed 2 years ago

fahhem commented 2 years ago

Certain packages require patches for their C++ extensions to work with bazel, or just in general for extra features. rules_pip can add a mechanism for applying patches and/or replacing BUILD files for dependencies, but I think it's best to allow users to use bazel's existing mechanisms and just defer to that.

Normally, users can just pull in a python package from pypi manually and use that, but if it's a dependency of another package, then rules_pip also pulls it in and risks multiple versions of the same dependency (or the same version but included from two paths).

ali5h commented 2 years ago

cool, would you add some test/example on this as well

fahhem commented 2 years ago

I added an example (and test)