관리-도구
편집 파일: sdist.cpython-311.pyc
� N�Dg� � � � d dl mZ d dlmc mZ d dlZd dlZd dlZd dl m Z ddlmZ ddl mZ eZdd �Z G d � dej � � ZdS ) � )�logN)�chain� )�metadata� )�_ORIGINAL_SUBCOMMANDS� c # � K � t j d�� � D ]&} |� � � | � � D ]}|V � ��'dS )z%Find all files under revision controlzsetuptools.file_finders)�groupN)r �entry_points�load)�dirname�ep�items �x/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/sdist.py�walk_revctrlr s_ � � � ��#�*C�D�D�D� � ���B�G�G�I�I�g�&�&� � �D��J�J�J�J� �� � c �� � � e Zd ZdZg d�Zi Zg d�Z ed� eD � � � � Zd� Z d� Z d� Zd� Ze ej 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>3 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.run5 s � �����$�$�$��+�+�J�7�7����� �� ���R�W�\�\�&�/�=�I�I�J�J�J������� �-�-�/�/� '� '�H����X�&�&�&�&���� � � ��T�.��b�A�A� ��&� (� (�D��R��&�D��:�%�%��!�!�$�'�'�'�� (� (r c �l � t j � | � � | � � � d S �N)�origr �initialize_options�_default_to_gztar�r/ s r r8 zsdist.initialize_optionsH s0 � �� �%�%�d�+�+�+���� � � � � r c �: � t j dk rd S dg| _ d S )N)� � r �betar �gztar)�sys�version_info�formatsr: s r r9 zsdist._default_to_gztarM s# � ���3�3�3��F��y����r c � � | � � � 5 t j � | � � ddd� � dS # 1 swxY w Y dS )z% Workaround for #516 N)�_remove_os_linkr7 r r+ r: s r r+ zsdist.make_distributionS s� � � � !� !� #� #� /� /��J�(�(��.�.�.� /� /� /� /� /� /� /� /� /� /� /� /���� /� /� /� /� /� /s � A�A� Ac # � K � G d� d� � } t t d| � � } t `n# t $ r Y nw xY w dV � || urt t d|� � dS dS # || urt t d|� � w 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 �NoValuerG a s � � � � � ��Dr rL �linkN)r, r&