Ņō
b-äQc           @   sē   d  d k  l Z d  d k l Z l Z d  d k l Z l Z 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  d k Z d e f d     YZ d S(	   iĸĸĸĸ(   t   easy_install(   t   convert_patht
   subst_vars(   t   Distributiont   PathMetadatat   normalize_path(   t   log(   t   DistutilsErrort   DistutilsOptionErrorNt   developc           B   ss   e  Z d  Z d Z e i d d g Z e i d g Z e Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z RS(   s   Set up package for developments%   install package in 'development mode't	   uninstallt   us   Uninstall this source packages	   egg-path=s-   Set the path to be used in the .egg-link filec         C   s9   |  i  o t |  _ |  i   n |  i   |  i   d  S(   N(   R
   t   Truet   multi_versiont   uninstall_linkt   install_for_developmentt   warn_deprecated_options(   t   self(    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyt   run   s
    
	
c         C   s5   d  |  _ d  |  _ t i |   d  |  _ d |  _ d  S(   Nt   .(   t   NoneR
   t   egg_pathR    t   initialize_optionst
   setup_patht   always_copy_from(   R   (    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyR      s
    			c         C   s  |  i  d  } | i o  t d | i | i f   n | i g |  _ t i |   |  i   |  i	   |  i
 i t i d   t i i |  i | i d  |  _ | i |  _ |  i d  j o t i i | i  |  _ n t |  i  } t t i i |  i |  i   | j o t d |   n t | t | t i i | i   d | i |  _ |  i i t i d  } | t i j o d | i d  d	 } n | |  _ t t i i |  i |  i |   } | t t i  j o t d
 | t t i    n d  S(   Nt   egg_infos-   Please rename %r to %r before using 'develop's   *.eggs	   .egg-linksA   --egg-path must be a relative path from the install directory to t   project_namet   /s   ../i   sG   Can't get a consistent path to setup script from installation directory(    t   get_finalized_commandt   broken_egg_infoR   R   t   egg_namet   argsR    t   finalize_optionst   expand_basedirst   expand_dirst   package_indext   scant   globt   ost   patht   joint   install_dirt   egg_linkt   egg_baseR   R   t   abspathR   R   R   R   t   distt   replacet   sept   curdirt   countR   (   R   t   eit   targett   p(    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyR    '   s@    


"(	$c         C   sū  t  i d j oÔ t |  i d t  oū |  i d d d |  i d  |  i d  } t | i	  } |  i d d | |  i d  |  i d d d |  i d  |  i d  } | |  _
 | |  i _ t | | i  |  i _ n. |  i d  |  i d d d	 |  i d  |  i   t i o |  i t i  d  t _ n t i d
 |  i |  i  |  i p; t |  i d  } | i |  i
 d |  i  | i   n |  i d  |  i |  i  d  S(   Ni   t   use_2to3t   build_pyt   inplacei    R   R+   t	   build_exti   s   Creating %s (link to %s)t   ws   
(   i   (    t   syst   version_infot   getattrt   distributiont   Falset   reinitialize_commandt   run_commandR   R   t	   build_libR   R-   t   locationR   R   t	   _providert   install_site_pyt
   setuptoolst   bootstrap_install_fromR    R   R   t   infoR*   R+   t   dry_runt   opent   writeR   t   closet   process_distributiont   no_deps(   R   t   bpy_cmdt
   build_patht   ei_cmdt   f(    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyR   V   s4    &	


c         C   s  t  i i |  i  oĩ t i d |  i |  i  t |  i  } g  } | D] } | | i   qI ~ } | i	   | |  i
 g |  i
 |  i g f j o t i d |  d  S|  i p t  i |  i  qË n |  i p |  i |  i  n |  i i o t i d  n d  S(   Ns   Removing %s (link to %s)s$   Link points to %s: uninstall aborteds5   Note: you must uninstall or replace scripts manually!(   R&   R'   t   existsR*   R   RG   R+   RI   t   rstripRK   R   R   t   warnRH   t   unlinkt
   update_pthR-   R=   t   scripts(   R   t   egg_link_filet   _[1]t   linet   contents(    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyR      s    '
%

c         C   sĩ   | |  i  j	 o t i |  |  S|  i |  x |  i i p g  D]k } t i i t	 |   } t i i
 |  } t | d  } | i   } | i   |  i | | | |  qB Wd  S(   Nt   rU(   R-   R    t   install_egg_scriptst   install_wrapper_scriptsR=   RW   R&   R'   R,   R   t   basenameRI   t   readRK   t   install_script(   R   R-   t   script_namet   script_pathRQ   t   script_text(    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyR]      s     
(   s	   uninstallR   s   Uninstall this source packageN(   s	   egg-path=Ns-   Set the path to be used in the .egg-link file(   t   __name__t
   __module__t   __doc__t   descriptionR    t   user_optionsR   t   boolean_optionsR>   t   command_consumes_argumentsR   R   R    R   R   R]   (    (    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyR	      s   
				/	.	(   t   setuptools.command.easy_installR    t   distutils.utilR   R   t   pkg_resourcesR   R   R   t	   distutilsR   t   distutils.errorsR   R   R&   R:   RE   R%   R	   (    (    (    sV   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/develop.pyt   <module>   s   0