£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
3
Pf                  @   s~   d dl mZ d dlmZ d dlZd dlZd dlmZ d dlmZ d dl	m
Z
 d dlmZ ejeZdd	 Zd
d Zdd ZdS )    )absolute_import)
FeedParserN)
specifiers)version)pkg_resources)
exceptionsc             C   s>   | dkrdS t j| }tjdjtttjdd }||kS )aG  
    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.
    NT.   )	r   ZSpecifierSetr   parsejoinmapstrsysversion_info)requires_pythonZrequires_python_specifierZpython_version r   /usr/lib/python3.6/packaging.pycheck_requires_python   s
    

 r   c             C   s8   t | tjr | jdr | jdS | jdr4| jdS d S )NZMETADATAzPKG-INFO)
isinstancer   ZDistInfoDistributionZhas_metadataget_metadata)distr   r   r   r   %   s
    


r   c             C   s   t | }t }|j| |j }|jd}y8t|s`tjd| j|dj	t
ttjd d f W n8 tjk
r } ztjd| j||f  d S d }~X nX d S )NzRequires-Pythonz4%s requires Python '%s' but the running Python is %sr   r	   z7Package %s has an invalid Requires-Python entry %s - %s)r   r   Zfeedclosegetr   r   ZUnsupportedPythonVersionZproject_namer   r   r   r   r   r   ZInvalidSpecifierloggerZwarning)r   ZmetadataZfeed_parserZpkg_info_dictr   er   r   r   check_dist_requires_python-   s"    

$r   )Z
__future__r   Zemail.parserr   Zloggingr   Zpip._vendor.packagingr   r   Zpip._vendorr   Zpipr   Z	getLogger__name__r   r   r   r   r   r   r   r   <module>   s   
