ó Àfc@sÀddlmZddlZddlZddlZddlZddljjZ ddl Z e jZ de jfd„ƒYZge jj D]Z e dejkre ^qeje_ dS(iÿÿÿÿ(tDistutilsArgErrorNtinstallcBs eZdZejjddgZejjddgZdd„fdd„fgZe eƒZ d „Z d „Z d „Z d „Zed „ƒZd„ZRS(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 rTtdƒ‚qTndS(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|jtjƒƒsJtjj|ƒn |jƒdS(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|ƒtjƒdkrGd}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ƒ}|jƒd|_|jjtjdƒƒ|j dƒ|jj dƒj g}t j r©|jd t j ƒn||_|jƒdt _ 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/