Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
pip._internal.models.target_python.TargetPython Class Reference

Public Member Functions

None __init__ (self, Optional[List[str]] platforms=None, Optional[Tuple[int,...]] py_version_info=None, Optional[List[str]] abis=None, Optional[str] implementation=None)
 
str format_given (self)
 
List[Tagget_sorted_tags (self)
 
Set[Tagget_unsorted_tags (self)
 

Public Attributes

 abis
 
 implementation
 
 platforms
 
 py_version
 
 py_version_info
 

Protected Attributes

 _given_py_version_info
 
 _valid_tags
 
 _valid_tags_set
 

Detailed Description

Encapsulates the properties of a Python interpreter one is targeting
for a package install, download, etc.

Constructor & Destructor Documentation

◆ __init__()

None pip._internal.models.target_python.TargetPython.__init__ (   self,
Optional[List[str]]   platforms = None,
Optional[Tuple[int, ...]]   py_version_info = None,
Optional[List[str]]   abis = None,
Optional[str]   implementation = None 
)
:param platforms: A list of strings or None. If None, searches for
    packages that are supported by the current system. Otherwise, will
    find packages that can be built on the platforms passed in. These
    packages will only be downloaded for distribution: they will
    not be built locally.
:param py_version_info: An optional tuple of ints representing the
    Python version information to use (e.g. `sys.version_info[:3]`).
    This can have length 1, 2, or 3 when provided.
:param abis: A list of strings or None. This is passed to
    compatibility_tags.py's get_supported() function as is.
:param implementation: A string or None. This is passed to
    compatibility_tags.py's get_supported() function as is.

Member Function Documentation

◆ format_given()

str pip._internal.models.target_python.TargetPython.format_given (   self)
Format the given, non-None attributes for display.

◆ get_sorted_tags()

List[Tag] pip._internal.models.target_python.TargetPython.get_sorted_tags (   self)
Return the supported PEP 425 tags to check wheel candidates against.

The tags are returned in order of preference (most preferred first).

◆ get_unsorted_tags()

Set[Tag] pip._internal.models.target_python.TargetPython.get_unsorted_tags (   self)
Exactly the same as get_sorted_tags, but returns a set.

This is important for performance.

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