Ñò
6»‚Uc           @   s]   d  d k  Z  d  d k Z d  d k l Z l Z d  d k i i Z d e i f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   productt   starmapt   install_libc           B   sn   e  Z d  Z d „  Z d „  Z d „  Z e d „  ƒ Z d „  Z e d „  ƒ Z	 d d d d d	 „ Z
 d
 „  Z RS(   s9   Don't add compiled flags to filenames of non-Python filesc         C   s8   |  i  ƒ  |  i ƒ  } | d  j	 o |  i | ƒ n d  S(   N(   t   buildt   installt   Nonet   byte_compile(   t   selft   outfiles(    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyt   run	   s    
c            sG   ‡  f d †  ˆ  i  ƒ  Dƒ } t | ˆ  i ƒ  ƒ } t t ˆ  i | ƒ ƒ S(   s—   
        Return a collections.Sized collections.Container of paths to be
        excluded for single_version_externally_managed installations.
        c         3   s3   x, |  ]% } x ˆ  i  | ƒ D] } | Vq Wq Wd  S(   N(   t   _all_packages(   t   .0t   ns_pkgt   pkg(   R   (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pys	   <genexpr>   s   	(   t   _get_SVEM_NSPsR    t   _gen_exclusion_pathst   setR   t   _exclude_pkg_path(   R   t   all_packagest
   excl_specs(    (   R   sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyt   get_exclusions   s    c         C   s,   | i  d ƒ | g } t i i |  i | Œ S(   sw   
        Given a package name and exclusion path within that package,
        compute the full exclusion path.
        t   .(   t   splitt   ost   patht   joint   install_dir(   R   R   t   exclusion_patht   parts(    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyR      s    c         c   s0   x) |  o! |  V|  i  d ƒ \ }  } } q Wd S(   sn   
        >>> list(install_lib._all_packages('foo.bar.baz'))
        ['foo.bar.baz', 'foo.bar', 'foo']
        R   N(   t
   rpartition(   t   pkg_namet   sept   child(    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyR
   &   s     c         C   s@   |  i  i p g  S|  i d ƒ } | i } | o |  i  i Sg  S(   s‰   
        Get namespace packages (list) but only for
        single_version_externally_managed installations and empty otherwise.
        R   (   t   distributiont   namespace_packagest   get_finalized_commandt!   single_version_externally_managed(   R   t   install_cmdt   svem(    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyR   0   s
    	c          c   sY   d Vd Vd Vt  t d ƒ p d St i i d d t i ƒ  ƒ }  |  d V|  d	 Vd S(
   sk   
        Generate file paths to be excluded for namespace packages (bytecode
        cache files).
        s   __init__.pys   __init__.pycs   __init__.pyot   get_tagNt   __pycache__s	   __init__.s   .pycs   .pyo(   t   hasattrt   impR   R   R   R'   (   t   base(    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyR   @   s    	i   i    c   	         s–   | o | o | p t  ‚ |  i ƒ  ‰ ˆ p t i i |  | | ƒ Sd d k l } d d k l ‰  g  ‰ ‡  ‡ ‡ f d †  } | | | | ƒ ˆ S(   Niÿÿÿÿ(   t   unpack_directory(   t   logc            sR   | ˆ j o ˆ  i  d | ƒ t Sˆ  i d |  t i i | ƒ ƒ ˆ i | ƒ | S(   Ns/   Skipping installation of %s (namespace package)s   copying %s -> %s(   t   warnt   Falset   infoR   R   t   dirnamet   append(   t   srct   dst(   R-   R   t   exclude(    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyt   pfd   s    	(	   t   AssertionErrorR   t   origR   t	   copy_treet   setuptools.archive_utilR,   t	   distutilsR-   (	   R   t   infilet   outfilet   preserve_modet   preserve_timest   preserve_symlinkst   levelR,   R6   (    (   R-   R   R5   sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyR9   S   s    
c         C   sZ   t  i i |  ƒ } |  i ƒ  } | o1 g  } | D] } | | j o | | q0 q0 ~ S| S(   N(   R8   R   t   get_outputsR   (   R   t   outputsR5   t   _[1]t   f(    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyRB   q   s
    1(   t   __name__t
   __module__t   __doc__R	   R   R   t   staticmethodR
   R   R   R9   RB   (    (    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyR      s   			
	(	   R   R*   t	   itertoolsR    R   t   distutils.command.install_libt   commandR   R8   (    (    (    sF   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install_lib.pyt   <module>   s   