ó b-äQc@s²ddlmZddlmZmZddlmZmZmZddl m Z ddl m Z m Z ddlZddlZddlZddlZdefd„ƒYZdS( iÿÿÿÿ(t easy_install(t convert_patht subst_vars(t Distributiont PathMetadatatnormalize_path(tlog(tDistutilsErrortDistutilsOptionErrorNtdevelopcBsseZdZdZejd dgZejdgZeZ d„Z d„Z d „Z d „Z d „Zd „ZRS(sSet up package for developments%install package in 'development mode't uninstalltusUninstall this source packages egg-path=s-Set the path to be used in the .egg-link filecCs7|jrt|_|jƒn |jƒ|jƒdS(N(R tTruet multi_versiontuninstall_linktinstall_for_developmenttwarn_deprecated_options(tself((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pytruns     cCs5d|_d|_tj|ƒd|_d|_dS(Nt.(tNoneR tegg_pathRtinitialize_optionst setup_pathtalways_copy_from(R((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyRs     cCsù|jdƒ}|jr7td|j|jfƒ‚n|jg|_tj|ƒ|jƒ|j ƒ|j j t j dƒƒt jj|j|jdƒ|_|j|_|jdkrØt jj|jƒ|_nt|jƒ}tt jj|j|jƒƒ|kr!td|ƒ‚nt|t|t jj|jƒƒd|jƒ|_|jjt jdƒ}|t jkr•d|jdƒd }n||_tt jj|j|j|ƒƒ}|tt jƒkrõtd |tt jƒƒ‚ndS( Ntegg_infos-Please rename %r to %r before using 'develop's*.eggs .egg-linksA--egg-path must be a relative path from the install directory to t project_namet/s../isGCan't get a consistent path to setup script from installation directory( tget_finalized_commandtbroken_egg_infoRRtegg_nametargsRtfinalize_optionstexpand_basedirst expand_dirst package_indextscantglobtostpathtjoint install_dirtegg_linktegg_baseRRtabspathRRRRtdisttreplacetseptcurdirtcountR(Rteittargettp((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyR 's@    " '  $cCs·tjd krát|jdtƒrá|jdddƒ|jdƒ|jdƒ}t|j ƒ}|jdd|ƒ|jdƒ|jdddƒ|jdƒ|jdƒ}||_ ||j _ t ||jƒ|j _n-|jdƒ|jddd ƒ|jdƒ|jƒtjr=|jtjƒdt_ntjd |j|jƒ|js™t|jd ƒ}|j|j d |jƒ|jƒn|jd|j |j ƒdS(Nituse_2to3tbuild_pytinplaceiRR+t build_extisCreating %s (link to %s)tws (i( tsyst version_infotgetattrt distributiontFalsetreinitialize_commandt run_commandRRt build_libRR-tlocationRRt _providertinstall_site_pyt setuptoolstbootstrap_install_fromRRRtinfoR*R+tdry_runtopentwriteRtclosetprocess_distributiontno_deps(Rtbpy_cmdt build_pathtei_cmdtf((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyRVs4$            cCsùtjj|jƒr½tjd|j|jƒt|jƒ}g|D]}|jƒ^qD}|j ƒ||j g|j |j gfkržtj d|ƒdS|j s½tj|jƒq½n|j sÙ|j|jƒn|jjrõtj dƒndS(NsRemoving %s (link to %s)s$Link points to %s: uninstall aborteds5Note: you must uninstall or replace scripts manually!(R&R'texistsR*RRGR+RItrstripRKRRtwarnRHtunlinkt update_pthR-R=tscripts(Rt egg_link_filetlinetcontents((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyR„s $   cCs²||jk rtj||ƒS|j|ƒx|jjp>gD]k}tjjt |ƒƒ}tjj |ƒ}t |dƒ}|j ƒ}|j ƒ|j||||ƒq?WdS(NtrU(R-Rtinstall_egg_scriptstinstall_wrapper_scriptsR=RWR&R'R,RtbasenameRItreadRKtinstall_script(RR-t script_namet script_pathRQt script_text((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyR\•s   (s uninstallR sUninstall this source packageN(s egg-path=Ns-Set the path to be used in the .egg-link file(t__name__t __module__t__doc__t descriptionRt user_optionsRtboolean_optionsR>tcommand_consumes_argumentsRRR RRR\(((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyR s   / . (tsetuptools.command.easy_installRtdistutils.utilRRt pkg_resourcesRRRt distutilsRtdistutils.errorsRRR&R:RER%R (((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyts 0