관리-도구
편집 파일: sdist.cpython-311.pyc
� �܋f� � � � d dl mZ d dlmc mZ d dlZd dlZd dlm Z ddl mZ ddlm Z eZdd �Z G d � dej � � ZdS ) � )�logN)�chain� )�metadata� )�_ORIGINAL_SUBCOMMANDS� c # � K � t j d�� � D ]%} |� � � | � � E d{V �� �&dS )z%Find all files under revision controlzsetuptools.file_finders)�groupN)r �entry_points�load)�dirname�eps �i/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/command/sdist.py�walk_revctrlr s[ � � � ��#�*C�D�D�D� &� &���2�7�7�9�9�W�%�%�%�%�%�%�%�%�%�%�&� &� c �� � � e Zd ZdZg d�Zi Zg d�Z ed� eD � � � � Zd� Z d� Z d� Zee j d� � � � � Z� fd �Z� fd �Zd� Zd� Zd � Zd� Z� fd�Zd� Zd� Zd� Zd� Z� xZS )�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 # �@ K � | ]}d � |� � V � �dS )z README{0}N)�format)�.0�exts r � <genexpr>zsdist.<genexpr>1 s0 � � � �I�I��K�&�&�s�+�+�I�I�I�I�I�Ir c � � | � d� � | � d� � }|j | _ | j � t j � |j d� � � � | � � � | � � � D ]}| � |� � �| � � � t | j dg � � }| j D ] }dd|f}||vr|� |� � �!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�distribution� archive_files)�self�ei_cmd�cmd_namer �file�datas r �runz sdist.run3 s � �����$�$�$��+�+�J�7�7����� �� ���R�W�\�\�&�/�=�I�I�J�J�J������� �-�-�/�/� '� '�H����X�&�&�&�&���� � � ��T�.��b�A�A� ��&� (� (�D��R��&�D��:�%�%��!�!�$�'�'�'�� (� (r c �D � t j � | � � d S �N)�origr �initialize_options�r. s r r7 zsdist.initialize_optionsF s � �� �%�%�d�+�+�+�+�+r c � � | � � � 5 t j � | � � ddd� � dS # 1 swxY w Y dS )z% Workaround for #516 N)�_remove_os_linkr6 r r* r8 s r r* zsdist.make_distributionI s� � � � !� !� #� #� /� /��J�(�(��.�.�.� /� /� /� /� /� /� /� /� /� /� /� /���� /� /� /� /� /� /s � A�A� Ac # �� K � G d� d� � } t t d| � � } t `n# t $ r Y nw xY w dV � || ur|t _ dS dS # || ur|t _ w xY w)zG In a context, remove and restore os.link if it exists c � � e Zd ZdS )�&sdist._remove_os_link.<locals>.NoValueN)�__name__� __module__�__qualname__� r r �NoValuer= W s � � � � � ��Dr rB �linkN)r+ r% rC � Exception)rB �orig_vals r r: zsdist._remove_os_linkP s� � � � � � � � � � � � � �2�v�w�/�/�� ������ � � ��D� ���� #��E�E�E��w�&�&�"����� '�&��x�w�&�&�"���"�"�"�"s �/ � <�<� A �A*c �p �� t � � � � � | � � � d S r5 )�super�add_defaults� _add_defaults_build_sub_commands�r. � __class__s �r rH zsdist.add_defaultse s1 �� � ���������-�-�/�/�/�/�/r c � �� t � � � � � t j � d� � r| j � d� � d S d S )Nzpyproject.toml)rG �_add_defaults_optionalr% r&