OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
setuptools
/
command
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/14/2024 03:09:02 PM
rwxr-xr-x
📄
__init__.cpython-37.pyc
421 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
alias.cpython-37.pyc
2.33 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
bdist_egg.cpython-37.pyc
12.76 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
bdist_rpm.cpython-37.pyc
1.56 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
build_clib.cpython-37.pyc
2.43 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
build_ext.cpython-37.pyc
9.54 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
build_py.cpython-37.pyc
7.58 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
develop.cpython-37.pyc
5.94 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
dist_info.cpython-37.pyc
1.39 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
easy_install.cpython-37.pyc
61.57 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
egg_info.cpython-37.pyc
21.34 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install.cpython-37.pyc
4.13 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install_egg_info.cpython-37.pyc
2.4 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install_lib.cpython-37.pyc
4.05 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
install_scripts.cpython-37.pyc
2.4 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
py36compat.cpython-37.pyc
4.5 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
register.cpython-37.pyc
879 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
rotate.cpython-37.pyc
2.47 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
saveopts.cpython-37.pyc
967 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
sdist.cpython-37.pyc
6.42 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
setopt.cpython-37.pyc
4.55 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
test.cpython-37.pyc
7.63 KB
11/13/2023 09:39:28 PM
rw-r--r--
📄
upload.cpython-37.pyc
852 bytes
11/13/2023 09:39:28 PM
rw-r--r--
📄
upload_docs.cpython-37.pyc
5.98 KB
11/13/2023 09:39:28 PM
rw-r--r--
Editing: rotate.cpython-37.pyc
Close
B �q���G� @ sT d dl mZ d dlmZ d dlmZ d dlZd dlZd dlm Z G dd� de �Z dS )� )�convert_path)�log)�DistutilsOptionErrorN)�Commandc @ s: e Zd ZdZdZdddgZg Zdd� Zdd � Zd d� 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 C s d | _ d | _d | _d S )N)�match�dist_dir�keep)�self� r ��/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/command/rotate.py�initialize_options s zrotate.initialize_optionsc C s� | j d krtd��| jd kr$td��yt| j�| _W n, tk r` } ztd�|�W d d }~X Y nX 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 zrotate.finalize_optionsc C s� | � d� ddlm} x�| jD ]�}| j�� d | }|tj�| j|��}dd� |D �}|� � |� � t�dt |�|� || jd � }xD|D ]<\}}t�d|� | js�tj�|�r�t�|� q�t�|� q�W qW d S ) N�egg_infor )�glob�*c S s g | ]}t j�|�|f�qS r )�os�path�getmtime)r �fr r r r 4 s zrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)�run_commandr r �distribution�get_namer"