관리-도구
편집 파일: rotate.cpython-35.pyc
�Ret � @ s� d d l m Z d d l m Z d d l m Z d d l Z d d l Z d d l m Z d d l m Z Gd d � d e � Z d S) � )�convert_path)�log)�DistutilsOptionErrorN)�six)�Commandc @ sU e Z d Z d Z d Z d d d g Z g Z d d � Z d d � Z d d � Z d S)�rotatezDelete older distributionsz2delete older distributions, keeping N newest files�match=�m�patterns to match (required)� dist-dir=�d�%directory where the distributions are�keep=�k�(number of matching distributions to keepc C s d | _ d | _ d | _ d S)N)�match�dist_dir�keep)�self� r ��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/rotate.py�initialize_options s zrotate.initialize_optionsc C s� | j d k r t d � � | j d k r6 t d � � y t | j � | _ Wn t k rl t d � � Yn Xt | j t j � r� d d � | j j d � D� | _ | j d d � 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"