Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/command/__pycache__/rotate.cpython-311.pyc

�

�܋f`��n�ddlmZddlmZddlmZddlmZddlZddl	Z	ddl
mZGd�de��ZdS)	�)�annotations)�convert_path)�log)�DistutilsOptionErrorN)�Commandc�@�eZdZUdZdZgd�ZgZded<d�Zd�Z	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 keepz	list[str]�boolean_optionsc�0�d|_d|_d|_dS)N)�match�dist_dir�keep)�selfs �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/command/rotate.py�initialize_optionszrotate.initialize_optionss����
���
���	�	�	�c��|j�td���|j�td���	t|j��|_n"#t$r}td��|�d}~wwxYwt|jt��r)d�|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 integerc�P�g|]#}t|�������$S�)r�strip)�.0�ps  r�
<listcomp>z+rotate.finalize_options.<locals>.<listcomp>*s(��Q�Q�Q�a�,�q�w�w�y�y�1�1�Q�Q�Qr�,�bdist)rr)	rrr�int�
ValueError�
isinstance�str�split�set_undefined_options)r�es  r�finalize_optionszrotate.finalize_optionss����:��&�*���
��9��&�'M�N�N�N�	K��D�I���D�I�I���	K�	K�	K�&�'B�C�C��J�����	K�����d�j�#�&�&�	R�Q�Q�4�:�;K�;K�C�;P�;P�Q�Q�Q�D�J��"�"�7�,D�E�E�E�E�Es�A�
A'�A"�"A'c��|�d��ddlm}|jD�]"}|j���dz|z}|t
j�|j|����}d�|D��}|�	��|�
��tjdt|��|��||jd�}|D]i\}}tjd|��|jsHt
j�|��rt#j|���Utj|���j��$dS)N�egg_infor)�glob�*c�P�g|]#}tj�|��|f��$Sr)�os�path�getmtime)r�fs  rrzrotate.run.<locals>.<listcomp>4s-��=�=�=�!�b�g�&�&�q�)�)�1�-�=�=�=rz%d file(s) matching %szDeleting %s)�run_commandr)r�distribution�get_namer,r-�joinr�sort�reverser�info�lenr�dry_run�isdir�shutil�rmtree�unlink)rr)�pattern�files�tr/s      r�runz
rotate.run-sE������$�$�$��������z�	%�	%�G��'�0�0�2�2�S�8�7�B�G��D�����d�m�W�=�=�>�>�E�=�=�u�=�=�=�E��J�J�L�L�L��M�M�O�O�O��H�-�s�5�z�z�7�C�C�C��$�)�+�+�&�E��
%�
%���1�����*�*�*��|�%��w�}�}�Q�'�'�%��
�a�(�(�(�(��	�!�����

%�	%�	%rN)�__name__�
__module__�__qualname__�__doc__�description�user_optionsr
�__annotations__rr&r@rrrr	r	su�������$�$�F�K����L�"$�O�#�#�#�#����
F�F�F� %�%�%�%�%rr	)
�
__future__r�distutils.utilr�	distutilsr�distutils.errorsrr,r:�
setuptoolsrr	rrr�<module>rMs���"�"�"�"�"�"�'�'�'�'�'�'�������1�1�1�1�1�1�	�	�	�	�
�
�
�
�������4%�4%�4%�4%�4%�W�4%�4%�4%�4%�4%r

Hacked By AnonymousFox1.0, Coded By AnonymousFox