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/egg_info.pyc

�
0��`c@s3dZddlmZddlmZddlmZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ddl%j&Z&ddl'm(Z(yddl)m*Z*Wne+k
r�nXdefd��YZ,defd��YZdefd��YZ-d�Z.d�Z/d�Z0d�Z1d�Z2d�Z3d�Z4d�Z5e6d�Z7d�Z8d �Z9dS(!sUsetuptools.command.egg_info

Create a distribution's .egg-info directory and contentsi����(tFileList(tconvert_path(tlogN(tsix(tmap(tCommand(tsdist(twalk_revctrl(tedit_config(t	bdist_egg(tparse_requirementst	safe_namet
parse_versiontsafe_versiontyield_linest
EntryPointtiter_entry_pointstto_filename(t	packaging(t	svn_utilstegg_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/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytinitialize_options9s								c	Cs;tdtddddd|j���}t||�dS(NRR iR!R(tdictttagsR(R%tfilenametvalues((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytsave_version_infoDscCs�t|jj��|_|j�|_|j�|_t|j�}yKt	|t
jj�}|ridnd}t
t||j|jf��Wn3tk
r�tjjd|j|jf��nX|jdkr|jj}|p�ijdtj�|_n|jd�t|j�d|_|jtjkrXtjj|j|j�|_nd|jkrt|j�n|j|jj_|jj }|dk	r�|j!|jj"�kr�|j|_#t|j�|_$d|j_ ndS(Ns%s==%ss%s===%ss2Invalid distribution name or version syntax: %s-%stRs	.egg-infot-(%Rtdistributiontget_nameRR(R$ttagged_versionRRt
isinstanceRtversiontVersiontlistR
t
ValueErrort	distutilsterrorstDistutilsOptionErrorRRtpackage_dirtgettostcurdirtensure_dirnameRRtpathtjointcheck_broken_egg_infotmetadatat
_patched_disttkeytlowert_versiont_parsed_version(R%tparsed_versiont
is_versiontspectdirstpd((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytfinalize_optionsNs8!
	!
!
$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_fileR;R>texistsRRtwarntdelete_file(R%twhatR)tdatatforce((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytwrite_or_delete_file}s	
cCsdtjd||�tjr.|jd�}n|js`t|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 %ssutf-8twbN(	RtinfoRtPY3tencodetdry_runtopentwritetclose(R%RQR)RRtf((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRM�s		
cCs-tjd|�|js)tj|�ndS(s8Delete `filename` (if not a dry run) after announcing itsdeleting %sN(RRVRYR;tunlink(R%R)((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRP�s	cCsE|jj�}|jr4|j|j�r4t|�St||j�S(N(R.tget_versionR$tendswithR
(R%R2((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR0�s
cCs�|j|j�|jj}xXtd�D]J}|jd|�|j�}|||jtj	j
|j|j��q)Wtj	j
|jd�}tj	j|�r�|j|�n|j
�dS(Nsegg_info.writerst	installersnative_libs.txt(tmkpathRR.tfetch_build_eggRtrequiretresolvetnameR;R>R?RNRPtfind_sources(R%Rateptwritertnl((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytrun�s,cCsbd}|jr||j7}n|jr?|d|j�7}n|jr^|tjd�7}n|S(NR,s-r%ss-%Y%m%d(RR tget_svn_revisionR!ttimetstrftime(R%R2((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR(�s			cCs2dt�krdSttjjtj�j��S(NRt0(tglobalststrRtSvnInfotloadR;R<tget_revision(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRl�scCsJtjj|jd�}t|j�}||_|j�|j|_dS(s"Generate SOURCES.txt manifest filesSOURCES.txtN(	R;R>R?Rtmanifest_makerR.tmanifestRktfilelist(R%tmanifest_filenametmm((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRg�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.
(RRR;R<R>R?RNRRORR#(R%tbei((sL/opt/alt/python27/lib/python2.7/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+RLR"RTRMRPR0RkR(tstaticmethodRlRgR@(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR&s0	

		
	/					
	RcBs2eZdZd�Zd�Zd�Zd�ZRS(s@File list that accepts only existing, platform-independent pathscCsN|jd�r|d }nt|�}|j|�rJ|jj|�ndS(Ns
i����(R`Rt
_safe_pathtfilestappend(R%titemR>((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR��s

cCs |jjt|j|��dS(N(R�textendtfilterR�(R%tpaths((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR��scCs"tt|j|j��|_dS(s�
        Replace self.files with only safe paths

        Because some owners of FileList manipulate the underlying
        ``files`` attribute directly, this method must be called to
        repair those paths.
        N(R4R�R�R�(R%((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyt_repair�scCs�d}tj|�}|dkr6tjd|�tStj|d�}|dkrktj||d�tSy,tjj	|�s�tjj	|�r�t
SWn*tk
r�tj||tj
��nXdS(Ns!'%s' not %s encodable -- skippings''%s' in unexpected encoding -- skippingsutf-8(t
unicode_utilstfilesys_decodeRRROR"t
try_encodeR;R>RNtTruetUnicodeEncodeErrortsystgetfilesystemencoding(R%R>tenc_warntu_patht	utf8_path((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR��s$
(R{R|t__doc__R�R�R�R�(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR�s
			
RucBs_eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
sMANIFEST.incCs(d|_d|_d|_d|_dS(Ni(tuse_defaultstprunet
manifest_onlytforce_manifest(R%((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR&s			cCsdS(N((R%((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRLscCs�t�|_tjj|j�s.|j�n|jj�|j�tjj|j	�rg|j
�n|j�|jj�|jj
�|j�dS(N(RRwR;R>RNRvtwrite_manifesttfindalltadd_defaultsttemplatet
read_templatetprune_file_listtsorttremove_duplicates(R%((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRk s






cCs"tj|�}|jtjd�S(Nt/(R�R�treplaceR;tsep(R%R>((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyt_manifest_normalize-scCsb|jj�g|jjD]}|j|�^q}d|j}|jt|j|f|�dS(so
        Write the file list in 'self.filelist' to the manifest file
        named by 'self.manifest'.
        swriting manifest file '%s'N(RwR�R�R�RvtexecuteRM(R%R]R�tmsg((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR�1s
(
cCs&|jd�s"tj||�ndS(Nsstandard file not found:(t
startswithRRO(R%R�((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRO=scCs�tj|�|jj|j�|jj|j�tt��}|r[|jj|�n"t	j
j|j�r}|j�n|j
d�}|jd|�|jjdd|j�dS(NRtcmdt*tprefix(RR�RwR�R�RvR4RR�R;R>RNt
read_manifesttget_finalized_commandt
_add_egg_infotinclude_patternR(R%trcfilestei_cmd((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR�As

csX�jtjkrdStjj�j�}�fd�|D�}|jjj|�dS(s�
        Add paths for egg-info files for an external egg-base.

        The egg-info files are written to egg-base. If egg-base is
        outside the current working directory, this method
        searchs the egg-base directory for files to include
        in the manifest. Uses distutils.filelist.findall (which is
        really the version monkeypatched in by setuptools/__init__.py)
        to perform the search.

        Since findall records relative paths, prefix the returned
        paths with cmd.egg_base, so add_default's include_pattern call
        (which is looking for the absolute cmd.egg_info) will match
        them.
        Nc3s'|]}tjj�j|�VqdS(N(R;R>R?R(t.0R>(R�(sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pys	<genexpr>cs(RR;R<R6RwR�tallfilesR�(R%R�t
discoveredtresolved((R�sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR�Ns
cCs�|jd�}|jj�}|jjdd|j�|jjdd|�tjt	j
�}|jjd|d|dd�dS(NtbuildR�s(^|s)(RCS|CVS|\.svn)tis_regexi(R�R.tget_fullnameRwtexclude_patternRt
build_basetretescapeR;R�(R%R�tbase_dirR�((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR�fs(R{R|R�R&RLRkR�R�ROR�R�R�(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRus			
				
	cCsGdj|�}|jd�}t|d��}|j|�WdQXdS(s{Create a file with the specified name and write 'contents' (a
    sequence of strings without line terminators) to it.
    s
sutf-8RUN(R?RXRZR[(R)tcontentsR]((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyRMpscCs�tjd|�|js�|jj}|j|j|_}|j|j|_}z|j	|j
�Wd|||_|_Xt|jdd�}t
j|j
|�ndS(Ns
writing %stzip_safe(RRVRYR.RARR2RRftwrite_pkg_infoRtgetattrRR	twrite_safety_flag(R�tbasenameR)RAtoldvertoldnametsafe((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR�}s	cCs&tjj|�r"tjd�ndS(NssWARNING: 'depends.txt' is not used by setuptools 0.6!
Use the install_requires/extras_require setup() args instead.(R;R>RNRRO(R�R�R)((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytwarn_depends_obsolete�scCs;t|pd�}d�}t||�}|j|�dS(NcSs|dS(Ns
((tline((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyt<lambda>�R,((RRt
writelines(tstreamtreqstlinest	append_cr((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyt_write_requirements�s	cCs�|j}tj�}t||j�|jp1i}x>t|�D]0}|jdjt	���t|||�qAW|j
d||j��dS(Ns
[{extra}]
trequirements(R.RtStringIOR�tinstall_requirestextras_requiretsortedR[tformattvarsRTtgetvalue(R�R�R)tdistRRR�textra((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytwrite_requirements�s	cCs9t�}t||jj�|jd||j��dS(Nssetup-requirements(R�R�R.tsetup_requiresRTR�(R�R�R)RR((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytwrite_setup_requirements�s	cCsetjg|jj�D]}|jdd�d^q�}|jd|djt|��d�dS(Nt.iistop-level namess
(R'tfromkeysR.titer_distribution_namestsplitRMR?R�(R�R�R)tktpkgs((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytwrite_toplevel_names�s2cCst|||t�dS(N(t	write_argR�(R�R�R)((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyt
overwrite_arg�scCsgtjj|�d}t|j|d�}|dk	rMdj|�d}n|j||||�dS(Nis
(R;R>tsplitextR�R.RR?RT(R�R�R)RStargnametvalue((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyR��s
cCs�|jj}t|tj�s*|dkr3|}n�|dk	r�g}x�t|j��D]n\}}t|tj�s�tj	||�}dj
ttt|j
����}n|jd||f�qXWdj
|�}n|jd||t�dS(Ns
s	[%s]
%s

R,sentry points(R.tentry_pointsR1Rtstring_typesRR�titemsRtparse_groupR?RRqR*R�RTR�(R�R�R)RhRRtsectionR�((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyt
write_entries�s	'cCs}tjdt�tjjd�rytjd��C}x9|D]1}tj	d|�}|r;t
|jd��Sq;WWdQXndS(sd
    Get a -r### off of PKG-INFO Version in case this is an sdist of
    a subversion revision.
    s$get_pkg_info_revision is deprecated.sPKG-INFOsVersion:.*-r(\d+)\s*$iNi(twarningsROtDeprecationWarningR;R>RNtioRZR�tmatchtinttgroup(R]R�R�((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pytget_pkg_info_revision�s
 (:R�tdistutils.filelistRt	_FileListtdistutils.utilRR6Rtdistutils.errorsR;R�R�R�R�Rmtsetuptools.externRtsetuptools.extern.six.movesRt
setuptoolsRtsetuptools.command.sdistRRtsetuptools.command.setoptRtsetuptools.commandR	t
pkg_resourcesR
RRR
RRRRtsetuptools.unicode_utilsR�tpkg_resources.externRtsetuptools_svnRtImportErrorRRuRMR�R�R�R�R�R�R�R"R�R�R�(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/egg_info.pyt<module>sN:
�0\	
						
		

Zerion Mini Shell 1.0