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

Public Member Functions

None __init__ (self, InstallRequirement req)
 
BaseDistribution get_metadata_distribution (self)
 
None prepare_distribution_metadata (self, PackageFinder finder, bool build_isolation, bool check_build_deps)
 

Data Fields

 req
 

Detailed Description

A base class for handling installable artifacts.

The requirements for anything installable are as follows:

 - we must be able to determine the requirement name
   (or we can't correctly handle the non-upgrade case).

 - for packages with setup requirements, we must also be able
   to determine their requirements without installing additional
   packages (for the same reason as run-time dependencies)

 - we must be able to create a Distribution object exposing the
   above metadata.

Definition at line 8 of file base.py.

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self,
InstallRequirement  req 
)

Definition at line 24 of file base.py.

24 def __init__(self, req: InstallRequirement) -> None:
25 super().__init__()
26 self.req = req
27
for i

References AbstractDistribution.__init__(), and i.

Referenced by AbstractDistribution.__init__(), and Protocol.__init_subclass__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ get_metadata_distribution()

BaseDistribution get_metadata_distribution (   self)

Reimplemented in InstalledDistribution, SourceDistribution, and WheelDistribution.

Definition at line 29 of file base.py.

29 def get_metadata_distribution(self) -> BaseDistribution:
31

References i.

◆ prepare_distribution_metadata()

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

Reimplemented in InstalledDistribution, SourceDistribution, and WheelDistribution.

Definition at line 33 of file base.py.

38 ) -> None:

References i.

Field Documentation

◆ req


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