ok

Mini Shell

Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/
Upload File :
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/packaging.pyc

�
Bu�_c@@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((sN/opt/alt/python36/lib/python3.6/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((sN/opt/alt/python36/lib/python3.6/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((sN/opt/alt/python36/lib/python3.6/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((sN/opt/alt/python36/lib/python3.6/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/(((sN/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/packaging.pyt<module>s 			

Zerion Mini Shell 1.0