ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyc

�
�/{Yc@s�dZddlZddlZddlZddlmZddlZddlmZddl	m
Z
ddlmZddlm
Z
ddlmZdd	lmZdd
lmZmZmZmZmZmZmZmZddl	mZdefd
��YZdefd��YZde
fd��YZd�Zd�Z d�Z!d�Z"d�Z#d�Z$e%d�Z&d�Z'd�Z(dS(sUsetuptools.command.egg_info

Create a distribution's .egg-info directory and contentsi����N(tCommand(tlog(tsdist(t
basestring(t	svn_utils(tconvert_path(tFileList(tparse_requirementst	safe_namet
parse_versiontsafe_versiontyield_linest
EntryPointtiter_entry_pointstto_filename(twalk_revctrltegg_infocBs�eZdZdd d!d"d#d$gZddgZidd
6dd6Zd�Zd�Zd�Ze	d�Z
d�Zd�Zd�Z
d�Zd�Zed��Zd�Zd�ZRS(%s+create a distribution's .egg-info directorys	egg-base=tesLdirectory containing .egg-info directories (default: top of the source tree)stag-svn-revisiontrs,Add subversion revision ID to version numberstag-datetds0Add date stamp (e.g. 20050528) to version numbers
tag-build=tbs-Specify explicit tag to add to version numbersno-svn-revisiontRs*Don't add subversion revision ID [default]sno-datetDs"Don't include date stamp [default]cCsUd|_d|_d|_d|_d|_d|_d|_t|_	d|_
dS(Ni(tNonetegg_nametegg_versiontegg_baseRt	tag_buildttag_svn_revisionttag_datetFalsetbroken_egg_infotvtags(tself((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytinitialize_options)s								c	CsKddlm}tdtddddd|j���}|||�dS(Ni����(tedit_configRRiRR(tsetuptools.command.setoptR#tdictttags(R!tfilenameR#tvalues((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytsave_version_info4scCs�t|jj��|_|j�|_|j�|_y$tt	d|j|jf��Wn3t
k
r�tjj
d|j|jf��nX|jdkr�|jj}|p�ijdtj�|_n|jd�t|j�d|_|jtjkr"tjj|j|j�|_nd|jkr>|j�n|j|jj_|jj}|dk	r�|j|jj�kr�|j|_t |j�|_!d|j_ndS(Ns%s==%ss2Invalid distribution name or version syntax: %s-%stRs	.egg-infot-("Rtdistributiontget_nameRR&R ttagged_versionRtlistRt
ValueErrort	distutilsterrorstDistutilsOptionErrorRRtpackage_dirtgettostcurdirtensure_dirnameRRtpathtjointcheck_broken_egg_infotmetadatatversiont
_patched_disttkeytlowert_versionR	t_parsed_version(R!tdirstpd((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytfinalize_options?s2!
	!
!
$cCsl|r|j|||�nLtjj|�rh|dkrX|rXtjd||�dS|j|�ndS(s�Write `data` to `filename` or delete if empty

        If `data` is non-empty, this routine is the same as ``write_file()``.
        If `data` is empty but not ``None``, this is the same as calling
        ``delete_file(filename)`.  If `data` is ``None``, then this is a no-op
        unless `filename` exists, in which case a warning is issued about the
        orphaned file (if `force` is false), or deleted (if `force` is true).
        s$%s not set in setup(), but %s existsN(t
write_fileR6R9texistsRRtwarntdelete_file(R!twhatR'tdatatforce((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytwrite_or_delete_filegs	
cCsjtjd||�tjdkr4|jd�}n|jsft|d�}|j|�|j�ndS(s�Write `data` to `filename` (if not a dry run) after announcing it

        `what` is used in a log message to identify what is being written
        to the file.
        swriting %s to %sisutf-8twbN(i(	Rtinfotsystversion_infotencodetdry_runtopentwritetclose(R!RJR'RKtf((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRF{s	
cCs-tjd|�|js)tj|�ndS(s8Delete `filename` (if not a dry run) after announcing itsdeleting %sN(RRORSR6tunlink(R!R'((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRI�s	cCsE|jj�}|jr4|j|j�r4t|�St||j�S(N(R,tget_versionR tendswithR
(R!R=((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR.�s
cCs�|j|j�|jj}xNtd�D]@}|jd|�}|||jtjj	|j|j��q)Wtjj	|jd�}tjj
|�r�|j|�n|j�dS(Nsegg_info.writerst	installersnative_libs.txt(
tmkpathRR,tfetch_build_eggR
tloadtnameR6R9R:RGRItfind_sources(R!R[teptwritertnl((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytrun�s,cCs�d}|jr||j7}n|jrctjjd�sLtjjd�rc|d|j�7}n|jr�ddl}||jd�7}n|S(NR*s.svnsPKG-INFOs-r%si����s-%Y%m%d(	RRR6R9RGtget_svn_revisionRttimetstrftime(R!R=Rf((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR&�s		$	cCsttjjtj�j��S(N(tstrRtSvnInfoR^R6R7tget_revision(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRe�scCsJtjj|jd�}t|j�}||_|j�|j|_dS(s"Generate SOURCES.txt manifest filesSOURCES.txtN(	R6R9R:Rtmanifest_makerR,tmanifestRdtfilelist(R!tmanifest_filenametmm((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR`�s
	
cCs�|jd}|jtjkr:tjj|j|�}ntjj|�r�tjddddd||j	�|j	|_
||_	ndS(Ns	.egg-infoR+iNs�
Note: Your current .egg-info directory has a '-' in its name;
this will not work correctly with "setup.py develop".

Please rename %s to %s to correct this problem.
(RRR6R7R9R:RGRRHRR(R!tbei((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR;�s

(s	egg-base=RsLdirectory containing .egg-info directories (default: top of the source tree)(stag-svn-revisionRs,Add subversion revision ID to version number(stag-dateRs0Add date stamp (e.g. 20050528) to version number(s
tag-build=Rs-Specify explicit tag to add to version number(sno-svn-revisionRs*Don't add subversion revision ID [default](sno-dateRs"Don't include date stamp [default](t__name__t
__module__tdescriptiontuser_optionstboolean_optionstnegative_optR"R)RERRMRFRIR.RdR&tstaticmethodReR`R;(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRs0	

			(						RcBseZdZd�ZRS(s@File list that accepts only existing, platform-independent pathscCs|jd�r|d }nt|�}tjdkr�yDtjj|�sgtjj|jd��rz|jj	|�nWq�t
k
r�tjj|jd��r�|jj	|�q�tjd|tj
��q�Xn%tjj|�r�|jj	|�ndS(Ns
i����isutf-8s!'%s' not %s encodable -- skipping(i(RZRRPRQR6R9RGRRtfilestappendtUnicodeEncodeErrorRRHtgetfilesystemencoding(R!titemR9((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRy�s
-
(RqRrt__doc__Ry(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR�sRkcBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(sMANIFEST.incCs(d|_d|_d|_d|_dS(Ni(tuse_defaultstprunet
manifest_onlytforce_manifest(R!((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR"�s			cCsdS(N((R!((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRE�scCs�t�|_tjj|j�s.|j�n|jj�|j�tjj|j	�rg|j
�n|j�|jj�|jj
�|j�dS(N(RRmR6R9RGRltwrite_manifesttfindalltadd_defaultsttemplatet
read_templatetprune_file_listtsorttremove_duplicates(R!((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRd�s






cCs�tjdkr~g}xW|jjD]I}y|jd�Wn"tk
r]tjd|�q"X|j|�q"W||j_n|jj}t	j
dkr�g|D]}|jt	j
d�^q�}n|jt
|j|fd|j�dS(s�Write the file list in 'self.filelist' (presumably as filled in
        by 'add_defaults()' and 'read_template()') to the manifest file
        named by 'self.manifest'.
        isutf-8s$'%s' not UTF-8 encodable -- skippingt/swriting manifest file '%s'N(i(RPRQRmRxRRRzRRHRyR6tseptreplacetexecuteRFRl(R!RxtfileRW((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR��s
+cCs&|jd�s"tj||�ndS(Nsstandard file not found:(t
startswithRRH(R!tmsg((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRHscCs�tj|�|jj|j�|jj|j�tt��}|r[|jj|�n"t	j
j|j�r}|j�n|j
d�}|jjdd|j�dS(NRt*tprefix(RR�RmRyR�RlR/RtextendR6R9RGt
read_manifesttget_finalized_commandtinclude_patternR(R!trcfilestei_cmd((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR�s

cCs�|jd�}|jj�}|jjdd|j�|jjdd|�tjt	j
�}|jj|d|dd�dS(NtbuildR�s(RCS|CVS|\.svn)tis_regexi(R�R,tget_fullnameRmtexclude_patternRt
build_basetretescapeR6R�(R!R�tbase_dirR�((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR�%s(
RqRrR�R"RERdR�RHR�R�(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRk�s			
			cCsZdj|�}tjdkr0|jd�}nt|d�}|j|�|j�dS(s{Create a file with the specified name and write 'contents' (a
    sequence of strings without line terminators) to it.
    s
isutf-8RNN(i(R:RPRQRRRTRURV(R'tcontentsRW((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyRF.s
cCs�tjd|�|js�|jj}|j|j|_}|j|j|_}z|j	|j
�Wd|||_|_Xt|jdd�}ddl
m}|j|j
|�ndS(Ns
writing %stzip_safei����(t	bdist_egg(RRORSR,R<RR=RR_twrite_pkg_infoRtgetattrRtsetuptools.commandR�twrite_safety_flag(tcmdtbasenameR'R<toldvertoldnametsafeR�((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR�9s	cCs&tjj|�r"tjd�ndS(NssWARNING: 'depends.txt' is not used by setuptools 0.6!
Use the install_requires/extras_require setup() args instead.(R6R9RGRRH(R�R�R'((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytwarn_depends_obsoleteJsc	Cs�|j}djt|jpd��g}xI|jp9ij�D]2\}}|jd|djt|��f�q@W|jd|dj|��dS(Ns
s	

[%s]
%strequirementsR*((R,R:Rtinstall_requirestextras_requiretitemsRyRM(R�R�R'tdistRKtextratreqs((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytwrite_requirementsRs
	!"*cCs_tjg|jj�D]}|jdd�d^q�}|jd|dj|�d�dS(Nt.iistop-level namess
(R%tfromkeysR,titer_distribution_namestsplitRFR:(R�R�R'tktpkgs((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytwrite_toplevel_namesYs2cCst|||t�dS(N(t	write_argtTrue(R�R�R'((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyt
overwrite_argcscCsgtjj|�d}t|j|d�}|dk	rMdj|�d}n|j||||�dS(Nis
(R6R9tsplitextR�R,RR:RM(R�R�R'RLtargnametvalue((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyR�fs
cCs�|jj}t|t�s'|dkr0|}n�|dk	r�g}xs|j�D]e\}}t|t�s�tj||�}djt	t
|j���}n|jd||f�qOWdj|�}n|j
d||t�dS(Ns
s	[%s]
%s

R*sentry points(R,tentry_pointst
isinstanceRRR�Rtparse_groupR:tmapRhR(RyRMR�(R�R�R'RaRKtsectionR�((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyt
write_entriesms	!cCsntjjd�rjtdd�}x9|D]1}tjd|�}|r(t|jd��Sq(W|j�ndS(NsPKG-INFOtrUsVersion:.*-r(\d+)\s*$ii(	R6R9RGRTR�tmatchtinttgroupRV(RWtlineR�((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pytget_pkg_info_revision}s

()R}R6R�RPt
setuptoolsRtdistutils.errorsR1Rtsetuptools.command.sdistRtsetuptools.compatRRtdistutils.utilRtdistutils.filelistRt	_FileListt
pkg_resourcesRRR	R
RRR
RRRRkRFR�R�R�R�R�RR�R�R�(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/egg_info.pyt<module>s2:�J					
		

Zerion Mini Shell 1.0