HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/__pycache__/__init__.cpython-310.pyc
o

��h,#�	@s�dZddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZmZm
Z
ej�ej�ej�ej�e��dd�Zejveg�ej�d	d�ddlZd
dlmZmZd
dlmZd
d
lmZmZd
dl m!Z!d
dl"m#Z#d
dl$m%Z%d
dl&m'Z'ddl(Z)gd�Z*eddd�Z+dZ,ej-Z.ej-Z/dd�Z0d'dd�Z1dd�Z2e)j3j2je2_er�ddl(m4Z5ne�6e)j3j4�Z5Gdd �d e5�Z4d!d"�Z7ej8fd#d$�Z9Gd%d&�d&e:�Z;e�<�dS)(z@Extensions to the 'distutils' for large or complex distributions�)�annotationsN)�abstractmethod)�Mapping)�
TYPE_CHECKING�TypeVar�overload�
setuptools�_vendor�	backports�)�logging�monkey)�Require)�
PackageFinder�PEP420PackageFinder)�Distribution)�	Extension)�__version__)�SetuptoolsDeprecationWarning)�setupr�Commandrrr�
find_packages�find_namespace_packages�	_CommandT�_Command)�boundcCs>Gdd�dtjj�}||�}|jdd�|jrt|�dSdS)Ncs8eZdZdZd
�fdd�Zd�fd	d
�	Zdd�Z�ZS)z4_install_setup_requires.<locals>.MinimalDistributionzl
        A minimal version of a distribution for supporting the
        fetch_build_eggs interface.
        �attrs�Mapping[str, object]�return�Nonecs<d}�fdd�t|�t��@D�}t��|�|j��dS)N)�dependency_links�setup_requirescsi|]}|�|�qS�r")�.0�k�rr"�>/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py�
<dictcomp>?szQ_install_setup_requires.<locals>.MinimalDistribution.__init__.<locals>.<dictcomp>)�set�super�__init__�set_defaults�_disable)�selfr�_incl�filtered��	__class__r%r&r*=sz=_install_setup_requires.<locals>.MinimalDistribution.__init__Ncs6z
t��|�\}}W|dfSty|dfYSw)zAIgnore ``pyproject.toml``, they are not related to setup_requiresr")r)� _split_standard_project_metadata�	Exception)r-�	filenames�cfg�_tomlr0r"r&�_get_project_config_filesDs��zN_install_setup_requires.<locals>.MinimalDistribution._get_project_config_filescSsdS)zl
            Disable finalize_options to avoid building the working set.
            Ref #2158.
            Nr"�r-r"r"r&�finalize_optionsLszE_install_setup_requires.<locals>.MinimalDistribution.finalize_options)rrrr�N)�__name__�
__module__�__qualname__�__doc__r*r7r9�
__classcell__r"r"r0r&�MinimalDistribution7s
r@T)�ignore_option_errors)�	distutils�corer�parse_config_filesr!�_fetch_build_eggs)rr@�distr"r"r&�_install_setup_requires4s�rGrFrc
Csfz	|�|j�WdSty2}zd}d|jjvr-t|d�r$|�|��|�d|�d���d}~ww)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_eggsr!r3r1r;�hasattrrI�announce)rF�ex�msgr"r"r&rEZs	

���rEcKs"t��t|�tjjdi|��S)Nr")r�	configurerGrBrCrr%r"r"r&rosr)rcs�eZdZUdZdZded<d�fdd	�Ze	dddd��Ze	dddd��Z	dddd�Ze	d dd��Z
e	d dd��Ze	d dd��Z�Z
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:
    :meth:`initialize_options`, :meth:`finalize_options` and :meth:`run`.

    A useful analogy for command classes is to think of them as subroutines with local
    variables called "options".  The options are "declared" in :meth:`initialize_options`
    and "defined" (given their final values, aka "finalized") in :meth:`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 :meth:`run` method.
    Between :meth:`initialize_options` and :meth:`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
    :meth:`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 :meth:`initialize_options` and
    :meth:`finalize_options`. For example, all derived attributes (or attributes that
    depend on the value of other attributes) **SHOULD** be recomputed in
    :meth:`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.
    Fr�distributionrFrrcst��|�t|��|�dS)zj
        Construct the command for dist, updating
        vars(self) with any keyword parameters.
        N)r)r*�vars�update)r-rF�kwr0r"r&r*�szCommand.__init__�command�str�reinit_subcommands�boolrcK�dSr:r"�r-rUrWrTr"r"r&�reinitialize_command��zCommand.reinitialize_commandrcKrYr:r"rZr"r"r&r[�r\�str | _CommandcKs t�|||�}t|��|�|Sr:)rr[rRrS)r-rUrWrT�cmdr"r"r&r[�scC�t�)z�
        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.
        ��NotImplementedErrorr8r"r"r&�initialize_options��zCommand.initialize_optionscCr_)z�
        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``).
        r`r8r"r"r&r9�rczCommand.finalize_optionscCr_)z�
        Execute the actions intended by the command.
        (Side effects **SHOULD** only take place when :meth:`run` is executed,
        for example, creating new files or writing to the terminal output).
        r`r8r"r"r&�run�rczCommand.run)rFrrr)F)rUrVrWrXrr)rUrrWrXrr)rUr]rWrXrr)rr)r;r<r=r>�command_consumes_arguments�__annotations__r*rr[rrbr9rdr?r"r"r0r&rs&
%���rcCs&dd�tj|dd�D�}ttjj|�S)z%
    Find all files under 'path'
    css.�|]\}}}|D]
}tj�||�Vq	qdSr:)�os�path�join)r#�base�dirs�files�filer"r"r&�	<genexpr>�s����z#_find_all_simple.<locals>.<genexpr>T)�followlinks)rg�walk�filterrh�isfile)rh�resultsr"r"r&�_find_all_simple�s�rtcCs6t|�}|tjkrtjtjj|d�}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)	rtrg�curdir�	functools�partialrh�relpath�map�list)�dirrl�make_relr"r"r&�findall�s


r~c@seZdZdZdS)�sicz;Treat this string as-is (https://en.wikipedia.org/wiki/Sic)N)r;r<r=r>r"r"r"r&r�sr)rFr)=r>�
__future__rrwrg�sys�abcr�collections.abcr�typingrrrrh�extendri�dirname�__file__�vendor_path�modules�pop�_distutils_hack.override�_distutils_hack�rr
�dependsr�	discoveryrrrFr�	extensionr�versionr�warningsr�distutils.corerB�__all__r�bootstrap_install_from�findrrrGrErrCrr�
get_unpatchedrtrvr~rVr�	patch_allr"r"r"r&�<module>sH8
&\