????
| Current Path : /usr/lib/python2.7/site-packages/pip/_internal/models/ |
| Current File : //usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pyc |
�
}�\]c @ s� d d l Z d d l m Z m Z d d l m Z d d l m Z e rw d d l m Z m
Z
m Z d d l m Z n d e
f d � � YZ d S( i����N( t
get_supportedt version_info_to_nodot( t normalize_version_info( t MYPY_CHECK_RUNNING( t Listt Optionalt Tuple( t Pep425Tagt TargetPythonc B s5 e Z d Z d d d d d � Z d � Z d � Z RS( sx
Encapsulates the properties of a Python interpreter one is targeting
for a package install, download, etc.
c C s� | | _ | d k r% t j d } n t | � } d j t t | d � � } | | _ | | _ | | _
| | _ | | _ d | _
d S( s
: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 pep425tags.py's
get_supported() function as is.
:param implementation: A string or None. This is passed to
pep425tags.py's get_supported() function as is.
i t .i N( t _given_py_version_infot Nonet syst version_infoR t joint mapt strt abit implementationt platformt
py_versiont py_version_infot _valid_tags( t selfR R R R R ( ( sA /tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pyt __init__ s c C s~ d } | j d k r4 d j d � | j D� � } n d | j f d | f d | j f d | j f g } d j d � | D� � S(
sD
Format the given, non-None attributes for display.
R c s s | ] } t | � Vq d S( N( R ( t .0t part( ( sA /tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pys <genexpr>D s R R
R R t c s s3 | ]) \ } } | d k r d j | | � Vq d S( s {}={!r}N( R t format( R t keyt value( ( sA /tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pys <genexpr>N s N( R R
R R R R ( R t display_versiont
key_values( ( sA /tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pyt format_given<