ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyc

�
0��`c@s�ddlmZddlmZddlmZmZddlZddlZddl	Z	ddl
mZddlm
Z
mZmZddlmZddlZdefd	��YZd
efd��YZdS(i����(tconvert_path(tlog(tDistutilsErrortDistutilsOptionErrorN(tsix(tDistributiontPathMetadatatnormalize_path(teasy_installtdevelopcBs|eZdZdZejddgZejdgZeZ	d�Z
d�Zd	�Zd
�Z
d�Zd�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((sK/opt/alt/python27/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((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyR%s
		
	cCs|jd�}|jrCd}|j|jf}t||��n|jg|_tj|�|j�|j	�|j
jtjd��|jd}t
jj|j|�|_|j|_|jdkr�t
jj|j�|_nt|j�}tt
jj|j|j��}||kr9td|��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_basedirstexpand_dirst
package_indextscantglobtostpathtjointinstall_dirtegg_linktegg_baseRRtabspathRRRRtdisttreplacetseptcurdirtcountR(RteittemplateRtegg_link_fnttargetRtp((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyR ,sF	




	$cCs�tjr�t|jdt�r�|jddd�|jd�|jd�}t|j	�}|jdd|�|jd�|jddd�|jd�|jd�}||_
||j_t
||j�|j_n-|jd�|jddd�|jd�|j�tjr7|jtj�dt_ntjd	|j|j�|js�t|jd
��"}|j|j
d|j�WdQXn|jd|j|j�dS(Ntuse_2to3tbuild_pytinplaceiRR+t	build_extisCreating %s (link to %s)tws
(RtPY3tgetattrtdistributiontFalsetreinitialize_commandtrun_commandRRt	build_libRR-tlocationRRt	_providertinstall_site_pyt
setuptoolstbootstrap_install_fromRRRtinfoR*R+tdry_runtopentwriteRtprocess_distributiontno_deps(Rtbpy_cmdt
build_pathtei_cmdtf((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyRZs2


	


		$cCs�tjj|j�r�tjd|j|j�t|j�}g|D]}|j�^qD}|j	�||j
g|j
|jgfkr�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*RRHR+RJtrstriptcloseRRtwarnRItunlinkt
update_pthR-R>tscripts(Rt
egg_link_filetlinetcontents((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyR�s
		cCs�||jk	rtj||�S|j|�x~|jjp>gD]j}tjjt	|��}tjj
|�}tj|��}|j
�}WdQX|j||||�q?WdS(N(R-Rtinstall_egg_scriptstinstall_wrapper_scriptsR>RXR&R'R,RtbasenametioRJtreadtinstall_script(RR-tscript_nametscript_pathtstrmtscript_text((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyR\�s
cCst|�}tj||�S(N(tVersionlessRequirementRR](RR-((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyR]�s(R
RsUninstall this source packageN(s	egg-path=Ns-Set the path to be used in the .egg-link file(t__name__t
__module__t__doc__tdescriptionRtuser_optionsRtboolean_optionsR?tcommand_consumes_argumentsRRR RRR\R](((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyR	s
			.	-		RfcBs)eZdZd�Zd�Zd�ZRS(sz
    Adapt a pkg_resources.Distribution to simply return the project
    name as the 'requirement' so that scripts will work across
    multiple versions.

    >>> dist = Distribution(project_name='foo', version='1.0')
    >>> str(dist.as_requirement())
    'foo==1.0'
    >>> adapted_dist = VersionlessRequirement(dist)
    >>> str(adapted_dist.as_requirement())
    'foo'
    cCs
||_dS(N(t_VersionlessRequirement__dist(RR-((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyt__init__�scCst|j|�S(N(R=Rn(Rtname((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyt__getattr__�scCs|jS(N(R(R((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pytas_requirement�s(RgRhRiRoRqRr(((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyRf�s		(tdistutils.utilRt	distutilsRtdistutils.errorsRRR&R%R_tsetuptools.externRt
pkg_resourcesRRRtsetuptools.command.easy_installRRFR	tobjectRf(((sK/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/develop.pyt<module>s�

Zerion Mini Shell 1.0