| Server IP : 52.221.34.188 / Your IP : 216.73.217.74 Web Server : Apache System : Linux ip-172-31-26-112 7.0.0-1017-aws #18~24.04.1-Ubuntu SMP PREEMPT Thu Oct 29 17:57:24 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.36 Disable Function : phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core22/2437/lib/python3/dist-packages/setuptools/command/__pycache__/ |
Upload File : |
o
�_�aP � @ sT d dl mZ d dlmZ d dlmZ d dlZd dlZd dlm Z G dd� de �Z
dS )� )�convert_path)�log)�DistutilsOptionErrorN)�Commandc @ s8 e Zd ZdZdZg d�Zg Zdd� Zdd� Zdd � 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 keepc C s d | _ d | _d | _d S )N)�match�dist_dir�keep)�self� r �;/usr/lib/python3/dist-packages/setuptools/command/rotate.py�initialize_options s
zrotate.initialize_optionsc
C s� | j d u r td��| jd u rtd��zt| j�| _W n ty+ } ztd�|�d }~ww t| j t�r>dd� | j �d�D �| _ | �dd� d S ) 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 S s g | ]}t |�� ��qS r )r �strip)�.0�pr r r �
<listcomp>( s �z+rotate.finalize_options.<locals>.<listcomp>�,�bdist)r r ) r
r r �int�
ValueError�
isinstance�str�split�set_undefined_options)r
�er r r �finalize_options s"