%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/command/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/command/__pycache__/sdist.cpython-312.pyc

�


_�d����ddlmZddlmcmZddlZddlZddlZddl	Z	ddl
mZddlm
Z
ddlmZeZdd�ZGd	�d
ej�Zy)�)�logN)�chain�)�metadata�)�_ORIGINAL_SUBCOMMANDSc#�K�tjd��D]!}|j�|�D]}|����#y�w)z%Find all files under revision controlzsetuptools.file_finders)�groupN)r�entry_points�load)�dirname�ep�items   �:/usr/lib/python3/dist-packages/setuptools/command/sdist.py�walk_revctrlrsB�����#�#�*C�D����B�G�G�I�g�&�	�D��J�	��s�<>c����eZdZdZgd�ZiZgd�Zed�eD��Zd�Z	d�Z
d�Zd�Ze
ejd	���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])�z.rstz.txtz.mdc#�>K�|]}dj|����y�w)z	README{0}N)�format)�.0�exts  r�	<genexpr>zsdist.<genexpr>4s����I��K�&�&�s�+�I�s�c��|jd�|jd�}|j|_|jjtj
j
|jd��|j�|j�D]}|j|��|j�t|jdg�}|jD]}dd|f}||vs�
|j|��y)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.run6s�������$��+�+�J�7������
��
�
���R�W�W�\�\�&�/�/�=�I�J������-�-�/�	'�H����X�&�	'�	
��� ��T�.�.��b�A�
��&�&�	(�D��R��&�D��:�%��!�!�$�'�	(�c�b�tjj|�|j�y�N)�origr�initialize_options�_default_to_gztar�r.s rr8zsdist.initialize_optionsIs ���
�
�%�%�d�+���� r4c�<�tjdk\rydg|_y)N)��r�betar�gztar)�sys�version_info�formatsr:s rr9zsdist._default_to_gztarNs�����3�3���y��r4c��|j�5tjj|�ddd�y#1swYyxYw)z%
        Workaround for #516
        N)�_remove_os_linkr7rr*r:s rr*zsdist.make_distributionTs7���
!�
!�
#�	/��J�J�(�(��.�	/�	/�	/�s	� :�Ac#��K�Gd�d�}ttd|�}	t`	d��||urt	td|�yy#t$rY�'wxYw#||urt	td|�wwxYw�w)zG
        In a context, remove and restore os.link if it exists
        c��eZdZy)�&sdist._remove_os_link.<locals>.NoValueN)�__name__�
__module__�__qualname__�r4r�NoValuerGbs��r4rL�linkN)r+r%rM�	Exception�setattr)rL�orig_vals  rrDzsdist._remove_os_link[sz����	�	��2�v�w�/��	���	.���w�&���F�H�-�'���	��	��
�w�&���F�H�-�'�s8�A+�A�A�A+�	A
�
A+�A
�
A+�A(�(A+c�B��t�|��|j�yr6)�super�add_defaults� _add_defaults_build_sub_commands�r.�	__class__s �rrSzsdist.add_defaultsps���
�����-�-�/r4c���t�|��tjj	d�r|j
j
d�yy)Nzpyproject.toml)rR�_add_defaults_optionalr%r&�isfiler#r$rUs �rrXzsdist._add_defaults_optionalts7���
��&�(�
�7�7�>�>�*�+��M�M� � �!1�2�,r4c���|jj�r[|jd�}|jj	|j��|j
|j|��yy)zgetting python files�build_pyN)r,�has_pure_modulesr"r#�extend�get_source_files�_add_data_files�_safe_data_files�r.r[s  r�_add_defaults_pythonzsdist._add_defaults_pythonys]�����-�-�/��1�1�*�=�H��M�M� � ��!:�!:�!<�=�� � ��!6�!6�x�!@�A�0r4c�����jd�}t|j��tz
}�fd�|D�}d�|D�}�jjt
j|��y)N�buildc3�@�K�|]}�j|����y�wr6)r")r�cr.s  �rrz9sdist._add_defaults_build_sub_commands.<locals>.<genexpr>�s�����D�!��*�*�1�-�D�s�c3�VK�|]!}t|d�s�|j����#y�w)r^N)�hasattrr^)rrfs  rrz9sdist._add_defaults_build_sub_commands.<locals>.<genexpr>�s#����V�!�w�q�BT�7U��#�#�%�V�s�)�))r"�setr)rr#r]r�
from_iterable)r.rd�missing_cmds�cmds�filess`    rrTz&sdist._add_defaults_build_sub_commands�s]����*�*�7�3���5�1�1�3�4�7L�L��D�|�D��V�t�V���
�
���U�0�0��7�8r4c��|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_filesras  rr`zsdist._safe_data_files�s���"�"�"r4c�H�|jjd�|D��y)zA
        Add data files as found in build_py.data_files.
        c3�tK�|]0\}}}}|D]$}tjj||����&�2y�wr6)r%r&r')r�_�src_dir�	filenames�names     rrz(sdist._add_data_files.<locals>.<genexpr>�sD����
�(��7�A�y�!�
��
�G�G�L�L��$�'�
�'�
�s�68N)r#r])r.ros  rr_zsdist._add_data_files�s#��	
�
�
���
�,6�
�	
r4c�l��	t�|��y#t$rtjd�YywxYw)Nz&data_files contains unexpected objects)rR�_add_defaults_data_files�	TypeErrorr�warnrUs �rrwzsdist._add_defaults_data_files�s/���	?��G�,�.���	?��H�H�=�>�	?�s��3�3c���|jD]#}tjj|�s�#y|j	ddj|j�z�y)Nz,standard file not found: should have one of z, )�READMESr%r&�existsryr')r.�fs  rr(zsdist.check_readme�sK�����	�A��w�w�~�~�a� ��	�
�I�I�>����4�<�<�AX�X�
r4c�r�tjj|||�tjj|d�}t
td�rFtjj|�r'tj|�|jd|�|jd�j|�y)Nz	setup.cfgrMr)r7r�make_release_treer%r&r'rhr|�unlink�	copy_filer"�save_version_info)r.�base_dirrm�dests    rrzsdist.make_release_tree�s{���
�
�$�$�T�8�U�;��w�w�|�|�H�k�2���2�v��2�7�7�>�>�$�#7�
�I�I�d�O��N�N�;��-��"�"�:�.�@�@��Fr4c��tjj|j�syt	j
|jd�5}|j
�}ddd�dj�k7S#1swY�xYw)NF�rbz+# file GENERATED by distutils, do NOT edit
)r%r&rY�manifest�io�open�readline�encode)r.�fp�
first_lines   r�_manifest_is_not_generatedz sdist._manifest_is_not_generated�sb���w�w�~�~�d�m�m�,��
�W�W�T�]�]�D�
)�	'�R�����J�	'��K�R�R�T�T�T�	'�	'�s�A7�7Bc��tjd|j�t|jd�}|D]S}	|j	d�}|j�}|jd�s|s�9|jj|��U|j�y#t
$rtjd|z�Y��wxYw)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�UnicodeDecodeErrorry�strip�
startswithr#r$�close)r.r��lines   r�
read_manifestzsdist.read_manifest�s���
	���-�t�}�}�=���
�
�t�,���	'�D�
��{�{�7�+��
�:�:�<�D����s�#�4���M�M� � ��&�	'�	�����&�
����=��D�E��
�s�B � !C�C)rHrIrJ�__doc__�user_options�negative_opt�README_EXTENSIONS�tupler{r3r8r9r*�staticmethod�
contextlib�contextmanagerrDrSrXrbrTr`r_rwr(rr�r��
__classcell__)rVs@rrrs����G��L�0�L�3���I�7H�I�I�G�(�&!�
!�/�����.���.�&0�3�
B�9�#�
�?��G�U�r4r)r)�	distutilsr�distutils.command.sdist�commandrr7r%r@r�r��	itertoolsr�
_importlibrrdr�list�_default_revctrlrrKr4r�<module>r�s@���&�&�	�
�	���!�(����A�D�J�J�Ar4

Zerion Mini Shell 1.0