Ñò
6»‚Uc           @   sÍ   d  d k  l Z d  d k Z d  d k Z d  d k Z d  d k Z d  d k i i Z	 d  d k
 Z
 e	 i Z d e	 i f d „  ƒ  YZ g  Z e	 i i D]% Z e d e i j o e e q‘ q‘ [ e i e _ d S(   iÿÿÿÿ(   t   DistutilsArgErrorNt   installc           B   s    e  Z d  Z e i i d d g Z e i i d d g Z d d „  f d d „  f g Z e	 e ƒ Z
 d	 „  Z d
 „  Z d „  Z d „  Z e d „  ƒ Z d „  Z RS(   s7   Use easy_install to install the package, w/dependenciess   old-and-unmanageables   Try not to use this!s!   single-version-externally-manageds5   used by system package builders to create 'flat' eggst   install_egg_infoc         C   s   t  S(    (   t   True(   t   self(    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyt   <lambda>   s    t   install_scriptsc         C   s   t  S(    (   R   (   R   (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR      s    c         C   s&   t  i i |  ƒ d  |  _ d  |  _ d  S(   N(   t   origR   t   initialize_optionst   Nonet   old_and_unmanageablet!   single_version_externally_managed(   R   (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR       s    	c         C   s_   t  i i |  ƒ |  i o t |  _ n5 |  i o* |  i o |  i o t d ƒ ‚ q[ n d  S(   NsA   You must specify --record or --root when building system packages(   R   R   t   finalize_optionst   rootR   R   t   recordR    (   R   (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR   %   s    

c         C   s;   |  i  p
 |  i o t i i |  ƒ Sd  |  _ d |  _ d  S(   Nt    (   R   R   R   R   t   handle_extra_pathR	   t	   path_filet
   extra_dirs(   R   (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR   0   s    	c         C   s]   |  i  p
 |  i o t i i |  ƒ S|  i t i ƒ  ƒ p t i i |  ƒ n |  i ƒ  d  S(   N(	   R
   R   R   R   t   runt   _called_from_setupt   inspectt   currentframet   do_egg_install(   R   (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR   :   s
    c         C   s­   |  d
 j oB d } t i | ƒ t i ƒ  d j o d } t i | ƒ n t St i |  ƒ d } | d  \ } t i | ƒ } | i	 i
 d d ƒ } | d j o | i d	 j S(   sñ  
        Attempt to detect whether run() was called from setup() or by another
        command.  If called by setup(), the parent caller will be the
        'run_command' method in 'distutils.dist', and *its* caller will be
        the 'run_commands' method.  If called any other way, the
        immediate caller *might* be 'run_command', but it won't have been
        called by 'run_commands'. Return True in that case or if a call stack
        is unavailable. Return False otherwise.
        s4   Call stack not available. bdist_* commands may fail.t
   IronPythons6   For best results, pass -X:Frames to enable call stack.i   i   t   __name__R   s   distutils.distt   run_commandsN(   R	   t   warningst   warnt   platformt   python_implementationR   R   t   getouterframest   getframeinfot	   f_globalst   gett   function(   t	   run_framet   msgt   rest   callert   infot   caller_module(    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR   E   s    c         C   sË   |  i  i d ƒ } | |  i  d d d |  i d |  i ƒ} | i ƒ  d | _ | i i t i d ƒ ƒ |  i	 d ƒ |  i  i
 d ƒ i g } t i o | i d	 t i ƒ n | | _ | i ƒ  d  t _ d  S(
   Nt   easy_installt   argst   xR   R   t   .s   *.eggt	   bdist_eggi    (   t   distributiont   get_command_classR   R   t   ensure_finalizedt   always_copy_fromt   package_indext   scant   globt   run_commandt   get_command_objt
   egg_outputt
   setuptoolst   bootstrap_install_fromt   insertR+   R   R	   (   R   R*   t   cmdR+   (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR   `   s    $
	
	
N(   s   old-and-unmanageableNs   Try not to use this!(   s!   single-version-externally-managedNs5   used by system package builders to create 'flat' eggs(   R   t
   __module__t   __doc__R   R   t   user_optionsR	   t   boolean_optionst   new_commandst   dictt   _ncR   R   R   R   t   staticmethodR   R   (    (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyR      s    	 
				
	i    (   t   distutils.errorsR    R   R5   R   R   t   distutils.command.installt   commandR   R   R9   t   _installt   _[1]t   sub_commandsR<   RC   RA   (    (    (    sB   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/command/install.pyt   <module>   s   	l<