AlkantarClanX12

Your IP : 18.217.118.7


Current Path : /lib/python2.7/site-packages/pip/utils/
Upload File :
Current File : //lib/python2.7/site-packages/pip/utils/packaging.pyo

�
��abc@@s�ddlmZddlmZddlZddlZddlmZddlmZddl	m
Z
ddlmZej
e�Zd�Zd	�Zd
�ZdS(i(tabsolute_import(t
FeedParserN(t
specifiers(tversion(t
pkg_resources(t
exceptionscC@sQ|dkrtStj|�}tjdjttt	j
d ���}||kS(sG
    Check if the python version in use match the `requires_python` specifier.

    Returns `True` if the version of python in use matches the requirement.
    Returns `False` if the version of python in use does not matches the
    requirement.

    Raises an InvalidSpecifier if `requires_python` have an invalid format.
    t.iN(tNonetTrueRtSpecifierSetRtparsetjointmaptstrtsystversion_info(trequires_pythontrequires_python_specifiertpython_version((s7/usr/lib/python2.7/site-packages/pip/utils/packaging.pytcheck_requires_pythons

(cC@sNt|tj�r.|jd�r.|jd�S|jd�rJ|jd�SdS(NtMETADATAsPKG-INFO(t
isinstanceRtDistInfoDistributionthas_metadatatget_metadata(tdist((s7/usr/lib/python2.7/site-packages/pip/utils/packaging.pyR%s

c	C@s�t|�}t�}|j|�|j�}|jd�}yKt|�s�tjd|j|dj	t
ttj
d ��f��nWn4tjk
r�}tjd|j||f�dSXdS(NsRequires-Pythons4%s requires Python '%s' but the running Python is %sRis7Package %s has an invalid Requires-Python entry %s - %s(RRtfeedtclosetgetRRtUnsupportedPythonVersiontproject_nameRRR
RRRtInvalidSpecifiertloggertwarning(Rtmetadatatfeed_parsert
pkg_info_dictRte((s7/usr/lib/python2.7/site-packages/pip/utils/packaging.pytcheck_dist_requires_python-s"	
-(t
__future__Rtemail.parserRtloggingRtpip._vendor.packagingRRtpip._vendorRtpipRt	getLoggert__name__R RRR&(((s7/usr/lib/python2.7/site-packages/pip/utils/packaging.pyt<module>s