_i1 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 dZg 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)matchdist_dirkeep)selfs /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/rotate.pyinitialize_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 isinstancestrsplitr stripset_undefined_options)r eps r finalize_optionszrotate.finalize_options s ::&* 99&'MNN KDIIDI djj#&;?::;K;KC;PQ;Pa,qwwy1;PQDJ""7,DE K&'BCJ K Rs B<