|
|
None | __init__ (self, Mapping[pathlib.PurePosixPath, bytes] files, pathlib.PurePosixPath info_location) |
| |
|
"WheelDistribution" | from_zipfile (cls, zipfile.ZipFile zf, str name, str location) |
| |
|
Iterator[pathlib.PurePosixPath] | iterdir (self, InfoPath path) |
| |
|
Optional[str] | read_text (self, str filename) |
| |
An ``importlib.metadata.Distribution`` read from a wheel.
Although ``importlib.metadata.PathDistribution`` accepts ``zipfile.Path``,
its implementation is too "lazy" for pip's needs (we can't keep the ZipFile
handle open for the entire lifetime of the distribution object).
This implementation eagerly reads the entire metadata directory into the
memory instead, and operates from that.