OpenQuizz
Une application de gestion des contenus pédagogiques
TargetPython Class Reference

Public Member Functions

def __init__ (self, platforms=None, py_version_info=None, abis=None, implementation=None)
 
def format_given (self)
 
def get_tags (self)
 

Data Fields

 abis
 
 implementation
 
 platforms
 
 py_version
 
 py_version_info
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  platforms = None,
  py_version_info = None,
  abis = None,
  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()

def format_given (   self)
Format the given, non-None attributes for display.

◆ get_tags()

def get_tags (   self)
Return the supported PEP 425 tags to check wheel candidates against.

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

Field Documentation

◆ abis

abis

◆ implementation

implementation

◆ platforms

platforms

◆ py_version

py_version

◆ py_version_info

py_version_info

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