Ņō
b-äQc        	   @   st   d  d k  l Z d  d k l Z d  d k l Z l Z d  d k Z d  d k Z d  d k	 Z	 d e f d     YZ
 d S(   i˙˙˙˙(   t   Command(   t   unpack_archive(   t   logt   dir_utilNt   install_egg_infoc           B   s\   e  Z d  Z d  Z d g Z d   Z d   Z d   Z d   Z d   Z	 d	   Z
 d
   Z RS(   s.   Install an .egg-info directory for the packages   install-dir=t   ds   directory to install toc         C   s   d  |  _ d  S(   N(   t   Nonet   install_dir(   t   self(    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyt   initialize_options   s    c         C   s   |  i  d d  |  i d  } t i d  d  | i | i  i   d } | i |  _ t	 i
 i |  i |  |  _ |  i g |  _ d  S(   Nt   install_libR   t   egg_infos	   .egg-info(   s   install_dirs   install_dir(   t   set_undefined_optionst   get_finalized_commandt   pkg_resourcest   DistributionR   t   egg_namet   egg_versionR   t   sourcet   ost   patht   joinR   t   targett   outputs(   R   t   ei_cmdt   basename(    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyt   finalize_options   s    c         C   sī   |  i  d  |  i } t i i |  i  o4 t i i |  i  o t i |  i d |  i n> t i i	 |  i  o' |  i
 t i |  i f d |  i  n |  i p t i |  i  n |  i
 |  i d d |  i |  i f  |  i   d  S(   NR   t   dry_runs	   Removing s   Copying %s to %s(    (   t   run_commandR   R   R   t   isdirt   islinkR   t   remove_treeR   t   existst   executet   unlinkR   t   ensure_directoryt   copytreeR   t   install_namespaces(   R   R   (    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyt   run   s    	-'
c         C   s   |  i  S(   N(   R   (   R   (    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyt   get_outputs*   s    c            s)     f d   } t    i   i |  d  S(   Nc            s^   x4 d D], } |  i  |  p d | |  j o d  Sq W  i i |  t i d |  |  | S(   Ns   .svn/s   CVS/t   /s   Copying %s to %s(   s   .svn/s   CVS/(   t
   startswithR   R   t   appendR   t   debug(   t   srct   dstt   skip(   R   (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyt   skimmer/   s     !	(   R   R   R   (   R   R/   (    (   R   s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyR$   -   s    
c         C   s  |  i    } | p d  St i i |  i  \ } } | d 7} |  i i |  t i d |  |  i	 p t
 | d  } x{ | D]s } t |  } t | i d   } d } d | j o% d d i | d   | d f } n | i d t    q} W| i   n d  S(	   Ns
   -nspkg.pths   Installing %st   wtt   .s   
s(   ; m and setattr(sys.modules[%r], %r, m)
i˙˙˙˙s7  import sys,types,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *%(pth)r); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault(%(pkg)r,types.ModuleType(%(pkg)r)); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)%(trailer)s(   t   _get_all_ns_packagesR   R   t   splitextR   R   R*   R   t   infoR   t   opent   strt   tuplet   splitR   t   writet   localst   close(   R   t   nspt   filenamet   extt   ft   pkgt   ptht   trailer(    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyR%   S   s*     
 
 "c         C   sy   h  } xV |  i  i p g  D]A } | i d  } x) | o! d | d i |  <| i   q2 Wq Wt |  } | i   | S(   NR1   i   (   t   distributiont   namespace_packagesR8   R   t   popt   listt   sort(   R   R<   R@   (    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyR2   r   s      
(   s   install-dir=R   s   directory to install to(   t   __name__t
   __module__t   __doc__t   descriptiont   user_optionsR	   R   R&   R'   R$   R%   R2   (    (    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyR      s   			
			&	(   t
   setuptoolsR    t   setuptools.archive_utilR   t	   distutilsR   R   R   t   shutilR   R   (    (    (    s_   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_egg_info.pyt   <module>   s   $