K i,# ndZddlmZddlZddlZddlZddlmZddlm Z ddl m Z m Z m Z ejjejj!ejj#ejj#eddxZejvegzej(j+d dddlZd d lmZmZd d lmZd d lmZmZd dl m!Z!d dl"m#Z#d dl$m%Z%d dl&m'Z'ddl(Z)gdZ*e ddZ+dZ,ejZZ.ejZZ/dZ0d dZ1dZ2e)jfjdje2_e rddl(m4Z5n&ejle)jfjhZ5Gdde5Z4dZ7ejpfdZ9Gdde:Z;ejxy)!z@Extensions to the 'distutils' for large or complex distributions) annotationsN)abstractmethod)Mapping) TYPE_CHECKINGTypeVaroverload setuptools_vendor backports)loggingmonkey)Require) PackageFinderPEP420PackageFinder) Distribution) Extension) __version__)SetuptoolsDeprecationWarning)setuprCommandrrr find_packagesfind_namespace_packages _CommandT_Command)boundcGddtjj}||}|jd|jr t |yy)Nc6eZdZdZdfd Zdfd ZdZxZS)4_install_setup_requires..MinimalDistributionzl A minimal version of a distribution for supporting the fetch_build_eggs interface. cd}t|t|zDcic]}||| }}t| ||jj ycc}w)N)dependency_linkssetup_requires)setsuper__init__ set_defaults_disable)selfattrs_inclkfiltered __class__s Y/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/__init__.pyr%z=_install_setup_requires..MinimalDistribution.__init__=sU8E-0Z#e*-DE58 EHE G X &    & & (Fs AcX t||\}}|dfS#t$r|dfcYSwxYw)zAIgnore ``pyproject.toml``, they are not related to setup_requires)r$ _split_standard_project_metadata Exception)r( filenamescfg_tomlr-s r._get_project_config_fileszN_install_setup_requires..MinimalDistribution._get_project_config_filesDsA %"WEiP U7N % "}$ %s  ))cy)zl Disable finalize_options to avoid building the working set. Ref #2158. Nr0r(s r.finalize_optionszE_install_setup_requires..MinimalDistribution.finalize_optionsLs)r)zMapping[str, object]returnNoneN)__name__ __module__ __qualname____doc__r%r6r9 __classcell__r-s@r.MinimalDistributionr7s  )  r:rDT)ignore_option_errors) distutilscorerparse_config_filesr"_fetch_build_eggs)r)rDdists r._install_setup_requiresrK4sMinn996 u %D 6 $r:c |j|jy#t$rS}d}d|jjvr3t |dr|j ||jd|dd}~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. InvalidVersionadd_note )fetch_build_eggsr"r2r-r>hasattrrNannounce)rJexmsgs r.rIrIZsz d112   r||44 4r:& C   3%rl+ s A:AA55A:c ~tjt|tjj di|S)Nr0)r configurerKrFrGr)r)s r.rros. E" >>   (% ((r:)rceZdZUdZdZded<d fd Ze d ddZe d ddZ d ddZe dd Z e dd Z e dd 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: :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 distributionc Xt||t|j|y)zj Construct the command for dist, updating vars(self) with any keyword parameters. N)r$r%varsupdate)r(rJkwr-s r.r%zCommand.__init__s$  T "r:c yr=r0r(commandreinit_subcommandsr\s r.reinitialize_commandzCommand.reinitialize_commandsr:c yr=r0r^s r.razCommand.reinitialize_commandsr:c htj|||}t|j||Sr=)rrarZr[)r(r_r`r\cmds r.razCommand.reinitialize_commands0++D';MN S  r:ct)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. NotImplementedErrorr8s r.initialize_optionszCommand.initialize_options "!r:ct)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``). rfr8s r.r9zCommand.finalize_optionsrir:ct)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). rfr8s r.runz Command.runrir:)rJrr;r<)F)r_strr`boolr;r)r_rr`rnr;r)r_zstr | _Commandr`rnr;r)r;r<)r>r?r@rAcommand_consumes_arguments__annotations__r%rrarrhr9rlrBrCs@r.rrs#J"'7<04 =B 6: CH%;? """"""r:rcdtj|dD}ttjj|S)z% Find all files under 'path' c3rK|]/\}}}|D]$}tjj||&1ywr=)ospathjoin).0basedirsfilesfiles r. z#_find_all_simple..sB D$   T4  s57T) followlinks)rswalkfilterrtisfile)rtresultss r._find_all_simplers3!#4!@G "''..' **r:ct|}|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) rrscurdir functoolspartialrtrelpathmaplist)dirrymake_rels r.findallrsJ S !E bii$$RWW__C@He$ ;r:ceZdZdZy)sicz;Treat this string as-is (https://en.wikipedia.org/wiki/Sic)N)r>r?r@rAr0r:r.rrsEr:r)rJr)=rA __future__rrrssysabcrcollections.abcrtypingrrrrtextendrudirname__file__ vendor_pathmodulespop_distutils_hack.override_distutils_hackr rdependsr discoveryrrrJr extensionrversionrwarningsrdistutils.corerF__all__rbootstrap_install_fromfindrrrKrIrrGrr get_unpatchedrrrrmr patch_allr0r:r.rs|F# #33bggoobggooh>W.XZfhq!rr+{~|D|DDITHUUV  T"9 /2  Kz 2 "" -22# L*)$$,, 2#v##INN$:$:;HY"hY"x + F#F r: