ó
OyTLc           @   s—   d  d l  Z  d  d l Z d  d l Z d  d l m Z d  d l m Z d e f d „  ƒ  YZ g  e j D] Z	 e	 d e j
 k rd e	 ^ qd e j e _ d S(   iÿÿÿÿN(   t   install(   t   DistutilsArgErrorR    c           B   s‹   e  Z d  Z e j d d g Z e j d d g Z d d „  f d d „  f g Z e e ƒ Z	 d	 „  Z
 d
 „  Z d „  Z 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(   N(   t   True(   t   self(    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyt   <lambda>   s    t   install_scriptsc         C   s   t  S(   N(   R   (   R   (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyR      s    c         C   s,   t  j |  ƒ d  |  _ d  |  _ d  |  _ d  S(   N(   t   _installt   initialize_optionst   Nonet   old_and_unmanageablet!   single_version_externally_managedt
   no_compile(   R   (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyR      s    		c         C   sU   t  j |  ƒ |  j r" t |  _ n/ |  j rQ |  j rQ |  j rQ t d ƒ ‚ qQ n  d  S(   NsA   You must specify --record or --root when building system packages(   R   t   finalize_optionst   rootR   R   t   recordR   (   R   (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyR      s    		c         C   s5   |  j  s |  j r t j |  ƒ Sd  |  _ d |  _ d  S(   Nt    (   R   R   R   t   handle_extra_pathR	   t	   path_filet
   extra_dirs(   R   (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyR   '   s    	c         C   s…   |  j  s |  j r t j |  ƒ St j d ƒ } | j j d d ƒ } | j j	 } | d k sg | d k rw t j |  ƒ n
 |  j
 ƒ  d  S(   Ni   t   __name__R   s   distutils.distt   run_commands(   R
   R   R   t   runt   syst	   _getframet	   f_globalst   gett   f_codet   co_namet   do_egg_install(   R   t   callert   caller_modulet   caller_name(    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyR   2   s    
c         C   sÉ   |  j  j d ƒ } | |  j  d d d |  j d |  j ƒ} | j ƒ  d | _ | j j t j d ƒ ƒ |  j	 d ƒ |  j  j
 d ƒ j g } t j r© | j d	 t j ƒ n  | | _ | j ƒ  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"   (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyR   P   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   t   user_optionsR	   t   boolean_optionst   new_commandst   dictt   _ncR   R   R   R   R   (    (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyR       s    
				i    (   R0   R   R,   t   distutils.command.installR    R   t   distutils.errorsR   t   sub_commandsR3   R:   R8   (    (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/command/install.pyt   <module>   s
   $e,