ó
©9Vc           @   sU   d  Z  d d l Z d d l Z d d l j Z d d l j j Z d „  Z	 d „  Z
 d S(   sJ   
Installation paths.

Map the .data/ subdirectory names to install paths.
iÿÿÿÿNc         C   s3   t  j i |  d 6ƒ } t j | ƒ } | j ƒ  | S(   Nt   name(   t   distt   Distributiont   installt   finalize_options(   R    t   dt   i(    (    s*   /tmp/pip-build-5Z5nTX/wheel/wheel/paths.pyt   get_install_command   s    
c         C   sƒ   i  } t  |  ƒ } x( t j D] } t | d | ƒ | | <q Wt t d ƒ r t j j t j	 d d d t j
 d  |  ƒ | d <n  | S(   s’   
    Return the (distutils) install paths for the named dist.
    
    A dict with ('purelib', 'platlib', 'headers', 'scripts', 'data') keys.
    t   install_t   real_prefixt   includet   sitet   pythoni   t   headers(   R   R   t   SCHEME_KEYSt   getattrt   hasattrt   syst   ost   patht   joint   prefixt   version(   R    t   pathsR   t   key(    (    s*   /tmp/pip-build-5Z5nTX/wheel/wheel/paths.pyt   get_install_paths   s    (   t   __doc__t   os.pathR   R   t   distutils.distR   t   distutils.command.installt   commandR   R   R   (    (    (    s*   /tmp/pip-build-5Z5nTX/wheel/wheel/paths.pyt   <module>   s   	