Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
WheelDistribution Class Reference
Inheritance diagram for WheelDistribution:
Collaboration diagram for WheelDistribution:

Public Member Functions

BaseDistribution get_metadata_distribution (self)
 
None prepare_distribution_metadata (self, PackageFinder finder, bool build_isolation, bool check_build_deps)
 
- Public Member Functions inherited from AbstractDistribution
None __init__ (self, InstallRequirement req)
 

Additional Inherited Members

- Data Fields inherited from AbstractDistribution
 req
 

Detailed Description

Represents a wheel distribution.

This does not need any preparation as wheels can be directly unpacked.

Definition at line 12 of file wheel.py.

Member Function Documentation

◆ get_metadata_distribution()

BaseDistribution get_metadata_distribution (   self)
Loads the metadata from the wheel file into memory and returns a
Distribution that uses it, not relying on the wheel file or
requirement.

Reimplemented from AbstractDistribution.

Definition at line 18 of file wheel.py.

18 def get_metadata_distribution(self) -> BaseDistribution:
19 """Loads the metadata from the wheel file into memory and returns a
20 Distribution that uses it, not relying on the wheel file or
21 requirement.
22 """
23 assert self.req.local_file_path, "Set as part of preparation during download"
24 assert self.req.name, "Wheels are never unnamed"
25 wheel = FilesystemWheel(self.req.local_file_path)
26 return get_wheel_distribution(wheel, canonicalize_name(self.req.name))
27

References AbstractDistribution.req, SourceDistribution.req, HashError.req, HashMissing.req, FrozenRequirement.req, InstallRequirement.req, VersionConflict.req(), and DistributionNotFound.req().

Here is the call graph for this function:

◆ prepare_distribution_metadata()

None prepare_distribution_metadata (   self,
PackageFinder  finder,
bool  build_isolation,
bool  check_build_deps 
)

Reimplemented from AbstractDistribution.

Definition at line 28 of file wheel.py.

33 ) -> None:
34 pass

The documentation for this class was generated from the following file: