Hacked By AnonymousFox
o
~�Re � @ sx d dl mZ d dlm mZ d dlZd dlZd dlZd dl Z ddl
mZ d dlZe
Zd
dd�ZG dd � d eej�ZdS )� )�logN� )�sdist_add_defaults� c c s. � t �d�D ]}|�� | �D ]}|V qqdS )z%Find all files under revision controlzsetuptools.file_findersN)�
pkg_resources�iter_entry_points�load)�dirname�ep�item� r ��/builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-2.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/command/sdist.py�walk_revctrl s ���r c s� e Zd ZdZg d�Zi Zg d�Zedd� eD ��Zdd� Z dd � Z
d
d� Zdd
� Ze
ejdd� ��Z� fdd�Zdd� Zdd� Zdd� Z� fdd�Zdd� Zdd� Zdd� Zd d!� Z� ZS )"�sdistz=Smart sdist that finds anything supported by revision control))zformats=Nz6formats for source distribution (comma-separated list))z keep-temp�kz@keep the distribution tree around after creating archive file(s))z dist-dir=�dzFdirectory to put the source distribution archive(s) in [default: dist])zowner=�uz@Owner name used when creating a tar file [default: current user])zgroup=�gzAGroup name used when creating a tar file [default: current group])r z.rstz.txtz.mdc c s � | ]}d � |�V qdS )z README{0}N)�format)�.0�extr r r
� <genexpr>+ s � zsdist.<genexpr>c C s� | � d� | �d�}|j| _| j�tj�|jd�� | �� | � � D ]}| � |� q"| �
� t| jdg �}| j
D ]}dd|f}||vrH|�|� q8d S )N�egg_infozSOURCES.txt�
dist_filesr r )�run_command�get_finalized_command�filelist�append�os�path�joinr �check_readme�get_sub_commands�make_distribution�getattr�distributionZ
archive_files)�selfZei_cmd�cmd_namer �file�datar r r
�run- s
��z sdist.runc C s t j�| � | �� d S �N)�origr �initialize_options�_default_to_gztar�r&