????

Your IP : 216.73.216.152


Current Path : /usr/lib/python2.7/site-packages/pip/_internal/models/
Upload File :
Current File : //usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pyc

�
}�\]c@s�ddlZddlmZmZddlmZddlmZerwddlm	Z	m
Z
mZddlmZnde
fd��YZdS(	i����N(t
get_supportedtversion_info_to_nodot(tnormalize_version_info(tMYPY_CHECK_RUNNING(tListtOptionaltTuple(t	Pep425TagtTargetPythoncBs5eZdZddddd�Zd�Zd�ZRS(sx
    Encapsulates the properties of a Python interpreter one is targeting
    for a package install, download, etc.
    cCs�||_|dkr%tjd }nt|�}djtt|d ��}||_||_	||_
||_||_d|_
dS(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.
        it.iN(t_given_py_version_infotNonetsystversion_infoRtjointmaptstrtabitimplementationtplatformt
py_versiontpy_version_infot_valid_tags(tselfRRRRR((sA/tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pyt__init__s						cCs~d	}|jd	k	r4djd�|jD��}nd|jfd|fd|jfd|jfg}djd�|D��S(
sD
        Format the given, non-None attributes for display.
        R	css|]}t|�VqdS(N(R(t.0tpart((sA/tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pys	<genexpr>DsRR
RRt css3|])\}}|dk	rdj||�VqdS(s{}={!r}N(Rtformat(Rtkeytvalue((sA/tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pys	<genexpr>Ns	N(RR
RRRR(Rtdisplay_versiont
key_values((sA/tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pytformat_given<s	c	Csy|jdkrr|j}|dkr-d}nt|�g}td|d|jd|jd|j�}||_n|jS(s�
        Return the supported PEP 425 tags to check wheel candidates against.

        The tags are returned in order of preference (most preferred first).
        tversionsRRtimplN(RRR
RRRRR(RRR"ttags((sA/tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pytget_tagsRs				N(t__name__t
__module__t__doc__RRR!R%(((sA/tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pyRs$	(Rtpip._internal.pep425tagsRRtpip._internal.utils.miscRtpip._internal.utils.typingRttypingRRRRtobjectR(((sA/tmp/pip-install-ewDPok/pip/pip/_internal/models/target_python.pyt<module>s