python (3.11.7)
    *eP                     b    d dl mZ d dlmZ d dlmZ d dlZd dlZd dlm	Z	  G d de	          Z
dS )    )convert_path)log)DistutilsOptionErrorN)Commandc                   4    e Zd ZdZdZg dZg Zd Zd Zd Z	dS )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                 0    d | _         d | _        d | _        d S )N)matchdist_dirkeep)selfs    [/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/site-packages/setuptools/command/rotate.pyinitialize_optionszrotate.initialize_options   s    
			    c                    | j         t          d          | j        t          d          	 t          | j                  | _        n"# t          $ r}t          d          |d }~ww xY wt          | j         t                    r)d | 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                 P    g | ]#}t          |                                          $S  )r   strip).0ps     r   
<listcomp>z+rotate.finalize_options.<locals>.<listcomp>(   s5       ,-QWWYY''  r   ,bdist)r   r   )	r
   r   r   int
ValueError
isinstancestrsplitset_undefined_options)r   es     r   finalize_optionszrotate.finalize_options   s    :&*  
 9&'MNNN	KDIDII 	K 	K 	K&'BCCJ	Kdj#&&