ó
>ò†[c           @   sY   d  d l  Z  d  d l Z d  d l m Z e e j d e j j ƒ Z d „  Z d „  Z	 d S(   iÿÿÿÿN(   t   patht   BytesParserc         C   s0   |  s
 g  Sg  |  j  d ƒ D] } | j ƒ  ^ q S(   Nt   ,(   t   splitt   strip(   t   package_spect   spec(    (    s_   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/inspect_package/r.pyt   parse_package_list   s    c         O   sÉ  t  j |  d | ƒ} t d „  | j ƒ  Dƒ ƒ } | j | ƒ } t t ƒ  j | ƒ j ƒ  ƒ } | j	 d ƒ } | j	 d ƒ }	 | j	 d d  ƒ }
 | j	 d d  ƒ } | j	 d d  ƒ } i  } | j d d	 ƒ | d <t | j d
 ƒ ƒ | d <t | j d ƒ ƒ | d <| j d ƒ } | rf| j d ƒ \ } } } } | j d ƒ } | | d <| j ƒ  | d <d | d <n
 d | d <i | d 6|
 d 6| d 6} i |	 d 6| d 6} i t j |  ƒ d 6| d 6} | | | f S(   Nt   fileobjc         s   s$   |  ] } | j  d  ƒ r | Vq d S(   s   /DESCRIPTIONN(   t   endswith(   t   .0t   name(    (    s_   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/inspect_package/r.pys	   <genexpr>   s    t   Packaget   Versiont   Titlet   Descriptiont   Licenset   NeedsCompilationt   not   Dependst   dependst   Suggestst   suggestst   Builtt   ;s   R t   Rt   ost   packaget   typet   sourceR   t   summaryt   licenset   versiont   descriptiont   basenamet   attrs(   t   tarfilet   opent   nextt   getnamest   extractfilet   dictt   Parsert   parset   itemst   popt   Nonet   getR   R   R   R    R"   (   t   filenameR   t   argst   kwargst   tft   pkg_infot   fdt	   raw_attrsR   R    R   R!   R   R#   t   builtt   rt   _t   datet   platformt	   r_versiont   package_datat   release_datat	   file_data(    (    s_   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/inspect_package/r.pyt   inspect_r_package   s>    





(
   R$   t   email.parsert   emailR   R    t   getattrt   parserR*   R   R@   (    (    (    s_   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/inspect_package/r.pyt   <module>   s
   		