Import .whl files into Bazel.
whl_library
whl_library(name, requirements, whl)
A rule for importing <code>.whl</code> dependencies into Bazel.
<b>This rule is currently used to implement <code>pip_import</code>, it is not intended to work standalone, and the interface may change.</b> See <code>pip_import</code> for proper usage.
This rule imports a <code>.whl</code> file as a <code>py_library</code>:
<pre><code>whl_library( name = "foo", whl = ":my-whl-file", requirements = "name of pip_import rule", ) </code></pre>This rule defines a <code>@foo//:pkg</code> <code>py_library</code> target.
Attributes
name |
A unique name for this rule. |
requirements |
The name of the pip_import repository rule from which to load this .whl's dependencies. |
whl |
The path to the .whl file (the name is expected to follow this convention) |