[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.147.57.239: ~ $
U

+�aP�@sTddlmZddlmZddlmZddlZddlZddlm	Z	Gdd�de	�Z
dS)�)�convert_path)�log)�DistutilsOptionErrorN)�Commandc@s:eZdZdZdZdddgZgZdd�Zdd	�Zd
d�Z	dS)
�rotatezDelete older distributionsz2delete older distributions, keeping N newest files)zmatch=�mzpatterns to match (required))z	dist-dir=�dz%directory where the distributions are)zkeep=�kz(number of matching distributions to keepcCsd|_d|_d|_dS)N)�match�dist_dir�keep)�self�r�A/tmp/pip-install-1bd_1mtk/setuptools/setuptools/command/rotate.py�initialize_optionsszrotate.initialize_optionsc
Cs�|jdkrtd��|jdkr$td��zt|j�|_Wn,tk
r`}ztd�|�W5d}~XYnXt|jt�r�dd�|j�d�D�|_|�dd�dS)	NzQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')z$Must specify number of files to keepz--keep must be an integercSsg|]}t|����qSr)r�strip)�.0�prrr�
<listcomp>(sz+rotate.finalize_options.<locals>.<listcomp>�,�bdist)rr)	r
rr�int�
ValueError�
isinstance�str�split�set_undefined_options)r
�errr�finalize_optionss
�

�zrotate.finalize_optionscCs�|�d�ddlm}|jD]�}|j��d|}|tj�|j|��}dd�|D�}|�	�|�
�t�dt
|�|�||jd�}|D]<\}}t�d|�|js�tj�|�r�t�|�q�t�|�q�qdS)	N�egg_infor)�glob�*cSsg|]}tj�|�|f�qSr)�os�path�getmtime)r�frrrr4szrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)�run_commandr r
�distribution�get_namer"r#�joinr�sort�reverser�info�lenr�dry_run�isdir�shutil�rmtree�unlink)r
r �pattern�files�tr%rrr�run-s 

z
rotate.runN)
�__name__�
__module__�__qualname__�__doc__�description�user_options�boolean_optionsrrr6rrrrr
s�r)�distutils.utilr�	distutilsr�distutils.errorsrr"r0�
setuptoolsrrrrrr�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-38.pyc File 347 B 0644
alias.cpython-38.pyc File 2.29 KB 0644
bdist_egg.cpython-38.pyc File 12.7 KB 0644
bdist_rpm.cpython-38.pyc File 1.3 KB 0644
build_clib.cpython-38.pyc File 2.38 KB 0644
build_ext.cpython-38.pyc File 9.63 KB 0644
build_py.cpython-38.pyc File 8.14 KB 0644
develop.cpython-38.pyc File 6.24 KB 0644
dist_info.cpython-38.pyc File 1.33 KB 0644
easy_install.cpython-38.pyc File 61.74 KB 0644
egg_info.cpython-38.pyc File 21.42 KB 0644
install.cpython-38.pyc File 3.93 KB 0644
install_egg_info.cpython-38.pyc File 2.35 KB 0644
install_lib.cpython-38.pyc File 4.04 KB 0644
install_scripts.cpython-38.pyc File 2.34 KB 0644
py36compat.cpython-38.pyc File 4.45 KB 0644
register.cpython-38.pyc File 815 B 0644
rotate.cpython-38.pyc File 2.43 KB 0644
saveopts.cpython-38.pyc File 893 B 0644
sdist.cpython-38.pyc File 6.24 KB 0644
setopt.cpython-38.pyc File 4.4 KB 0644
test.cpython-38.pyc File 8.13 KB 0644
upload.cpython-38.pyc File 788 B 0644
upload_docs.cpython-38.pyc File 5.95 KB 0644