Your IP : 18.218.219.11


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyc

�
�Rec@sudZddlZddlmZddlmZddlmZer[ddlm	Z	nde
fd��YZdS(	s`Represents a wheel file and provides access to the various parts of the
name that have meaning.
i����N(tTag(tInvalidWheelFilename(tMYPY_CHECK_RUNNING(tListtWheelcBsGeZdZejdej�Zd�Zd�Zd�Z	d�Z
RS(sA wheel files�^(?P<namever>(?P<name>.+?)-(?P<ver>.*?))
        ((-(?P<build>\d[^-]*?))?-(?P<pyver>.+?)-(?P<abi>.+?)-(?P<plat>.+?)
        \.whl|\.dist-info)$cs��jj|�}|s0tdj|���n|�_|jd�jdd��_|jd�jdd��_|jd��_	|jd�j
d��_|jd	�j
d��_|jd
�j
d��_
�fd��jD��_dS(
sX
        :raises InvalidWheelFilename: when the filename is invalid for a wheel
        s!{} is not a valid wheel filename.tnamet_t-tvertbuildtpyvert.tabitplatcsBh|]8}�jD](}�jD]}t|||��q qqS((tabistplatsR(t.0txtytz(tself(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pys	<setcomp>/s	N(t
wheel_file_retmatchRtformattfilenametgrouptreplaceRtversiont	build_tagtsplitt
pyversionsRRt	file_tags(RRt
wheel_info((Rs�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyt__init__s	cCstd�|jD��S(s4Return the wheel's tags as a sorted list of strings.css|]}t|�VqdS(N(tstr(Rttag((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pys	<genexpr>6s(tsortedR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pytget_formatted_file_tags3scst�fd�|jD��S(s�Return the lowest index that one of the wheel's file_tag combinations
        achieves in the given list of supported tags.

        For example, if there are 8 supported tags and one of the file tags
        is first in the list, then return 0.

        :param tags: the PEP 425 tags to check the wheel against, in order
            with most preferred first.

        :raises ValueError: If none of the wheel's file tags match one of
            the supported tags.
        c3s*|] }|�kr�j|�VqdS(N(tindex(RR#(ttags(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pys	<genexpr>Fs(tminR(RR'((R's�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pytsupport_index_min8scCs|jj|�S(s�Return whether the wheel is compatible with one of the given tags.

        :param tags: the PEP 425 tags to check the wheel against.
        (Rt
isdisjoint(RR'((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyt	supportedHs(t__name__t
__module__t__doc__tretcompiletVERBOSERR!R%R)R+(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyRs			(R.R/tpip._vendor.packaging.tagsRtpip._internal.exceptionsRtpip._internal.utils.typingRttypingRtobjectR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyt<module>s

?>