관리-도구
편집 파일: rotate.cpython-312.pyc
� t��e1 � �Z � d dl mZ d dlmZ d dlmZ d dlZd dlZd dlm Z G d� de � Z y)� )�convert_path)�log)�DistutilsOptionErrorN)�Commandc �2 � e Zd ZdZdZg d�Zg Zd� Zd� Zd� Z y)�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 �. � d | _ d | _ d | _ y )N)�match�dist_dir�keep)�selfs ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/rotate.py�initialize_optionszrotate.initialize_options s � ��� ��� ��� � c � � | j �t d� �| j �t d� � t | j � | _ t | j t � rE| j j d� D �cg c] }t |j � � �� c}| _ | j dd� y # t $ r}t d� |�d }~ww xY wc c}w )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 integer�,�bdist)r r )r r r �int� ValueError� isinstance�str�splitr �strip�set_undefined_options)r �e�ps r �finalize_optionszrotate.finalize_options s� � ��:�:��&�*�� � �9�9��&�'M�N�N� K��D�I�I��D�I� �d�j�j�#�&�;?�:�:�;K�;K�C�;P�Q�a�,�q�w�w�y�1�Q�D�J��"�"�7�,D�E�� � K�&�'B�C��J�� K�� Rs �B<