Ńň
¤ľGc           @   s    d  d k  l Z d  d k l Z d  d k l Z l Z l Z d  d k l	 Z	 d  d k
 Td  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_path(   t   Distributiont   PathMetadatat   normalize_path(   t   log(   t   *Nt   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(    (    sJ   C:\graphics\Tools\Python26\Lib\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   (    (    sJ   C:\graphics\Tools\Python26\Lib\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	 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_infot   DistutilsErrorR   t   egg_namet   argsR    t   finalize_optionst   package_indext   scant   globt   ost   patht   joint   install_dirt   egg_linkt   egg_baseR   R   t   abspathR   t   DistutilsOptionErrorR   R   t   distt   replacet   sept   curdirt   countR   (   R   t   eit   targett   p(    (    sJ   C:\graphics\Tools\Python26\Lib\site-packages\setuptools\command\develop.pyR   *   s<    
"(	$c         C   sÚ   |  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(   NR   t	   build_extt   inplacei   s   Creating %s (link to %s)t   ws   
(   t   run_commandt   reinitialize_commandt   install_site_pyt
   setuptoolst   bootstrap_install_fromR    R   R   t   infoR'   R(   t   dry_runt   opent   writeR   R   t   closet   process_distributionR+   t   no_deps(   R   t   f(    (    sJ   C:\graphics\Tools\Python26\Lib\site-packages\setuptools\command\develop.pyR   S   s    


c         C   sű   t  i i |  i  oĽ t i d |  i |  i  g  } t |  i  D] } | | i   qC ~ } | |  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   R;   R(   t   filet   rstripR   R   t   warnR<   t   unlinkt
   update_pthR+   t   distributiont   scripts(   R   t   _[1]t   linet   contents(    (    sJ   C:\graphics\Tools\Python26\Lib\site-packages\setuptools\command\develop.pyR   i   s    0%

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_scriptsRI   RJ   R#   R$   R)   R   t   basenameR=   t   readR?   t   install_script(   R   R+   t   script_namet   script_pathRB   t   script_text(    (    sJ   C:\graphics\Tools\Python26\Lib\site-packages\setuptools\command\develop.pyRO   |   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_optionst   Falset   command_consumes_argumentsR   R   R   R   R   RO   (    (    (    sJ   C:\graphics\Tools\Python26\Lib\site-packages\setuptools\command\develop.pyR      s   
			)		(   t   setuptools.command.easy_installR    t   distutils.utilR   t   pkg_resourcesR   R   R   t	   distutilsR   t   distutils.errorst   sysR#   R9   R"   R   (    (    (    sJ   C:\graphics\Tools\Python26\Lib\site-packages\setuptools\command\develop.pyt   <module>   s   
0