ok

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //usr/lib/python2.7/site-packages/setuptools/command/rotate.pyo

�
b-�Qc@s|ddlZddlZddlmZddlmZddlmZddlmZddl	Tdefd��YZ
dS(	i����N(tCommand(t
basestring(tconvert_path(tlog(t*trotatecBsDeZdZdZdddgZgZd�Zd�Zd
�ZRS(sDelete older distributionss2delete older distributions, keeping N newest filessmatch=tmspatterns to match (required)s	dist-dir=tds%directory where the distributions areskeep=tks(number of matching distributions to keepcCsd|_d|_d|_dS(N(tNonetmatchtdist_dirtkeep(tself((s=/usr/lib/python2.7/site-packages/setuptools/command/rotate.pytinitialize_optionss		cCs�|jdkrtd��n|jdkr<td��nyt|j�|_Wntk
rqtd��nXt|jt�r�g|jjd�D]}t	|j
��^q�|_n|jdd�dS(NsQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')s$Must specify number of files to keeps--keep must be an integert,tbdistR(sdist_dirsdist_dir(R
R	tDistutilsOptionErrorRtintt
ValueErrort
isinstanceRtsplitRtstriptset_undefined_options(R
tp((s=/usr/lib/python2.7/site-packages/setuptools/command/rotate.pytfinalize_optionss
7cCs|jd�ddlm}x�|jD]�}|jj�d|}|tjj|j|��}g|D]}tjj	|�|f^qi}|j
�|j�tj
dt|�|�||j}x=|D]5\}}tj
d|�|js�tj|�q�q�Wq'WdS(Ntegg_infoi����(tglobRs%d file(s) matching %ssDeleting %s(trun_commandRR
tdistributiontget_nametostpathtjoinRtgetmtimetsorttreverseRtinfotlenRtdry_runtunlink(R
Rtpatterntfilestftt((s=/usr/lib/python2.7/site-packages/setuptools/command/rotate.pytrun+s
+


	(smatch=Rspatterns to match (required)(s	dist-dir=Rs%directory where the distributions are(skeep=Rs(number of matching distributions to keep(	t__name__t
__module__t__doc__tdescriptiontuser_optionstboolean_optionsRRR-(((s=/usr/lib/python2.7/site-packages/setuptools/command/rotate.pyRs			(t	distutilsRt
setuptoolsRtsetuptools.compatRtdistutils.utilRRtdistutils.errorsR(((s=/usr/lib/python2.7/site-packages/setuptools/command/rotate.pyt<module>s


Zerion Mini Shell 1.0