Ńň
b-äQc           @   sb   d  d k  l Z d  d k l Z l Z l Z d  d k Z d  d k l	 Z	 d e f d     YZ d S(   i˙˙˙˙(   t   install_scripts(   t   Distributiont   PathMetadatat   ensure_directoryN(   t   logR    c           B   s,   e  Z d  Z d   Z d   Z d d  Z RS(   s;   Do normal script install, plus any egg_info wrapper scriptsc         C   s   t  i |   t |  _ d  S(   N(   t   _install_scriptst   initialize_optionst   Falset   no_ep(   t   self(    (    s^   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_scripts.pyR   
   s    c   	      C   s	  d d k  l } d d k  l } |  i d  |  i i o t i |   n
 g  |  _ |  i	 o d  S|  i
 d  } t | i t | i | i  | i | i  } |  i
 d  } t | d |  } t |  i
 d  d t  } x' | | | |  D] } |  i |   qî Wd  S(	   Ni˙˙˙˙(   t   get_script_args(   t   sys_executablet   egg_infot   build_scriptst
   executablet   bdist_wininstt   _is_running(   t   setuptools.command.easy_installR
   R   t   run_commandt   distributiont   scriptsR   t   runt   outfilesR   t   get_finalized_commandR   t   egg_baseR   R   t   egg_namet   egg_versiont   getattrR   t   write_script(	   R	   R
   R   t   ei_cmdt   distt   bs_cmdR   t
   is_wininstt   args(    (    s^   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_scripts.pyR      s&    	
 t   tc   
      G   s´   d d k  l } l } t i d | |  i  t i i |  i |  } |  i	 i
 |  |   } |  i pI t |  t | d |  }	 |	 i |  |	 i   | | d |  n d S(   s1   Write an executable file to the scripts directoryi˙˙˙˙(   t   chmodt   current_umasks   Installing %s script to %st   wi˙  N(   R   R#   R$   R   t   infot   install_dirt   ost   patht   joinR   t   appendt   dry_runR   t   opent   writet   close(
   R	   t   script_namet   contentst   modet   ignoredR#   R$   t   targett   maskt   f(    (    s^   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_scripts.pyR   (   s    	


(   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    s^   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_scripts.pyR       s   		(
   t!   distutils.command.install_scriptsR    R   t   pkg_resourcesR   R   R   R(   t	   distutilsR   (    (    (    s^   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/setuptools/command/install_scripts.pyt   <module>   s   