ok

Mini Shell

Direktori : /proc/thread-self/root/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //proc/thread-self/root/lib/python2.7/site-packages/setuptools/command/develop.pyo

�
b-�Qc@s�ddlmZddlmZmZddlmZmZmZddl	m
Z
ddlmZm
Z
ddlZddlZddlZddlZdefd��YZdS(	i����(teasy_install(tconvert_patht
subst_vars(tDistributiontPathMetadatatnormalize_path(tlog(tDistutilsErrortDistutilsOptionErrorNtdevelopcBsseZdZdZejd
dgZejdgZeZ	d�Z
d�Zd	�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
jt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_basedirstexpand_dirst
package_indextscantglobtostpathtjointinstall_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_commandtrun_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
|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*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-tscript_nametscript_pathRQtscript_text((s>/usr/lib/python2.7/site-packages/setuptools/command/develop.pyR\�s

(s	uninstallRsUninstall 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\(((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.pyt<module>s0

Zerion Mini Shell 1.0