403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/_distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/_distutils/__pycache__/dist.cpython-313.pyc
�

�h������%SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
JrJr SSK
Jr SSKJrJrJrJrJrJrJrJr SSKJrJr SS	KJr SS
KJr SSKJ r J!r!J"r"J#r# SSK$J%r%J&r& SS
K'J(r(J)r)J*r* \(aSSK+J,r, SSK-J.r. SSK/J0r0 \"SSS9r1\2\\3\4\\4S4\4\54\3\4\\4S4\444r6S\7S'\Rp"S5r9SSjr:"SS5r;"SS5r<Sr=g)z}distutils.dist

Provides the Distribution class, which represents the module distribution
being built/installed/distributed.
�)�annotationsN)�Iterable�MutableMapping)�message_from_file)�IO�
TYPE_CHECKING�Any�ClassVar�Literal�TypeVar�Union�overload)�canonicalize_name�canonicalize_version���log)�DEBUG)�DistutilsArgError�DistutilsClassError�DistutilsModuleError�DistutilsOptionError)�FancyGetopt�translate_longopt)�
check_environ�
rfc822_escape�	strtobool)�
SupportsWrite)�	TypeAlias��Command�	_CommandTr!)�boundr�_OptionsListz^[a-zA-Z]([a-zA-Z0-9_]*)$c��[U[5(aU$[U[5(dR[U5RnSnUR
"S0[
5D6n[R"U5 [U5nU$)Nz>Warning: '{fieldname}' should be a list, got type '{typename}'�)	�
isinstance�str�list�type�__name__�format�localsr�warning)�value�	fieldname�typename�msgs    �</usr/lib/python3/dist-packages/setuptools/_distutils/dist.py�_ensure_listr4>sk���%����	
��L���t�
$�
$���;�'�'��N���j�j�$�6�8�$�����C���U����L�c	��\rSrSr%Sr/SQrS\S'SrS\S'/S	QrS\S
'\VVVs/sHn[US5PM snnnr
S\S
'SS0rS\S'SQSRSjjrSr
SSSTSjjrSrSrSQSjrSrSrSrSUSjrSVSWSjjrSrSUSjrSUS jrS!rS"rSXS#jr\SYSZS$jj5r\S[S%j5rSYS\S'jjrSQS(jr\S]S^S)jj5r \S]S_S*jj5r S]S`S+jjr \!RD4SaS,jjr#SUS-jr$SbS.jr%ScS/jr&ScS0jr'ScS1jr(ScS2jr)ScS3jr*ScS4jr+ScS5jr,ScS6jr-\.(aqSUS7jr/S&\S8'S9\S:'S9\S;'S9\S<'S9\S='S9\S>'S9\S?'S9\S@'S9\SA'S9\SB'S9\SC'S9\SD'S9\SE'S9\SF'S9\SG'SH\SI'SH\SJ'SH\SK'SL\SM'SL\SN'SL\SO'SPr0gSPr0gs snnnf)d�Distribution�Ma�The core of the Distutils.  Most of the work hiding behind 'setup'
is really done within a Distribution instance, which farms the work out
to the Distutils commands specified on the command line.

Setup scripts will almost never instantiate Distribution directly,
unless the 'setup()' function is totally inadequate to their needs.
However, it is conceivable that a setup script might wish to subclass
Distribution for some specialized purpose, and then pass the subclass
to 'setup()' as the 'distclass' keyword argument.  If so, it is
necessary to respect the expectations that 'setup' has of Distribution.
See the code for 'setup()', in core.py, for details.
))�verbose�vzrun verbosely (default)r)�quiet�qz!run quietly (turns verbosity off))zdry-run�nzdon't actually do anything)�help�hzshow detailed help message)zno-user-cfgNz-ignore pydistutils.cfg in your home directoryzClassVar[_OptionsList]�global_optionsz�Common commands: (see '--help-commands' for more)

  setup.py build      will build the package underneath 'build/'
  setup.py install    will install the package
z
ClassVar[str]�common_usage))z
help-commandsNzlist all available commands)�nameNzprint package name)�version�Vzprint package version)�fullnameNzprint <package name>-<version>)�authorNzprint the author's name)�author-emailNz print the author's email address)�
maintainerNzprint the maintainer's name)zmaintainer-emailNz$print the maintainer's email address)�contactNz7print the maintainer's name if known, else the author's)z
contact-emailNz@print the maintainer's email address if known, else the author's)�urlNzprint the URL for this package)�licenseNz print the license of the package)�licenceNzalias for --license)�descriptionNzprint the package description)zlong-descriptionNz"print the long package description)�	platformsNzprint the list of platforms)�classifiersNzprint the list of classifiers)�keywordsNzprint the list of keywords)�providesNz+print the list of packages/modules provided)�requiresNz+print the list of packages/modules required)�	obsoletesNz0print the list of packages/modules made obsolete�display_optionsrzClassVar[list[str]]�display_option_namesr;r9zClassVar[dict[str, str]]�negative_optNc	���SUlSUlSUlURHn[	XS5 M [5UlURRH(nSU-n[	X[URU55 M* 0Ul	SUl
SUlSUl0Ul
/UlSUl0UlSUlSUlSUlSUlSUlSUlSUlSUlSUlSUlSUl0Ul0UlU(GaNUR=S5nUbLUS	UR?5H5upgURAU5nUR?5Hup�SU
4X�'M
 M7 SU;a#USUS	'US	S
n[BRD"U5 UR?5H�up�[GURSU-5(a![URSU-5"U
5 MD[GURU5(a[	URX�5 Mw[GX5(a[	XU
5 M�SU<3n[BRD"U5 M� SUl$URbT[KUR5UlURH*n
U
RMS
5(d OU
S:XdM#SUl$ O URO5 g)a�Construct a new Distribution instance: initialize all the
attributes of a Distribution, and then use 'attrs' (a dictionary
mapping attribute names to values) to assign some of those
attributes their "real" values.  (Any attributes not mentioned in
'attrs' will be assigned to some null value: 0, None, an empty list
or dictionary, etc.)  Most importantly, initialize the
'command_obj' attribute to the empty dictionary; this will be
filled in with real command objects by 'parse_command_line()'.
TF�get_N��optionszsetup scriptrLrKz:'licence' distribution option is deprecated; use 'license'�set_zUnknown distribution option: �-z
--no-user-cfg)(r9�dry_runr>rU�setattr�DistributionMetadata�metadata�_METHOD_BASENAMES�getattr�cmdclass�command_packages�script_name�script_args�command_options�
dist_files�packages�package_data�package_dir�
py_modules�	libraries�headers�ext_modules�ext_package�include_dirs�
extra_path�scripts�
data_files�password�command_obj�have_run�get�items�get_option_dict�warnings�warn�hasattr�
want_user_cfgr)�
startswith�finalize_options)�self�attrs�attr�basename�method_namerZ�command�cmd_options�opt_dict�opt�valr2�key�args              r3�__init__�Distribution.__init__�s�����������	��-�-�D��D��&�.�-�.��
��
�
�7�7�H� �8�+�K��D�w�t�}�}�k�'J�K�8�35��
�9=���
;?���-1���GI���79���
��
�24��������������������� ��������������
�02���*,��
��
�i�i�	�*�G��"��)�$�,3�M�M�O�(�G�#�3�3�G�<�H�$/�$5�$5�$7���)7��(=��
�%8�-<�
�E�!�#(��#3��i� ��)�$�R���
�
�c�"�"�K�K�M����4�=�=�&�3�,�7�7��D�M�M�6�C�<�8��=��T�]�]�C�0�0��D�M�M�3�4��T�'�'��D�s�+�9�#��A�C��M�M�#�&�*�""������'�#�D�$4�$4�5�D���'�'���~�~�c�*�*���/�)�).�D�&��(�	
���r5c�b�URRU5nUc0=o RU'U$)z�Get the option dictionary for a given command.  If that
command's option dictionary hasn't been created yet, then create it
and return the new dictionary; otherwise, return the existing
option dictionary.
)rgrx)r�r��dicts   r3rz�Distribution.get_option_dict7s7���#�#�'�'��0���<�35�5�D�'�'��0��r5c���SSKJn Uc#[URR	55nUbURX1-5 US-nU(dURUS-5 gUH�nURR
U5nUcURUSUS3-5 M;URUSUS3-5 U"U5nURS	5HnURUS-U-5 M M� g)
Nr)�pformat�  zno commands known yetzno option dict for 'z	' commandzoption dict for '�
' command:�
)�pprintr��sortedrg�keys�announcerx�split)	r��header�commands�indentr��cmd_namer��out�lines	         r3�dump_option_dicts�Distribution.dump_option_dictsBs���"����d�2�2�7�7�9�:�H����M�M�&�/�*��d�]�F���M�M�&�#:�:�;�� �H��+�+�/�/��9�H����
�
�f�)=�h�Z�y�'Q�Q�R��
�
�f�):�8�*�J�'O�O�P��h�'���I�I�d�O�D��M�M�&�4�-�$�"6�7�,�!r5c�6�[5 UR5Vs/sH4n[RR	U5(dM)[U5PM6 nn[(a/URSRSRU555 U$s snf)avFind as many configuration files as should be processed for this
platform, and return a list of filenames in the order in which they
should be parsed.  The filenames returned are guaranteed to exist
(modulo nasty race conditions).

There are multiple possible config files:
- distutils.cfg in the Distutils installation directory (i.e.
  where the top-level Distutils __inst__.py file lives)
- a file in the user's home directory named .pydistutils.cfg
  on Unix and pydistutils.cfg on Windows/Mac; may be disabled
  with the ``--no-user-cfg`` option
- setup.cfg in the current directory
- a file named by an environment variable
zusing config files: {}z, )
r�
_gen_paths�os�path�isfiler(rr�r,�join)r�r��filess   r3�find_config_files�Distribution.find_config_files\sl��	��'+���'8�Q�'8�t�B�G�G�N�N�4�<P���T��'8��Q��5��M�M�2�9�9�$�)�)�E�:J�K�L����Rs�(B�	Bc#�# �[R"[RSR5R
nUS-v� S[RS:H-nUS-nUR(aL[R"[5 [R"S5R5U-v� SSS5 [R"S5v� [R"[5 [R"[R"S55v� SSS5 g!,(df   Nv=f!,(df   g=f7f)	N�	distutilsz
distutils.cfg�.�posixzpydistutils.cfg�~z	setup.cfg�DIST_EXTRA_CONFIG)�pathlib�Path�sys�modules�__file__�parentr�rBr~�
contextlib�suppress�RuntimeError�
expanduser�	TypeError�getenv)r��sys_dir�prefix�filenames    r3r��Distribution._gen_pathsss�����,�,�s�{�{�;�7�@�@�A�H�H����'�'�����7�*�+���-�-������$�$�\�2��l�l�3�'�2�2�4�x�?�?�3��l�l�;�'�'��
 �
 ��
+��,�,�r�y�y�)<�=�>�>�,�
+�3�2��,�
+�s6�B	E�*D%�5:E�/-D6�	E�%
D3�/E�6
E�Ec���SSKJn [R[R:wa/SQnO/n[U5nUcUR
5n[(aURS5 U"5nUH�n[(aURSU35 URUSS9 UR5HenURU5nURU5nUH:n	U	S:wdMX�;dMURXi5n
U	RS	S
5n	XZ4X�'M< Mg UR5 M� SUR ;a�UR SR#5Hpun	up�UR$RU	5nU(a['X[)U
5(+5 MGU	S;a['X	[)U
55 Md['X	U
5 Mr gg![*an
[-U
5eSn
A
ff=f)
Nr)�ConfigParser)
zinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-datar�zexec-prefix�home�user�rootz"Distribution.parse_config_files():z
  reading zutf-8��encodingr+r\�_�global)r9r])�configparserr�r�r��base_prefix�	frozensetr�rr��read�sectionsrZrzrx�replacer�rgryrVr^r�
ValueErrorr)r��	filenamesr��ignore_options�parserr��sectionrZr�r�r��_src�aliasr2s              r3�parse_config_files�Distribution.parse_config_files�s���-��:�:����(��N�  �N�"�>�2�����.�.�0�I��5��M�M�>�?����!�H��u��
�
�
�8�*�5�6��K�K��7�K�3�!�?�?�,�� �.�.��1���/�/��8��"�C��j�(�S�-F�$�j�j��6��!�k�k�#�s�3��)1���
�	#�	-�
�O�O��!"�*�t�+�+�+�$(�$8�$8��$B�$H�$H�$J� ��[�d��)�)�-�-�c�2��4�����3��-?�@�� 6�6���9�S�>�:���3�/�%K�,��"�4�.�s�3�3��4�s$�!G�&G�G�
G/�G*�*G/c���UR5n/Ul[XR-5nUR	UR
5 UR
SS05 URURUS9nUR5n[R"5R[RSUR--
5 URU5(agU(aUR!X#5nUcgU(aMUR"(a2UR%U['UR5S:HURS9 gUR(d[)S5eg	)
a�Parse the setup script's command line, taken from the
'script_args' instance attribute (which defaults to 'sys.argv[1:]'
-- see 'setup()' in core.py).  This list is first processed for
"global options" -- options that set attributes of the Distribution
instance.  Then, it is alternately scanned for Distutils commands
and options for that command.  Each new command terminates the
options for the previous command.  The allowed options for a
command are determined by the 'user_options' attribute of the
command class -- thus, we have to be able to load command classes
in order to parse the command line.  Any error in that 'options'
attribute raises DistutilsGetoptError; any error on the
command-line raises DistutilsArgError.  If no Distutils commands
were found on the command line, raises DistutilsArgError.  Return
true if command-line was successfully parsed and we should carry
on with executing commands; false if no errors but we shouldn't
execute commands (currently, this only happens if user asks for
help).
rLrK)�args�object�
Nr�rTr�zno commands suppliedT)�_get_toplevel_optionsr�rrT�set_negative_aliasesrV�set_aliases�getoptrf�get_option_order�logging�	getLogger�setLevel�WARNr9�handle_display_options�_parse_command_optsr>�
_show_help�lenr)r��toplevel_optionsr�r��option_orders     r3�parse_command_line�Distribution.parse_command_line�s0��. �5�5�7����
��-�0D�0D�D�E���#�#�D�$5�$5�6����I�y�1�2��}�}�$�"2�"2�4�}�@���.�.�0������$�$�W�\�\�B����4E�%E�F��&�&�|�4�4����+�+�F�9�D��|���d��9�9��O�O���D�M�M�(:�a�(?�$�-�-�
�
�
��}�}�#�$:�;�;�r5c�"�URS/-$)z�Return the non-display options recognized at the top level.

This includes options that are recognized *only* at the top
level as well as options recognized for commands.
)zcommand-packages=Nz0list of packages that provide distutils commands)r@�r�s r3r��"Distribution._get_toplevel_options
s!���"�"�
�&
�
�	
r5c��SSKJn USn[RU5(d[	SUS35eUR
R
U5 URU5n[XS5(d[SUS35e[US5(a[UR[5(dS	n[Xe-5eUR n[US
5(a+UR#5nUR%UR 5 [US5(a5[UR&[5(a[)UR&5nO/nUR+UR,UR-U-5 UR/U5 UR1USS5up)[U	S
5(a$U	R2(aUR5USU/S9 g[US5(a�[UR&[5(amSn
UR&HSup�p�[X�R7U55(dM'Sn
[9U5(a	U"5 MB[SU<SUS35e U
(agUR;U5n[=U	5R?5H
unnSU4UU'M U$![an[U5eSnAff=f)a�Parse the command-line options for a single command.
'parser' must be a FancyGetopt instance; 'args' must be the list
of arguments, starting with the current command (whose options
we are about to parse).  Returns a new version of 'args' with
the next command at the front of the list; will be the empty
list if there are no more commands on the command line.  Returns
None if the user asked for help on this command.
rr zinvalid command name '�'Nzcommand class z must subclass Command�user_optionszIcommand class %s must provide 'user_options' attribute (a list of tuples)rV�help_optionsrr>Fr�zinvalid help function z for help option 'z-': must be a callable object (function, etc.)zcommand line) �
distutils.cmdr!�
command_re�match�
SystemExitr��append�get_command_classrr�
issubclassrr}r'r�r)rV�copy�updater��fix_help_options�set_option_tabler@r�r�r>r��
get_attr_name�callablerz�varsry)r�r�r�r!r��	cmd_classr2rVr��opts�help_option_found�help_option�_short�_desc�funcr�rBr/s                  r3r�� Distribution._parse_command_optss���	*��q�'������(�(��5�g�Y�a�@�A�A��
�
���W�%�
	)��.�.�w�7�I��)�-�-�%� ���+A�B��
�
�I�~�.�.��9�1�1�4�8�8�>�
�&�c�o�6�6��(�(���9�n�-�-�'�,�,�.�L����	� 6� 6�7��9�n�-�-�*��"�"�D�3
�3
�,�I�,B�,B�C�L��L�	������)�"8�"8�8�<�G�	
�	�#�#�L�1��}�}�T�!�"�X�.����4�� � �T�Y�Y��O�O�F�E�Y�K�O�P���9�n�-�-�*��"�"�D�3
�3
�!"��4=�4J�4J�0��U��4�!5�!5�k�!B�C�C�()�%���~�~���1�4�T�H�<N�{�m�\I�I���
5K�!���'�'��0����:�+�+�-�K�D�%�,�e�4�H�T�N�.����S$�	)�#�C�(�(��	)�s�J1�1
K�;K�Kc��SHyn[URU5nUcM[U[5(dM5UR	S5Vs/sHo3R5PM nn[
URX5 M{ gs snf)z�Set final values for all the options on the Distribution
instance, analogous to the .finalize_options() method of Command
objects.
�rPrNN�,)rbr`r'r(r��stripr^)r�r�r/�elms    r3r��Distribution.finalize_options}sj��
.�D��D�M�M�4�0�E��}���%��%�%�05���C�0@�A�0@�����0@��A���
�
�t�3�
.��
Bs�Bc�d�SSKJn SSKJn U(a]U(aUR	5nOUR
nUR
U5 URURS-5 [5 U(a6UR
UR5 URS5 [5 UH�n[U[5(a[X�5(aUn	OURU5n	[U	S5(aQ[U	R ["5(a2UR
U	R$['U	R 5-5 OUR
U	R$5 URSU	R(S35 [5 M� [U"UR*55 g	)
aShow help for the setup script command-line in the form of
several lists of command-line options.  'parser' should be a
FancyGetopt instance; do not expect it to be returned in the
same state, as its option table will be reset to make it
generate the correct help text.

If 'global_options' is true, lists the global options:
--verbose, --dry-run, etc.  If 'display_options' is true, lists
the "display-only" options: --name, --version, etc.  Finally,
lists per-command help for every command name or command class
in 'commands'.
rr ��	gen_usagez
Global options:zKInformation display options (just display information, ignore any commands)r�z
Options for 'r�N)r�r!�distutils.corerr�r@r�
print_helprA�printrTr'r*r�r�r}r�r)r�rr+re)
r�r�r@rTr�r!rrZr��klasss
          r3r��Distribution._show_help�sO�� 	*�,����4�4�6���-�-���#�#�G�,����d�/�/�2E�E�F��G���#�#�D�$8�$8�9����]�
�
�G��G��'�4�(�(�Z��-I�-I����.�.�w�7���u�n�-�-�*�U�=O�=O�QU�2V�2V��'�'��&�&�)9�%�:L�:L�)M�M���'�'��(:�(:�;����
�e�n�n�-=�Z�H�I��G� �	�i��(�(�)�*r5c�,�SSKJn UR(a6UR5 [	5 [	U"UR
55 gSn[
5nURHnURUS5 M UH�upgU(dMXd;dM[U5n[URSU-5"5nUS;a[	SRU55 O,US;a[	SRU55 O[	U5 SnM� U$)	z�If there were any non-global "display-only" options
(--help-commands or the metadata display options) on the command
line, display the requested info and return true; else return
false.
rrrrXrr)rOrQrRrSr�)
rr�
help_commands�print_commandsrre�setrT�addrrbr`r�)	r�r�r�any_display_options�is_display_option�optionr�r�r/s	         r3r��#Distribution.handle_display_options�s���	-�
������!��G��)�D�,�,�-�.��
 ���E���*�*�F��!�!�&��)�,�+�%�H�C��s�s�/�'��,����
�
�v��|�<�>���3�3��#�(�(�5�/�*��P�P��$�)�)�E�*�+��%�L�&'�#�%�#�"r5c��[US-5 UHXnURRU5nU(dURU5nURn[SUSU3SU35 MZ g![
a SnN(f=f)zJPrint a subset of the list of all commands -- used by
'print_commands()'.
�:�(no description available)r��<N)rrcrxr�rM�AttributeError)r�r�r��
max_length�cmdrrMs       r3�print_command_list�Distribution.print_command_list�s���	�f�s�l���C��M�M�%�%�c�*�E���.�.�s�3��
;�#�/�/��
�B�s�1�Z�L�.�)��K�=�9�:���"�
;�:��
;�s�A.�.A=�<A=c�|�SSKnURRn[U5nURR5Vs/sHoDU;dM
UPM nnSnX%-Hn[
U5U:�dM[
U5nM! URUSU5 U(a[5 URUSU5 ggs snf)a>Print out a help message listing all available commands with a
description of each.  The list is divided into "standard commands"
(listed in distutils.command.__all__) and "extra commands"
(mentioned in self.cmdclass, but not a standard command).  The
descriptions come from the command class attribute
'description'.
rNzStandard commandszExtra commands)	�distutils.commandr��__all__rrcr�r�r,r)r�r��std_commands�is_stdr+�extra_commandsr*s       r3r�Distribution.print_commands�s���	!� �(�(�0�0���\�"��)-���);�);�)=�S�)=�#�F�AR�#�)=��S��
��0�C��3�x�*�$� ��X�
�1�	
����.A�:�N���G��#�#�N�4D�j�Q���Ts�	B9�B9c��SSKnURRn[U5nURR5Vs/sHoDU;dM
UPM nn/nX%-HUnURR
U5nU(dURU5nURnURXH45 MW U$s snf![a SnN+f=f)aGet a list of (command, description) tuples.
The list is divided into "standard commands" (listed in
distutils.command.__all__) and "extra commands" (mentioned in
self.cmdclass, but not a standard command).  The descriptions come
from the command class attribute 'description'.
rNr')r/r�r0rrcr�rxr�rMr)r�)	r�r�r1r2r+r3�rvrrMs	         r3�get_command_list�Distribution.get_command_lists���	!� �(�(�0�0���\�"��)-���);�);�)=�S�)=�#�F�AR�#�)=��S�
���0�C��M�M�%�%�c�*�E���.�.�s�3��
;�#�/�/��
�I�I�s�(�)�1��	��T��"�
;�:��
;�s�	B8�B8�B=�=C�Cc��URn[U[5(dYUcSnURS5Vs/sHo"S:wdM
UR	5PM nnSU;aURSS5 XlU$s snf)z9Return a list of packages from which commands are loaded.rYrzdistutils.commandr)rdr'r)r�r�insert)r��pkgs�pkgs   r3�get_command_packages�!Distribution.get_command_packages,st���$�$���$��%�%��|���+/�:�:�c�?�H�?�C�R�i�K�C�I�I�K�?�D�H�"�$�.����A�2�3�$(�!����	Is�	A=�A=c��URRU5nU(aU$UR5HGnUSU3nUn[U5 [R
Un[Xe5nX RU'Us $ [SUS35e![a Mgf=f![a [SUSUSUS35ef=f)a'Return the class that implements the Distutils command named by
'command'.  First we check the 'cmdclass' dictionary; if the
command is mentioned there, we fetch the class object from the
dictionary and return it.  Otherwise we load the command module
("distutils.command." + command) and fetch the command class from
the module.  The loaded class is also stored in 'cmdclass'
to speed future calls to 'get_command_class()'.

Raises DistutilsModuleError if the expected module could not be
found, or if that module does not define the expected class.
r�zinvalid command 'z
' (no class 'z
' in module 'z')r�)
rcrxr=�
__import__r�r��ImportErrorrbr)r)r�r�r�pkgname�module_name�
klass_name�modules       r3r��Distribution.get_command_class8s����
�
�!�!�'�*����L��0�0�2�G�$�I�Q�w�i�0�K� �J�
��;�'����[�1��
���3��&+�M�M�'�"��L�%3�(#�%6�w�i�q�#A�B�B���
��
��
"�
�*�'��y�
�j�\��Wb�Vc�ce�f���
�s�B�!B �
B�B�  Cc��g�Nr&�r�r��creates   r3�get_command_obj�Distribution.get_command_obj^���r5c��grHr&rIs   r3rKrLbs��r5�boolc�j�URRU5nU(d�U(a�[(aURSUS35 UR	U5nU"U5=o0RU'SUR
U'URRU5nU(aURX55 U$)z�Return the command object for 'command'.  Normally this object
is cached on a previous call to 'get_command_obj()'; if no command
object for 'command' is in the cache, then we either create and
return it (if 'create' is true) or return None.
z*Distribution.get_command_obj(): creating 'z' command objectF)rvrxrr�r�rwrg�_set_command_options)r�r�rJ�cmd_objrrZs      r3rKrLfs����"�"�&�&�w�/���6��u��
�
�!�!(�	�)9�;��
�*�*�7�3�E�27��+�=�G�&�&�w�/�%*�D�M�M�'�"��*�*�.�.�w�7�G���)�)�'�;��r5c
�"�UR5nUcURU5n[(aURSUS35 UR	5H�unupV[(aURSUSUSUS35 UR
Vs/sHn[
U5PM nnURn	[U[5n
XI;a&U
(a[XU[U5(+5 M�XH;aU
(a[X[U55 M�[X5(a[XU5 M�[SUS	US
US35e gs snf![a /nN�f=f![a 0n	N�f=f![an[U5eSnAff=f)aISet the options for 'command_obj' from 'option_dict'.  Basically
this means copying elements of a dictionary ('option_dict') to
attributes of an instance ('command').

'command_obj' must be a Command instance.  If 'option_dict' is not
supplied, uses the standard option dictionary for this command
(from 'self.command_options').
Nz  setting options for 'r�z    z = z (from �)z	error in z: command 'z' has no such option 'r�)�get_command_namerzrr�ry�boolean_optionsrr)rVr'r(r^rr}rr�)r�rv�option_dict�command_namer#�sourcer/�o�	bool_opts�neg_opt�	is_stringr2s            r3rQ�!Distribution._set_command_options�s���#�3�3�5�����.�.�|�<�K��5��M�M�3�L�>��L�M�'2�'8�'8�':�#�F�O�V��u��
�
��V�H�C��w�g�f�X�Q�G�H�
�;F�;V�;V�W�;V�a�.�q�1�;V�	�W�
�%�2�2��

0�&�u�c�2�	��$���K���i��>N�:N�O��(�Y��K��5�1A�B��[�1�1��K��7�.�#�F�8�;�|�n�DZ�[a�Zb�bc�d���+(;��X��!�
��	�
��"�
���
���
0�*�3�/�/��
0�s`�E�E�'E�*E"�79E4�2!E4�E4�3E4�E�E�E�"E1�0E1�4
F�>F	�	Fc��grHr&�r�r��reinit_subcommandss   r3�reinitialize_command�!Distribution.reinitialize_command�rMr5c��grHr&r`s   r3rbrc�s��r5c�l�SSKJn [X5(dUnURU5nOUR	5nUR
(dU$UR
5 SUlSURU'URU5 U(a(UR5HnURXR5 M U$)a;Reinitializes a command to the state it was in when first
returned by 'get_command_obj()': ie., initialized but not yet
finalized.  This provides the opportunity to sneak option
values in programmatically, overriding or supplementing
user-supplied values from the config files and command line.
You'll have to re-finalize the command object (by calling
'finalize_options()' or 'ensure_finalized()') before using it for
real.

'command' should be a command name (string) or command object.  If
'reinit_subcommands' is true, also reinitializes the command's
sub-commands, as declared by the 'sub_commands' class attribute (if
it has one).  See the "install" command for an example.  Only
reinitializes the sub-commands that actually matter, ie. those
whose test predicates return true.

Returns the reinitialized command object.
rr F)r�r!r'rKrU�	finalized�initialize_optionsrwrQ�get_sub_commandsrb)r�r�rar!rX�subs      r3rbrc�s���*	*��'�+�+�"�L��*�*�<�8�G�"�3�3�5�L�� � ��N��"�"�$�!���&+��
�
�l�#��!�!�'�*���/�/�1���)�)�#�B�2��r5c�0�[R"X!5 grHr)r�r2�levels   r3r��Distribution.announce�s������r5c�L�URHnURU5 M g)z�Run each command that was seen on the setup script command line.
Uses the list of commands found and cache of command objects
created by 'get_command_obj()'.
N)r��run_command)r�r+s  r3�run_commands�Distribution.run_commands�s ��
�=�=�C����S�!�!r5c���URRU5(ag[R"SU5 UR	U5nUR5 UR
5 SURU'g)azDo whatever it takes to run a command (including nothing at all,
if the command has already been run).  Specifically: if we have
already created and run the command named by 'command', return
silently without doing anything.  If the command named by 'command'
doesn't even have a command object yet, create one.  Then invoke
'run()' on that command object (or an existing one).
Nz
running %sT)rwrxr�inforK�ensure_finalized�run)r�r�rRs   r3rn�Distribution.run_command�s]���=�=���W�%�%������w�'��&�&�w�/��� � �"����
�!%��
�
�g�r5c�j�[UR=(d UR=(d /5S:�$�Nr)r�rirlr�s r3�has_pure_modules�Distribution.has_pure_moduless$���4�=�=�9�D�O�O�9�r�:�Q�>�>r5c�X�UR=(a [UR5S:�$rw)ror�r�s r3�has_ext_modules�Distribution.has_ext_moduless#�����=�C��(8�(8�$9�A�$=�=r5c�X�UR=(a [UR5S:�$rw)rmr�r�s r3�has_c_libraries�Distribution.has_c_librariess���~�~�9�#�d�n�n�"5��"9�9r5c�P�UR5=(d UR5$rH)rxr{r�s r3�has_modules�Distribution.has_moduless���$�$�&�@�$�*>�*>�*@�@r5c�X�UR=(a [UR5S:�$rw)rnr�r�s r3�has_headers�Distribution.has_headers����|�|�5��D�L�L� 1�A� 5�5r5c�X�UR=(a [UR5S:�$rw)rsr�r�s r3�has_scripts�Distribution.has_scriptsr�r5c�X�UR=(a [UR5S:�$rw)rtr�r�s r3�has_data_files�Distribution.has_data_filess�����;�3�t���#7�!�#;�;r5c��UR5=(a1 UR5(+=(a UR5(+$rH)rxr{r~r�s r3�is_pure�Distribution.is_pures;���!�!�#�
+��(�(�*�*�
+��(�(�*�*�	
r5c�r�URRUlURRUlURRUlURRUlURR
UlURRUlURRUlURRUlURRUl	URRUl
URRUlURRUlURRUl
URRUlURRUlURR UlURR"UlURR$UlURR&UlURR(UlURR*UlgrH)r`�get_name�get_version�get_fullname�
get_author�get_author_email�get_maintainer�get_maintainer_email�get_contact�get_contact_email�get_url�get_license�get_licence�get_description�get_long_description�get_keywords�
get_platforms�get_classifiers�get_download_url�get_requires�get_provides�
get_obsoletesr�s r3r��Distribution._&sy�� �M�M�2�2�D�M�#�}�}�8�8�D�� $�
�
� :� :�D��"�m�m�6�6�D�O�$(�M�M�$B�$B�D�!�"&�-�-�">�">�D��(,�
�
�(J�(J�D�%�#�}�}�8�8�D��%)�]�]�%D�%D�D�"��=�=�0�0�D�L�#�}�}�8�8�D��#�}�}�8�8�D��#'�=�=�#@�#@�D� �(,�
�
�(J�(J�D�%� $�
�
� :� :�D��!%���!<�!<�D��#'�=�=�#@�#@�D� �$(�M�M�$B�$B�D�!� $�
�
� :� :�D�� $�
�
� :� :�D��!%���!<�!<�D�r5rzstr | Literal[False]rBrCrErF�author_emailrH�maintainer_emailrI�
contact_emailrJrKrLrM�long_descriptionz str | list[str] | Literal[False]rNrOrPzlist[str] | Literal[False]rQrRrS)0rcrvrgrdr�rtrhr]rorprrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rwrnr>rqrmr`rjrkrirurlrfrersr9r~rH)r�zMutableMapping[str, Any] | None�return�None)NNrY)r�r(r�r�)r�r�)TTr&)r�r)r�r(r�z
type[Command])T)r�r(rJz
Literal[True]r�r!)r�r(rJzLiteral[False]r��Command | None)r�r(rJrOr�r�)F)r�r(rarOr�r!)r�r"rarOr�r")r�z
str | Commandr�r!)rk�intr�r�)r�r(r�r�)r�rO)1r+�
__module__�__qualname__�__firstlineno__�__doc__r@�__annotations__rArTrrUrVr�rzr�r�r�r�r�r�r�r�r�r�r,rr7r=r�rrKrQrbr��INFOr�rornrxr{r~r�r�r�r�r�rr��__static_attributes__)�.0�xrs000r3r7r7Ms����*.�N�*��#�L�-��/�O�+��8*9�1�)8�A��!�A�$���1��-��
/6�y�-A�L�*�A�
[ �z	�8�4�.?�&@4�HA�F
�`�D4�WY�1+�KS�1+�f%#�N;�"R�2�<
�$C�L�48����$1��	��������$2��	�����:(0�T�7<����04��	�����=B�� ��6:��	����:?�(�$�(�	�(�X*1����"�&�(?�>�:�A�6�6�<�
��	=�0��"�"�%�%�&�&�$�$�*�*�(�(�.�.�%�%�+�+�
!�!�%�%�%�%�)�)�.�.�3�3�5�5�2�2�,�,�,�,�-�-�]��i1s�F;r7c�r�\rSrSrSrSrS&S'SjjrS(SjrS)SjrS*Sjr	S	r
S+S
jrS+SjrS+Sjr
\S,S
j5rS-SjrS-SjrS-SjrS-SjrS-SjrS-SjrS-SjrS-Sjr\rS-SjrS-SjrS.SjrS/SjrS0SjrS/SjrS.SjrS/Sjr S-Sjr!S.Sjr"S1S jr#S.S!jr$S1S"jr%S.S#jr&S1S$jr'S%r(g)2r_iUzUDummy class to hold the distribution meta-data: name, version,
author, and so forth.
)rBrCrFr�rHr�rJrKrMr�rPrNrErIr�rO�download_urlrQrRrSNc�.�UbUR[U55 gSUlSUlSUlSUlSUlSUlSUlSUl	SUl
SUlSUlSUl
SUlSUlSUlSUlSUlgrH)�
read_pkg_file�openrBrCrFr�rHr�rJrKrMr�rPrNrOr�rQrRrS)r�r�s  r3r��DistributionMetadata.__init__rs��������t�D�z�*�$(�D�I�'+�D�L�&*�D�K�,0�D��*.�D�O�04�D�!�#'�D�H�'+�D�L�+/�D��04�D�!�48�D�M�59�D�N�7;�D��,0�D��48�D�M�48�D�M�59�D�Nr5c�|^�[U5mSU4SjjnU4SjnTSnU"S5UlU"S5UlU"S5UlU"S5UlSUlU"S	5UlSUlU"S
5UlU"S5Ul	ST;aU"S5Ul
OSUl
U"S
5UlU"S5UlST;aU"S5RS5Ul
U"S5UlU"S5UlUS:Xa(U"S5UlU"S5UlU"S5UlgSUlSUlSUlg)z-Reads the metadata values from a file object.rBc�.>�TUnU(aUS:waU$g�N�UNKNOWNr&)rBr/r2s  �r3�_read_field�7DistributionMetadata.read_pkg_file.<locals>._read_field�s�����I�E���)�+���r5c�:>�TRUS5nU/:XagU$rH)�get_all)rB�valuesr2s  �r3�
_read_list�6DistributionMetadata.read_pkg_file.<locals>._read_list�s"����[�[��t�,�F���|���Mr5zmetadata-versionrC�summaryrFNrGz	home-pagerKzdownload-urlrMrPr�platform�
classifier�1.1rRrQrS)rBr(r��
str | None)rrBrCrMrFrHr�r�rJrKr�r�r�rPrNrOrRrQrS)r��filer�r��metadata_versionr2s     @r3r��"DistributionMetadata.read_pkg_file�s<�����%��	�	��1�2����'��	�"�9�-���&�y�1���!�(�+������'��7��� $����{�+���"�9�-����S� � +�N� ;�D�� $�D�� +�M� :���&�y�1������'�
�3�9�9�#�>�D�M�#�J�/���%�l�3����u�$�&�z�2�D�M�&�z�2�D�M�'��4�D�N� �D�M� �D�M�!�D�Nr5c��[[RRUS5SSS9nUR	U5 SSS5 g!,(df   g=f)z.Write the PKG-INFO file into the release tree.zPKG-INFO�wzUTF-8r�N)r�r�r�r��write_pkg_file)r��base_dir�pkg_infos   r3�write_pkg_info�#DistributionMetadata.write_pkg_info�sA��
��G�G�L�L��:�.��g�
�
�����)�
�
�
�s�A�
Ac�n^�SnUR(dDUR(d3UR(d"UR(dUR(aSnTRSUS35 TRSUR
5S35 TRSUR5S35 U4SjnU"SUR55 U"S	UR55 U"S
UR55 U"SUR55 U"SUR55 U"S
UR5 U"S[UR5=(d S55 U"SSRUR!555 UR#TSUR%55 UR#TSUR'55 UR#TSUR)55 UR#TSUR+55 UR#TSUR-55 g)z0Write the PKG-INFO format data to a file object.z1.0r�zMetadata-Version: r�zName: z	Version: c�D>�U(aTRUSUS35 gg�Nz: r���write)r�r�r�s  �r3�maybe_write�8DistributionMetadata.write_pkg_file.<locals>.maybe_write�s$�����
�
�f�X�R��u�B�/�0�r5�Summaryz	Home-page�AuthorzAuthor-email�LicensezDownload-URL�DescriptionrY�Keywordsr�Platform�
Classifier�Requires�Provides�	ObsoletesN)rQrRrSrOr�r�r�r�r�r�r�r�r�rr�r�r��_write_listr�r�r�r�r�)r�r�rCr�s `  r3r��#DistributionMetadata.write_pkg_file�s�������M�M��}�}��~�~����� � ��G�	
�
�
�'��y��3�4��
�
�V�D�M�M�O�,�B�/�0��
�
�Y�t�/�/�1�2�"�5�6�	1�
	�I�t�3�3�5�6��K�����0��H�d�.�.�0�1��N�D�$:�$:�$<�=��I�t�/�/�1�2��N�D�$5�$5�6��M�=��1J�1J�1L�1R�PR�#S�T��J�����):�):�)<� =�>�����z�4�+=�+=�+?�@�����|�T�-A�-A�-C�D�	
����z�4�+<�+<�+>�?�����z�4�+<�+<�+>�?�����{�D�,>�,>�,@�Ar5c�Z�U=(d /nUHnURUSUS35 M gr�r�)r�r�rBr�r/s     r3r�� DistributionMetadata._write_list�s.����2���E��J�J�$��r�%���+�,�r5c�,�UR=(d S$r�)rBr�s r3r��DistributionMetadata.get_name�s���y�y�%�I�%r5c�,�UR=(d S$)Nz0.0.0)rCr�s r3r�� DistributionMetadata.get_version�s���|�|�&�w�&r5c�^�URUR5UR55$rH)�	_fullnamer�r�r�s r3r��!DistributionMetadata.get_fullname�s"���~�~�d�m�m�o�t�/?�/?�/A�B�Br5c�h�SR[U5RSS5[USS95$)a�
>>> DistributionMetadata._fullname('setup.tools', '1.0-2')
'setup_tools-1.0.post2'
>>> DistributionMetadata._fullname('setup-tools', '1.2post2')
'setup_tools-1.2.post2'
>>> DistributionMetadata._fullname('setup-tools', '1.0-r2')
'setup_tools-1.0.post2'
>>> DistributionMetadata._fullname('setup.tools', '1.0.post')
'setup_tools-1.0.post0'
>>> DistributionMetadata._fullname('setup.tools', '1.0+ubuntu-1')
'setup_tools-1.0+ubuntu.1'
z{}-{}r\r�F)�strip_trailing_zero)r,rr�r)rBrCs  r3r��DistributionMetadata._fullname�s4���~�~��d�#�+�+�C��5� ��e�D�
�	
r5c��UR$rH)rFr�s r3r��DistributionMetadata.get_authors���{�{�r5c��UR$rH)r�r�s r3r��%DistributionMetadata.get_author_email���� � � r5c��UR$rH)rHr�s r3r��#DistributionMetadata.get_maintainers�����r5c��UR$rH)r�r�s r3r��)DistributionMetadata.get_maintainer_email����$�$�$r5c�@�UR=(d UR$rH)rHrFr�s r3r�� DistributionMetadata.get_contacts�����-�$�+�+�-r5c�@�UR=(d UR$rH)r�r�r�s r3r��&DistributionMetadata.get_contact_emails���$�$�9��(9�(9�9r5c��UR$rH)rJr�s r3r��DistributionMetadata.get_url"s���x�x�r5c��UR$rH)rKr�s r3r�� DistributionMetadata.get_license%s���|�|�r5c��UR$rH)rMr�s r3r��$DistributionMetadata.get_description*s�����r5c��UR$rH)r�r�s r3r��)DistributionMetadata.get_long_description-rr5c�,�UR=(d /$rH)rPr�s r3r��!DistributionMetadata.get_keywords0����}�}�"��"r5c�&�[US5Ulg)NrP)r4rP�r�r/s  r3�set_keywords�!DistributionMetadata.set_keywords3s��$�U�J�7��
r5c��UR$rH)rNr�s r3r��"DistributionMetadata.get_platforms6s���~�~�r5c�&�[US5Ulg)NrN)r4rNrs  r3�
set_platforms�"DistributionMetadata.set_platforms9s��%�e�[�9��r5c�,�UR=(d /$rH)rOr�s r3r��$DistributionMetadata.get_classifiers<s�����%�2�%r5c�&�[US5Ulg)NrO)r4rOrs  r3�set_classifiers�$DistributionMetadata.set_classifiers?s��'��}�=��r5c��UR$rH)r�r�s r3r��%DistributionMetadata.get_download_urlBr�r5c�,�UR=(d /$rH)rRr�s r3r��!DistributionMetadata.get_requiresFrr5c�t�SSKnUHnURRU5 M  [U5Ulgrw)�distutils.versionpredicate�versionpredicate�VersionPredicater)rR�r�r/r�r:s    r3�set_requires�!DistributionMetadata.set_requiresIs.��)��A��&�&�7�7��:���U���
r5c�,�UR=(d /$rH)rQr�s r3r��!DistributionMetadata.get_providesPrr5c��UVs/sHo"R5PM nnUH"nSSKnURRU5 M$ Xlgs snfrw)rr#r$�split_provisionrQ)r�r/r:r�s    r3�set_provides�!DistributionMetadata.set_providesSsG��$)�*�E�q����E��*��A�-��&�&�6�6�q�9���
��+s�Ac�,�UR=(d /$rH)rSr�s r3r��"DistributionMetadata.get_obsoletes[s���~�~�#��#r5c�t�SSKnUHnURRU5 M  [U5Ulgrw)r#r$r%r)rSr&s    r3�
set_obsoletes�"DistributionMetadata.set_obsoletes^s.��)��A��&�&�7�7��:���e���r5)rFr�rOrMr�rPrKr�rHr�rBrSrNrQrRrJrCrH)r�z:str | bytes | os.PathLike[str] | os.PathLike[bytes] | Noner�r�)r�zIO[str]r�r�)r�zstr | os.PathLike[str]r�r�)r�zSupportsWrite[str]r�r�)r�r()rBr(rCr(r�r()r�r�)r��str | list[str])r/�str | Iterable[str]r�r�)r�zstr | list[str] | None)r/z
Iterable[str]r�r�))r+r�r�r�r�rar�r�r�r�r�r�r�r��staticmethodr�r�r�r�r�r�r�r�r�r�r�r�r�rr�rr�rr�r�r'r�r-r�r2r�r&r5r3r_r_Us������2RV�:�N�:�	
�:�22"�h*�%B�N-�&�'�C��
��
�$�!��%�.�:����K� �%�#�8��:�&�>�!�#�$�#��$�%r5r_c�6�UVs/sHoSSPM	 sn$s snf)zwConvert a 4-tuple 'help_options' list as found in various command
classes to the 3-tuple form required by FancyGetopt.
r�r&)rZr�s  r3rrfs ��!(�(����!�H��(�(��(s�)r/r5r�r4)>r��
__future__rr�r�r�r��rer�r{�collections.abcrr�emailr�typingrrr	r
rrr
r�packaging.utilsrr�_logr�debugr�errorsrrrr�fancy_getoptrr�utilrrr�	_typeshedr�typing_extensionsrr+r!r"r)�tupler(r�r$r��compiler�r4r7r_rr&r5r3�<module>rHs����#���	��	�
��4�#�	�	�	�D�����9�9�9��'�+���K�y�1�	��	�%��U�3��9�%�s�C�/�
0�%��U�3��9�=M�s�8R�2S�
S�T���i���Z�Z�4�
5�
��E.�E.�P N%�N%�b)r5

Youez - 2016 - github.com/yon3zu
LinuXploit