Your IP : 216.73.217.17


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

�
��Eac@s�ddlZddlmZmZddlmZddlmZerwddlm	Z	m
Z
mZddlm
Z
ndefd��YZdS(	i����N(t
get_supportedtversion_info_to_nodot(tnormalize_version_info(tMYPY_CHECK_RUNNING(tListtOptionaltTuple(tTagtTargetPythoncBsPeZdZdddddddgZddddd�Zd	�Zd
�ZRS(sx
    Encapsulates the properties of a Python interpreter one is targeting
    for a package install, download, etc.
    t_given_py_version_infotabistimplementationt	platformst
py_versiontpy_version_infot_valid_tagscCs�||_|dkr%tjd }nt|�}djtt|d ��}||_||_	||_
||_||_d|_
dS(s<
        :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.
        it.iN(R	tNonetsystversion_infoRtjointmaptstrR
RRR
RR(tselfRRR
RR
((sF/usr/lib/python2.7/site-packages/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.
        Rcss|]}t|�VqdS(N(R(t.0tpart((sF/usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pys	<genexpr>OsRRR
Rt css3|])\}}|dk	rdj||�VqdS(s{}={!r}N(Rtformat(Rtkeytvalue((sF/usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pys	<genexpr>Ys	N(RR	RRR
R(Rtdisplay_versiont
key_values((sF/usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pytformat_givenGs	c	Csv|jdkro|j}|dkr-d}nt|�}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).
        tversionRR
timplN(RRR	RRRR
R(RRR"ttags((sF/usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pytget_tags]s				N(t__name__t
__module__t__doc__t	__slots__RRR!R%(((sF/usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pyR
s	$	(Rt&pip._internal.utils.compatibility_tagsRRtpip._internal.utils.miscRtpip._internal.utils.typingRttypingRRRtpip._vendor.packaging.tagsRtobjectR(((sF/usr/lib/python2.7/site-packages/pip/_internal/models/target_python.pyt<module>s