???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................ó
•abc           @@  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 „  Z d	 „  Z d
 „  Z d S(   i    (   t   absolute_import(   t
   FeedParserN(   t
   specifiers(   t   version(   t   pkg_resources(   t
   exceptionsc         C@  sQ   |  d k r t St j |  ƒ } t j d j t t t	 j
 d  ƒ ƒ ƒ } | | k S(   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   .i   N(   t   Nonet   TrueR   t   SpecifierSetR   t   parset   joint   mapt   strt   syst   version_info(   t   requires_pythont   requires_python_specifiert   python_version(    (    s7   /usr/lib/python2.7/site-packages/pip/utils/packaging.pyt   check_requires_python   s
    
(c         C@  sN   t  |  t j ƒ r. |  j d ƒ r. |  j d ƒ S|  j d ƒ rJ |  j d ƒ Sd  S(   Nt   METADATAs   PKG-INFO(   t
   isinstanceR   t   DistInfoDistributiont   has_metadatat   get_metadata(   t   dist(    (    s7   /usr/lib/python2.7/site-packages/pip/utils/packaging.pyR   %   s
    c      	   C@  sÃ   t  |  ƒ } t ƒ  } | j | ƒ | j ƒ  } | j d ƒ } yK t | ƒ s‡ t j d |  j | d j	 t
 t t j d  ƒ ƒ f ƒ ‚ n  Wn4 t j k
 r¾ } t j d |  j | | f ƒ d  SXd  S(   Ns   Requires-Pythons4   %s requires Python '%s' but the running Python is %sR   i   s7   Package %s has an invalid Requires-Python entry %s - %s(   R   R   t   feedt   closet   getR   R   t   UnsupportedPythonVersiont   project_nameR   R   R   R   R   R   t   InvalidSpecifiert   loggert   warning(   R   t   metadatat   feed_parsert   pkg_info_dictR   t   e(    (    s7   /usr/lib/python2.7/site-packages/pip/utils/packaging.pyt   check_dist_requires_python-   s"    	-(   t
   __future__R    t   email.parserR   t   loggingR   t   pip._vendor.packagingR   R   t   pip._vendorR   t   pipR   t	   getLoggert   __name__R    R   R   R&   (    (    (    s7   /usr/lib/python2.7/site-packages/pip/utils/packaging.pyt   <module>   s   		