Import .whl files into Bazel.
A rule for importing
.whl dependencies into Bazel.
This rule is currently used to implement
pip_import. It is not intended to
work standalone, and the interface may change. See
pip_import for proper
This rule imports a
.whl file as a
whl_library( name = "foo", whl = ":my-whl-file", requirements = "name of pip_import rule", )
This rule defines
@foo//:pkg as a
A unique name for this repository.
A subset of the "extras" available from this
.whl for which
requirements has the dependencies.
The command to run the Python interpreter used when unpacking the wheel.
A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.
For example, an entry
"@foo": "@bar" declares that, for any time this repository depends on
@foo (such as a dependency on
@foo//some:target, it should actually resolve that dependency within globally-declared
The name of the
pip_import repository rule from which to load this
The path to the
.whl file. The name is expected to follow this