Your IP : 18.119.117.122
3
K�Re7 � @ s~ d dl mZ d dljjZd 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 s4 x.t jd�D ] }x|j� | �D ]
}|V qW qW dS )z%Find all files under revision controlzsetuptools.file_findersN)�
pkg_resources�iter_entry_points�load)�dirname�ep�item� r
��/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/command/sdist.py�walk_revctrl s r c s� e Zd ZdZd0d2d3gZi Zdd
ddgZedd� eD ��Zdd� Z dd� Z
dd� Zdd� Ze
ejdd� ��Zdd� Zejd4k p�d5ej ko�d6k n p�d7ej ko�d8k n Zer�eZd$d%� Z� fd&d'�Zd(d)� Zd*d+� Zd,d-� Zd.d/� Z� ZS )9�sdistz=Smart sdist that finds anything supported by revision control�formats=N�6formats for source distribution (comma-separated list)� keep-temp�kz1keep the distribution tree around after creating zarchive file(s)� dist-dir=�d�Fdirectory to put the source distribution archive(s) in [default: dist]r z.rstz.txtz.mdc c s | ]}d j |�V qdS )z README{0}N)�format)�.0�extr
r
r � <genexpr>) s zsdist.<genexpr>c C s� | j d� | jd�}|j| _| jjtjj|jd�� | j� x| j � D ]}| j |� qFW | j
� t| jdg �}x*| j
D ] }dd|f}||krv|j|� qvW d 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 jj| � | j� d S )N)�origr �initialize_options�_default_to_gztar)r* r
r
r r0 >