Your IP : 18.224.44.233


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

�
�Rec@@s�ddlmZddlZddlmZddlmZddlmZm	Z	ddl
mZddlm
Z
ddlmZer�dd	lmZmZdd
lmZddlmZneje�Zd�Zd
�Zd�Zd�ZdS(i(tabsolute_importN(t
FeedParser(t
pkg_resources(t
specifierstversion(tNoneMetadataError(tdisplay_path(tMYPY_CHECK_RUNNING(tOptionaltTuple(tMessage(tDistributioncC@sJ|dkrtStj|�}tjdjtt|���}||kS(s�
    Check if the given Python version matches a "Requires-Python" specifier.

    :param version_info: A 3-tuple of ints representing a Python
        major-minor-micro version to check (e.g. `sys.version_info[:3]`).

    :return: `True` if the given Python version satisfies the requirement.
        Otherwise, return `False`.

    :raises InvalidSpecifier: If `requires_python` has an invalid format.
    t.N(	tNonetTrueRtSpecifierSetRtparsetjointmaptstr(trequires_pythontversion_infotrequires_python_specifiertpython_version((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/packaging.pytcheck_requires_pythons

!cC@s�d}t|tj�r9|j|�r9|j|�}nF|jd�r`d}|j|�}ntjdt|j��d}|dkr�t
||��nt�}|j|�|j
�S(s�
    :raises NoneMetadataError: if the distribution reports `has_metadata()`
        True but `get_metadata()` returns None.
    tMETADATAsPKG-INFOsNo metadata found in %stN(t
isinstanceRtDistInfoDistributionthas_metadatatget_metadatatloggertwarningRtlocationR
RRtfeedtclose(tdistt
metadata_nametmetadatatfeed_parser((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/packaging.pyR,s	
cC@s:t|�}|jd�}|dk	r6t|�}n|S(s_
    Return the "Requires-Python" metadata for a distribution, or None
    if not present.
    sRequires-PythonN(RtgetR
R(R$t
pkg_info_dictR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/packaging.pytget_requires_pythonGs
cC@sF|jd�rBx0|jd�D]}|j�r|j�SqWndS(Nt	INSTALLERR(Rtget_metadata_lineststrip(R$tline((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/packaging.pyt
get_installerXs
(t
__future__Rtloggingtemail.parserRtpip._vendorRtpip._vendor.packagingRRtpip._internal.exceptionsRtpip._internal.utils.miscRtpip._internal.utils.typingRttypingRR	t
email.messageR
tpip._vendor.pkg_resourcesRt	getLoggert__name__RRRR*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/utils/packaging.pyt<module>s 			

?>