Your IP : 3.128.201.71
U
�Qab� � @ s� d dl mZ d dlm mZ d dlZd dlZd dlZd dl Z d dl
mZ ddlm
Z
d dlZeZddd�ZG d d
� d
e
ej�ZdS )� )�logN)�six� )�sdist_add_defaults� c c s, t �d�D ]}|�� | �D ]
}|V qq
dS )z%Find all files under revision controlzsetuptools.file_findersN)�
pkg_resourcesZiter_entry_points�load)�dirnameZep�item� r �</usr/lib/python3.8/site-packages/setuptools/command/sdist.py�walk_revctrl s r
c s� e Zd ZdZdddgZi ZddddgZed d
� eD ��Zdd� Z d
d� Z
dd� Zdd� Ze
ejdd� ��Zdd� Zejdk p�dej ko�dk n p�dej ko�dk n Zer�eZdd� Z� fdd�Zd d!� Zd"d#� Zd$d%� Zd&d'� 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]r z.rstz.txtz.mdc c s | ]}d � |�V qdS )z README{0}N)�format)�.0Zextr r r � <genexpr>) s zsdist.<genexpr>c C s� | � d� | �d�}|j| _| j�tj�|jd�� | �� | � � D ]}| � |� qD| �
� t| jdg �}| j
D ] }dd|f}||krp|�|� qpd S )N�egg_infozSOURCES.txt�
dist_filesr r )Zrun_command�get_finalized_command�filelist�append�os�path�joinr �check_readmeZget_sub_commands�make_distribution�getattr�distributionZ
archive_files)�selfZei_cmdZcmd_namer �file�datar r r �run+ s
z sdist.runc C s t j�| � | �� d S )N)�origr �initialize_options�_default_to_gztar�r r r r r% >