rules_python
rules_python copied to clipboard
refactor(whl_library): split out a whl_archive library
Before this PR users would need to download unused dependencies to just extract
the wheels. The minimum list of deps are - packaging and installer for our
whl_installer tool to properly work. This also means that we could not
dogfood our whl_installer tool in the pip-tools implementation.
With this PR we start using whl_archive which just patches, extracts the
wheel and parses METADATA where possible and this is the first step towards
separating how sdists are treated.
Summary:
- refactor: split out whl_archive_impl function for just whls
- refactor: make the implementation of the 'whl_archive' more minimal
- use
whl_archivein internal deps - use a
py_libraryinpip_compilerule. - remove unused attrs from 'whl_archive'