Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/command/__pycache__/sdist.cpython-311.pyc

�

�܋f����ddlmZddlmcmZddlZddlZddlm	Z	ddl
mZddlm
Z
eZdd	�ZGd
�dej��ZdS)
�)�logN)�chain�)�metadata�)�_ORIGINAL_SUBCOMMANDS�c#�K�tjd���D]%}|���|��Ed{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����eZdZdZgd�ZiZgd�Zed�eD����Zd�Z	d�Z
d�Zee
jd�����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>1s0����I�I��K�&�&�s�+�+�I�I�I�I�I�Irc��|�d��|�d��}|j|_|j�tj�|jd����|���|�	��D]}|�|���|�
��t|jdg��}|j
D] }dd|f}||vr|�|���!dS)N�egg_infozSOURCES.txt�
dist_filesrr	)�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.run3s������$�$�$��+�+�J�7�7�����
��
���R�W�\�\�&�/�=�I�I�J�J�J��������-�-�/�/�	'�	'�H����X�&�&�&�&���� � � ��T�.��b�A�A�
��&�	(�	(�D��R��&�D��:�%�%��!�!�$�'�'�'��	(�	(rc�D�tj�|��dS�N)�origr�initialize_options�r.s rr7zsdist.initialize_optionsFs���
�%�%�d�+�+�+�+�+rc��|���5tj�|��ddd��dS#1swxYwYdS)z%
        Workaround for #516
        N)�_remove_os_linkr6rr*r8s rr*zsdist.make_distributionIs����
!�
!�
#�
#�	/�	/��J�(�(��.�.�.�	/�	/�	/�	/�	/�	/�	/�	/�	/�	/�	/�	/����	/�	/�	/�	/�	/�	/s� A�A�	Ac#��K�Gd�d��}ttd|��}	t`n#t$rYnwxYw	dV�||ur|t_dSdS#||ur|t_wxYw)zG
        In a context, remove and restore os.link if it exists
        c��eZdZdS)�&sdist._remove_os_link.<locals>.NoValueN)�__name__�
__module__�__qualname__�rr�NoValuer=Ws�������DrrB�linkN)r+r%rC�	Exception)rB�orig_vals  rr:zsdist._remove_os_linkPs�����	�	�	�	�	�	�	�	��2�v�w�/�/��	������	�	�	��D�	����	#��E�E�E��w�&�&�"�����'�&��x�w�&�&�"���"�"�"�"s�/�
<�<�A�A*c�p��t�����|���dSr5)�super�add_defaults� _add_defaults_build_sub_commands�r.�	__class__s �rrHzsdist.add_defaultses1���
���������-�-�/�/�/�/�/rc���t�����tj�d��r|j�d��dSdS)Nzpyproject.toml)rG�_add_defaults_optionalr%r&�isfiler#r$rJs �rrMzsdist._add_defaults_optionalisW���
���&�&�(�(�(�
�7�>�>�*�+�+�	3��M� � �!1�2�2�2�2�2�	3�	3rc��|j���rk|�d��}|j�|�����|�|�|����dSdS)zgetting python files�build_pyN)r,�has_pure_modulesr"r#�extend�get_source_files�_add_data_files�_safe_data_files�r.rPs  r�_add_defaults_pythonzsdist._add_defaults_pythonns�����-�-�/�/�	B��1�1�*�=�=�H��M� � ��!:�!:�!<�!<�=�=�=�� � ��!6�!6�x�!@�!@�A�A�A�A�A�	B�	Brc�����d��}t|�����tz
}�fd�|D��}d�|D��}�j�t
j|����dS)N�buildc3�B�K�|]}��|��V��dSr5)r")r�cr.s  �rrz9sdist._add_defaults_build_sub_commands.<locals>.<genexpr>ys1�����D�D�!��*�*�1�-�-�D�D�D�D�D�Drc3�^K�|](}t|d���|���V��)dS)rSN)�hasattrrS)rr[s  rrz9sdist._add_defaults_build_sub_commands.<locals>.<genexpr>zs>����V�V�!�w�q�BT�7U�7U�V��#�#�%�%�V�V�V�V�V�Vr)r"�setr)rr#rRr�
from_iterable)r.rY�missing_cmds�cmds�filess`    rrIz&sdist._add_defaults_build_sub_commandsus�����*�*�7�3�3���5�1�1�3�3�4�4�7L�L��D�D�D�D�|�D�D�D��V�V�t�V�V�V���
���U�0��7�7�8�8�8�8�8rc��|jS)a�
        Since the ``sdist`` class is also used to compute the MANIFEST
        (via :obj:`setuptools.command.egg_info.manifest_maker`),
        there might be recursion problems when trying to obtain the list of
        data_files and ``include_package_data=True`` (which in turn depends on
        the files included in the MANIFEST).

        To avoid that, ``manifest_maker`` should be able to overwrite this
        method and avoid recursive attempts to build/analyze the MANIFEST.
        )�
data_filesrVs  rrUzsdist._safe_data_files}s
���"�"rc�N�|j�d�|D����dS)zA
        Add data files as found in build_py.data_files.
        c3�jK�|].\}}}}|D]$}tj�||��V��%�/dSr5)r%r&r')r�_�src_dir�	filenames�names     rrz(sdist._add_data_files.<locals>.<genexpr>�se����
�
�(��7�A�y�!�
�
��
�G�L�L��$�'�'�
�
�
�
�
�
�
rN)r#rR)r.rds  rrTzsdist._add_data_files�sD��	
�
���
�
�,6�
�
�
�	
�	
�	
�	
�	
rc���	t�����dS#t$rtjd��YdSwxYw)Nz&data_files contains unexpected objects)rG�_add_defaults_data_files�	TypeErrorr�warnrJs �rrlzsdist._add_defaults_data_files�sY���	?��G�G�,�,�.�.�.�.�.���	?�	?�	?��H�=�>�>�>�>�>�>�	?���s� %�A�Ac��|jD]$}tj�|��rdS�%|�dd�|j��z��dS)Nz,standard file not found: should have one of z, )�READMESr%r&�existsrnr')r.�fs  rr(zsdist.check_readme�sm����	�	�A��w�~�~�a� � �
����
�
�I�I�>����4�<�AX�AX�X�
�
�
�
�
rc��tj�|||��tj�|d��}t
td��rItj�|��r*tj|��|�	d|��|�
d���|��dS)Nz	setup.cfgrCr)r6r�make_release_treer%r&r'r]rq�unlink�	copy_filer"�save_version_info)r.�base_dirrb�dests    rrtzsdist.make_release_tree�s����
�$�$�T�8�U�;�;�;��w�|�|�H�k�2�2���2�v���	.�2�7�>�>�$�#7�#7�	.�
�I�d�O�O�O��N�N�;��-�-�-��"�"�:�.�.�@�@��F�F�F�F�Frc���tj�|j��sdSt	|jd��5}|���}ddd��n#1swxYwY|dkS)NF�rbs+# file GENERATED by distutils, do NOT edit
)r%r&rN�manifest�open�readline)r.�fp�
first_lines   r�_manifest_is_not_generatedz sdist._manifest_is_not_generated�s����w�~�~�d�m�,�,�	��5�
�$�-��
&�
&�	'�"������J�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'����	'�	'�	'�	'��L�L�Ls�A�A!�$A!c��tjd|j��t|jd��}|D]�}	|�d��}n'#t
$rtjd|z��Y�<wxYw|���}|�d��s|s�l|j	�
|����|���dS)z�Read the manifest file (named by 'self.manifest') and use it to
        fill in 'self.filelist', the list of files to include in the source
        distribution.
        zreading manifest file '%s'r{zUTF-8z"%r not UTF-8 decodable -- skipping�#N)r�infor|r}�decode�UnicodeDecodeErrorrn�strip�
startswithr#r$�close)r.r|�lines   r�
read_manifestzsdist.read_manifest�s���
	��-�t�}�=�=�=���
�t�,�,���	'�	'�D�
��{�{�7�+�+����%�
�
�
���=��D�E�E�E���
�����:�:�<�<�D����s�#�#�
�4�
���M� � ��&�&�&�&��������s�A�!A/�.A/)r>r?r@�__doc__�user_options�negative_opt�README_EXTENSIONS�tuplerpr3r7r*�staticmethod�
contextlib�contextmanagerr:rHrMrWrIrUrTrlr(rtr�r��
__classcell__)rKs@rrrs��������G�G����L�0�L�3�3�3���e�I�I�7H�I�I�I�I�I�G�(�(�(�&,�,�,�/�/�/����#�#����\�#�&0�0�0�0�0�3�3�3�3�3�
B�B�B�9�9�9�#�#�#�
�
�
�?�?�?�?�?����G�G�G�M�M�M�������rr)r	)�	distutilsr�distutils.command.sdist�commandrr6r%r��	itertoolsr�
_importlibrrYr�list�_default_revctrlrrArr�<module>r�s���������&�&�&�&�&�&�&�&�&�	�	�	�	�����������!�!�!�!�!�!�(�(�(�(�(�(���&�&�&�&�y�y�y�y�y�D�J�y�y�y�y�yr

Hacked By AnonymousFox1.0, Coded By AnonymousFox