HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/setuptools/__pycache__/__init__.cpython-310.pyc
o

;j1%�	@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�Z1d)dd�Z2e)j3j2je2_er�ddl(m4Z5ne�6e)j3j4�Z5Gd d!�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�overloadZ
setuptoolsZ_vendorZ	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)Zdependency_links�setup_requirescsi|]}|�|�qS�r)�.0�k�rr�G/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/__init__.py�
<dictcomp>?szQ_install_setup_requires.<locals>.MinimalDistribution.__init__.<locals>.<dictcomp>)�set�super�__init__�set_defaults�_disable)�selfrZ_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%Z _split_standard_project_metadata�	Exception)r)�	filenamesZcfgZ_tomlr+rr"�_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)rrr"�finalize_optionsLszE_install_setup_requires.<locals>.MinimalDistribution.finalize_options)rrrr�N)�__name__�
__module__�__qualname__�__doc__r&r/r1�
__classcell__rrr+r"�MinimalDistribution7s
r8T)Zignore_option_errors)�	distutils�corerZparse_config_filesr�_fetch_build_eggs)rr8�distrrr"�_install_setup_requires4s�r=r<rc
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.
        ZInvalidVersion�add_note�
)Zfetch_build_eggsrr-r,r3�hasattrr>Zannounce)r<�ex�msgrrr"r;Zs	

���r;rcKs"t��t|�tjjdi|��S)Nr)r	Z	configurer=r9r:rr!rrr"rosr)rcs�eZdZUdZdZded<dZ	d�fdd	�Ze	dddd��Z	e	dddd��Z		dddd�Z	e
d dd��Ze
d dd��Ze
d dd��Z
�ZS)!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.
    FrZdistributionr<rrcst��|�t|��|�dS)zj
        Construct the command for dist, updating
        vars(self) with any keyword parameters.
        N)r%r&�vars�update)r)r<�kwr+rr"r&�szCommand.__init__�command�str�reinit_subcommands�boolcK�dSr2r�r)rFrHrErrr"�reinitialize_command��zCommand.reinitialize_commandrcKrJr2rrKrrr"rL�rM�str | _Command�Command | _CommandcKs t�|||�}t|��|�|Sr2)rrLrCrD)r)rFrHrE�cmdrrr"rL�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.
        ��NotImplementedErrorr0rrr"�initialize_options��zCommand.initialize_optionscCrQ)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``).
        rRr0rrr"r1�rUzCommand.finalize_optionscCrQ)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).
        rRr0rrr"�run�rUzCommand.run)r<rrr)F)rFrGrHrIrr)rFrrHrIrr)rFrNrHrIrrO)rr)r3r4r5r6Zcommand_consumes_arguments�__annotations__�dry_runr&rrLrrTr1rVr7rrr+r"r�s*
%���rcCs&dd�tj|dd�D�}ttjj|�S)z%
    Find all files under 'path'
    css.�|]\}}}|D]
}tj�||�Vq	qdSr2)�os�path�join)r�base�dirs�files�filerrr"�	<genexpr>�s����z#_find_all_simple.<locals>.<genexpr>T)�followlinks)rY�walk�filterrZ�isfile)rZ�resultsrrr"�_find_all_simple�s�rfcCs6t|�}|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)	rfrY�curdir�	functools�partialrZ�relpath�map�list)�dirr^Zmake_relrrr"�findall�s


roc@seZdZdZdS)�sicz;Treat this string as-is (https://en.wikipedia.org/wiki/Sic)N)r3r4r5r6rrrr"rp�srp)r<r)rr)=r6�
__future__rrirY�sys�abcr�collections.abcr�typingrrrrZ�extendr[�dirname�__file__Zvendor_path�modules�popZ_distutils_hack.override�_distutils_hack�r	r
ZdependsrZ	discoveryrr
r<r�	extensionr�versionr�warningsrZdistutils.corer9�__all__rZbootstrap_install_from�findrrr=r;rr:rrZ
get_unpatchedrfrhrorGrpZ	patch_allrrrr"�<module>sH8
&
	b