%PDF- %PDF-
Mini Shell

Mini Shell

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

�


_�d*$��Z�dZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddl
mZddlZddlmZddlmZdd	lmZdd
lmZmZddlmZddlmZgd
�Zej<j>ZdZ ejBZ"ejBZ#d�Z$d�Z%d�Z&ejNjLje&_ejPejNjR�Z*Gd�de*�Z)d�Z+ejXfd�Z-ej\e�d��ZGd�de/�Z0ejb�y)z@Extensions to the 'distutils' for large or complex distributions�N)�DistutilsOptionError)�convert_path�)�SetuptoolsDeprecationWarning)�	Extension)�Distribution)�Require)�
PackageFinder�PEP420PackageFinder)�monkey)�logging)�setupr�Commandrr	r�
find_packages�find_namespace_packagesc��Gd�dtjj�}||�}|jd��|jrt|�yy)Nc�4��eZdZdZ�fd�Zd�fd�	Zd�Z�xZS)�4_install_setup_requires.<locals>.MinimalDistributionzl
        A minimal version of a distribution for supporting the
        fetch_build_eggs interface.
        c���d}t|�t|�zD�cic]}|||��
}}t�|�	|�|jj	�ycc}w)N)�dependency_links�setup_requires)�set�super�__init__�set_defaults�_disable)�self�attrs�_incl�k�filtered�	__class__s     ��5/usr/lib/python3/dist-packages/setuptools/__init__.pyrz=_install_setup_requires.<locals>.MinimalDistribution.__init__5sU���8�E�-0��Z�#�e�*�-D�E���5��8��E�H�E��G��X�&����&�&�(��Fs�
Ac�X��	t�|�|�\}}|dfS#t$r|dfcYSwxYw)zAIgnore ``pyproject.toml``, they are not related to setup_requires�)r� _split_standard_project_metadata�	Exception)r�	filenames�cfg�tomlr"s    �r#�_get_project_config_fileszN_install_setup_requires.<locals>.MinimalDistribution._get_project_config_files<s=���
%�!�G�D�Y�O�	��T��B�w����
%� �"�}�$�
%�s��
)�)c��y)zl
            Disable finalize_options to avoid building the working set.
            Ref #2158.
            Nr%)rs r#�finalize_optionszE_install_setup_requires.<locals>.MinimalDistribution.finalize_optionsDs���N)�__name__�
__module__�__qualname__�__doc__rr+r-�
__classcell__�r"s@r#�MinimalDistributionr/s���	�
	)�	%�	r.r6T)�ignore_option_errors)�	distutils�corer�parse_config_filesr�_fetch_build_eggs)rr6�dists   r#�_install_setup_requiresr=,sM���i�n�n�9�9��6�u�%�D�	�����6�����$��r.c��	|j|j�y#t$rS}d}d|jjvr3t|d�r|j
|��|jd|�d���d}~wwxYw)Na�
        It is possible a package already installed in your system
        contains an version that is invalid according to PEP 440.
        You can try `pip install --use-pep517` as a workaround for this problem,
        or rely on a new virtual environment.

        If the problem refers to a package that is not installed yet,
        please contact that package's maintainers or distributors.
        �InvalidVersion�add_note�
)�fetch_build_eggsrr'r"r0�hasattrr@�announce)r<�ex�msgs   r#r;r;Rsz������d�1�1�2�������r�|�|�4�4�4��r�:�&����C� �	��
�
��3�%�r�l�+�
���s��	A:�AA5�5A:c�~�tj�t|�tjj
di|��S)Nr%)r
�	configurer=r8r9r)rs r#rrgs.�������E�"��>�>���(�%�(�(r.c�<��eZdZdZdZ�fd�Zdd�Zd�Zdd�Z�xZ	S)	ra�

    Setuptools internal actions are organized using a *command design pattern*.
    This means that each action (or group of closely related actions) executed during
    the build should be implemented as a ``Command`` subclass.

    These commands are abstractions and do not necessarily correspond to a command that
    can (or should) be executed via a terminal, in a CLI fashion (although historically
    they would).

    When creating a new command from scratch, custom defined classes **SHOULD** inherit
    from ``setuptools.Command`` and implement a few mandatory methods.
    Between these mandatory methods, are listed:

    .. method:: initialize_options(self)

        Set or (reset) all options/attributes/caches used by the command
        to their default values. Note that these values may be overwritten during
        the build.

    .. method:: finalize_options(self)

        Set final values for all options/attributes used by the command.
        Most of the time, each option/attribute/cache should only be set if it does not
        have any value yet (e.g. ``if self.attr is None: self.attr = val``).

    .. method:: run(self)

        Execute the actions intended by the command.
        (Side effects **SHOULD** only take place when ``run`` is executed,
        for example, creating new files or writing to the terminal output).

    A useful analogy for command classes is to think of them as subroutines with local
    variables called "options".  The options are "declared" in ``initialize_options()``
    and "defined" (given their final values, aka "finalized") in ``finalize_options()``,
    both of which must be defined by every command class. The "body" of the subroutine,
    (where it does all the work) is the ``run()`` method.
    Between ``initialize_options()`` and ``finalize_options()``, ``setuptools`` may set
    the values for options/attributes based on user's input (or circumstance),
    which means that the implementation should be careful to not overwrite values in
    ``finalize_options`` unless necessary.

    Please note that other commands (or other parts of setuptools) may also overwrite
    the values of the command's options/attributes multiple times during the build
    process.
    Therefore it is important to consistently implement ``initialize_options()`` and
    ``finalize_options()``. For example, all derived attributes (or attributes that
    depend on the value of other attributes) **SHOULD** be recomputed in
    ``finalize_options``.

    When overwriting existing commands, custom defined classes **MUST** abide by the
    same APIs implemented by the original class. They also **SHOULD** inherit from the
    original class.
    Fc�X��t�|�|�t|�j|�y)zj
        Construct the command for dist, updating
        vars(self) with any keyword parameters.
        N)rr�vars�update)rr<�kwr"s   �r#rzCommand.__init__�s$���
	������T�
���"�r.c	��t||�}|�t|||�|St|t�st	d|�d|�d|�d���|S)N�'z' must be a z (got `z`))�getattr�setattr�
isinstance�strr)r�option�what�default�vals     r#�_ensure_stringlikezCommand._ensure_stringlike�sL���d�F�#���;��D�&�'�*��N��C��%�&�28�$��D��
��
r.c��t||�}|�yt|t�r"t||t	j
d|��yt|t�rtd�|D��}nd}|std|�d|�d���y)a�Ensure that 'option' is a list of strings.  If 'option' is
        currently a string, we split it either on /,\s*/ or /\s+/, so
        "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
        ["foo", "bar", "baz"].

        ..
           TODO: This method seems to be similar to the one in ``distutils.cmd``
           Probably it is just here for backward compatibility with old Python versions?

        :meta private:
        Nz,\s*|\s+c3�<K�|]}t|t����y�wr/)rRrS)�.0�vs  r#�	<genexpr>z-Command.ensure_string_list.<locals>.<genexpr>�s����9���A�s�+�9�s�FrOz!' must be a list of strings (got �))	rPrRrSrQ�re�split�list�allr)rrTrW�oks    r#�ensure_string_listzCommand.ensure_string_list�su���d�F�#���;��
��S�
!��D�&�"�(�(�;��"<�=��#�t�$��9�S�9�9�����*�AG��M���r.c�h�tj|||�}t|�j|�|Sr/)�_Command�reinitialize_commandrKrL)r�command�reinit_subcommandsrM�cmds     r#rgzCommand.reinitialize_command�s.���+�+�D�'�;M�N���S�	������
r.r/)r)
r0r1r2r3�command_consumes_argumentsrrXrdrgr4r5s@r#rrts%���4�l"'���	��6r.rc��d�tj|d��D�}ttjj|�S)z%
    Find all files under 'path'
    c3�rK�|]/\}}}|D]$}tjj||����&�1y�wr/)�os�path�join)r[�base�dirs�files�files     r#r]z#_find_all_simple.<locals>.<genexpr>�sB������D�$����
�	�����T�4� �� ��s�57T)�followlinks)rn�walk�filterro�isfile)ro�resultss  r#�_find_all_simplerz�s3���!#����4�!@��G�
�"�'�'�.�.�'�*�*r.c���t|�}|tjk(r;tjtj
j|��}t||�}t|�S)z�
    Find all files under 'dir' and return the list of full filenames.
    Unless dir is '.', return full filenames with dir prepended.
    )�start)	rzrn�curdir�	functools�partialro�relpath�mapra)�dirrs�make_rels   r#�findallr��sJ��

�S�!�E�
�b�i�i���$�$�R�W�W�_�_�C�@���H�e�$����;�r.c�H�tjddd��t|�S)NzAccess to implementation detaila
        The function `convert_path` is not provided by setuptools itself,
        and therefore not part of the public API.

        Its direct usage by 3rd-party packages is considered improper and the function
        may be removed in the future.
        )i���
)�due_date)r�emit�
_convert_path)�pathnames r#rr�s*�� �%�%�)�	� �
���"�"r.c��eZdZdZy)�sicz;Treat this string as-is (https://en.wikipedia.org/wiki/Sic)N)r0r1r2r3r%r.r#r�r�	s��Er.r�)2r3r~rnr_�_distutils_hack.override�_distutils_hack�distutils.corer8�distutils.errorsr�distutils.utilrr��warningsr�setuptools.version�
setuptools�setuptools.extensionr�setuptools.distr�setuptools.dependsr	�setuptools.discoveryr
r�rr
�__all__�version�__version__�bootstrap_install_from�findrrr=r;rr9�
get_unpatchedrrfrzr}r��wrapsrSr��	patch_allr%r.r#�<module>r�s��F��	�	���1�8�2��*�(�&�C���	��� � �,�,�����"�"�
�-�2�2��# �L�*)����$�$�,�,��
� �6���	��� 6� 6�7��j�h�j�Z	+��	�	�	�������#� �#�F�#�F�
����r.

Zerion Mini Shell 1.0