Re @ s d d l Z d d l m Z m Z d d l m Z d d l m Z e rt d d l m Z m
Z
m Z d d l m
Z
Gd d d e Z d S) N)
get_supportedversion_info_to_nodot)normalize_version_info)MYPY_CHECK_RUNNING)ListOptionalTuple)Tagc @ sa e Z d Z d Z d d d d d d d g Z d d d d d
d Z d d
Z d d Z d S)TargetPythonzx
Encapsulates the properties of a Python interpreter one is targeting
for a package install, download, etc.
_given_py_version_infoabiimplementationplatform
py_versionpy_version_info_valid_tagsNc C s | | _ | d k r+ t j d d } n t | } d j t t | d d } | | _ | | _ | | _ | | _
| | _ d | _ d S)a'
:param platform: A string or None. If None, searches for packages
that are supported by the current system. Otherwise, will find
packages that can be built on the platform 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 abi: A string 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.
N . )
r sysversion_infor joinmapstrr r
r r r r )selfr r r r
r r /builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/target_python.py__init__! s " zTargetPython.__init__c C s d } | j d k r4 d j d d | j D } d | j f d | f d | j f d | j f g } d j d
d | D S)zD
Format the given, non-None attributes for display.
Nr c s s | ] } t | Vq d S)N)r ).0partr r r