rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Use bazel's downloader for downloading pip packages

Open cameron-martin opened this issue 2 years ago • 1 comments

🚀 feature request

Relevant Rules

The relevant rule is whl_library.

Description

Currently whl_library downloads pip packages by executing a python script. However this bypasses bazel's downloader, causing us to lose a few nice features such as:

  • The ability to rewrite these urls to a mirror by using --experimental_downloader_config.
  • Sharing the downloader cache between machines to speed up downloads.

Describe the solution you'd like

It would be nice to use bazel's downloader for these, by using repository_ctx.download.

Describe alternatives you've considered

Not doing this and keeping it like it is, I suppose.

cameron-martin avatar Aug 02 '23 16:08 cameron-martin

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

github-actions[bot] avatar Jan 29 '24 22:01 github-actions[bot]