Your IP : 3.144.4.50


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

�
��Rec@s�ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZdefd��YZdS(	i����(tconvert_path(tlog(tDistutilsOptionErrorN(tsix(tCommandtrotatecBsDeZdZdZdddgZgZd�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�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/rotate.pytinitialize_optionss		cCs�|jdkrtd��n|jdkr<td��nyt|j�|_Wntk
rqtd��nXt|jtj�r�g|jj	d�D]}t
|j��^q�|_n|jdd�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(RR(
R
R	RRtintt
ValueErrort
isinstanceRtstring_typestsplitRtstriptset_undefined_options(R
tp((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/rotate.pytfinalize_optionss
7cCs1|jd�ddlm}x
|jD]}|jj�d|}|tjj|j|��}g|D]}tjj	|�|f^qi}|j
�|j�tj
dt|�|�||j}x_|D]W\}}tj
d|�|js�tjj|�rtj|�q%tj|�q�q�Wq'WdS(Ntegg_infoi����(tglobt*s%d file(s) matching %ssDeleting %s(trun_commandRR
tdistributiontget_nametostpathtjoinRtgetmtimetsorttreverseRtinfotlenRtdry_runtisdirtshutiltrmtreetunlink(R
Rtpatterntfilestftt((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/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_optionsRRR1(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/rotate.pyRs			(
tdistutils.utilRt	distutilsRtdistutils.errorsRR R*tsetuptools.externRt
setuptoolsRR(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/rotate.pyt<module>s

?>