ó ž­çSc@s°ddlmZddlmZddlmZmZddlZddlZddl m Z m Z m Z ddl mZddlmZddlZdefd „ƒYZdS( iÿÿÿÿ(t convert_path(tlog(tDistutilsErrortDistutilsOptionErrorN(t Distributiont PathMetadatatnormalize_path(t easy_install(tPY3tdevelopcBsseZdZdZejd 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((sD/usr/local/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((sD/usr/local/lib/python2.7/site-packages/setuptools/command/develop.pyR#s     cCs |jdƒ}|jrCd}|j|jf}t||ƒ‚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ƒƒ}||kr3td|ƒ‚nt|t|t jj|jƒƒd|jƒ|_|jjt jdƒ}|t jkr§d|jdƒd }n||_tt jj|j|j|ƒƒ}|tt jƒkrtd |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(RteittemplateRttargetRtp((sD/usr/local/lib/python2.7/site-packages/setuptools/command/develop.pyR *sF         $cCs®trØt|jdtƒrØ|jdddƒ|jdƒ|jdƒ}t|jƒ}|jdd|ƒ|jdƒ|jdddƒ|jdƒ|jdƒ}||_ ||j _ t ||j ƒ|j _n-|jdƒ|jdddƒ|jdƒ|jƒtjr4|jtjƒdt_ntjd |j|jƒ|jst|jd ƒ}|j|j d |jƒ|jƒn|jd|j |j ƒdS( Ntuse_2to3tbuild_pytinplaceiRR+t build_extisCreating %s (link to %s)tws (Rtgetattrt distributiontFalsetreinitialize_commandt run_commandRRt build_libRR-tlocationRRt _providertinstall_site_pyt setuptoolstbootstrap_install_fromRRRtinfoR*R+tdry_runtopentwriteRtclosetprocess_distributiontno_deps(Rtbpy_cmdt build_pathtei_cmdtf((sD/usr/local/lib/python2.7/site-packages/setuptools/command/develop.pyRXs4            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*RRFR+RHtrstripRJRRtwarnRGtunlinkt update_pthR-R<tscripts(Rt egg_link_filetlinetcontents((sD/usr/local/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<RVR&R'R,RtbasenameRHtreadRJtinstall_script(RR-t script_namet script_pathRPt script_text((sD/usr/local/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[(((sD/usr/local/lib/python2.7/site-packages/setuptools/command/develop.pyR s    . . (tdistutils.utilRt distutilsRtdistutils.errorsRRR&R%t pkg_resourcesRRRtsetuptools.command.easy_installRtsetuptools.compatRRDR (((sD/usr/local/lib/python2.7/site-packages/setuptools/command/develop.pyts