eaiovnaovbqoebvqoeavibavo  fc@sddlmZddlZddlZddlZddlZddljjZ ddl Z e jZ de jfdYZge jj D]Z e dejkre ^qeje_ dS(i(tDistutilsArgErrorNtinstallcBseZdZejjddgZejjddgZddfddfgZe eZ d Z d Z d Z d Zed ZdZRS(s7Use easy_install to install the package, w/dependenciessold-and-unmanageablesTry not to use this!s!single-version-externally-manageds5used by system package builders to create 'flat' eggstinstall_egg_infocCstS(N(tTrue(tself((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pytttinstall_scriptscCstS(N(R(R((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyRRcCs&tjj|d|_d|_dS(N(torigRtinitialize_optionstNonetold_and_unmanageablet!single_version_externally_managed(R((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyR s cCsXtjj||jr%t|_n/|jrT|j rT|j rTtdqTndS(NsAYou must specify --record or --root when building system packages(RRtfinalize_optionstrootRR trecordR(R((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyR %s   cCs8|js|jr"tjj|Sd|_d|_dS(NR(RR RRthandle_extra_pathR t path_filet extra_dirs(R((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyR0s cCsX|js|jr"tjj|S|jtjsJtjj|n |jdS(N( R R RRtrunt_called_from_setuptinspectt currentframetdo_egg_install(R((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyR:s cCs|d krKd}tj|tjdkrGd}tj|ntStj|d}|d \}tj|}|j j dd}|dko|j d kS( 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. s4Call stack not available. bdist_* commands may fail.t IronPythons6For best results, pass -X:Frames to enable call stack.iit__name__Rsdistutils.distt run_commandsN( R twarningstwarntplatformtpython_implementationRRtgetouterframest getframeinfot f_globalstgettfunction(t run_frametmsgtrestcallertinfot caller_module((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyREs    cCs|jjd}||jddd|jd|j}|jd|_|jjtjd|j d|jj dj g}t j r|jd t j n||_|jdt _ dS( Nt easy_installtargstxRRt.s*.eggt bdist_eggi(t distributiontget_command_classRRtensure_finalizedtalways_copy_fromt package_indextscantglobt run_commandtget_command_objt egg_outputt setuptoolstbootstrap_install_fromtinsertR+RR (RR*tcmdR+((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyR`s$      N(sold-and-unmanageableNsTry not to use this!(s!single-version-externally-managedNs5used by system package builders to create 'flat' eggs(Rt __module__t__doc__RRt user_optionsR tboolean_optionst new_commandstdictt_ncR R RRt staticmethodRR(((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyRs         i(tdistutils.errorsRRR5RRtdistutils.command.installtcommandRRR9t_installt sub_commandsR<RCRA(((s>/usr/lib/python2.7/site-packages/setuptools/command/install.pyts      l/