//python/private/pypi:whl_library.bzl

whl_library(name, repo=None, **kwargs)

Create a whl_library.

This proxies to one of the underlying implementations:

URL wheels are downloaded temporarily for extraction, then removed. A sibling <name>_whl repository supplies the original archive lazily, when a wheel target is requested. Extraction does not depend on it. Matching patches are applied in the wheel-file repository instead; extraction and wheel targets then consume the same patched archive.

Args:
  • name – (str)

    The name of the repo.

  • repo – (default None)

    Unused, will be dropped in the next major release.

  • kwargs – The args passed to the underlying implementation.

Returns:

the repo metadata.