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__/cmd.cpython-313.pyc
�

�h�V���SrSSKJr SSKrSSKrSSKrSSKrSSKJr SSK	J
r
Jr SSKJ
r
JrJrJrJr SSKJrJrJrJrJr SS	KJr SS
KJr \
(aSSKJr SSKJrJ r  \"S
5r!\"SSS9r"\"SSS9r#\"SSS9r$"SS5r%g)ztdistutils.cmd

Provides the Command class, the base class for the command classes
in the distutils.command package.
�)�annotationsN)�abstractmethod)�Callable�MutableSequence)�
TYPE_CHECKING�Any�ClassVar�TypeVar�overload�)�	_modified�archive_util�dir_util�	file_util�util��log)�DistutilsOptionError��Distribution)�TypeVarTuple�Unpack�_Ts�	_StrPathT�str | os.PathLike[str])�bound�_BytesPathT�bytes | os.PathLike[bytes]�	_CommandT�Commandc��\rSrSr%Sr/rS\S'/rS\S'S/SjrSr	S0S	jr
\S0S
j5r\S0Sj5r
S1S
jr\S0Sj5r\R"4S2SjjrS3SjrS4SjrS4S5SjjrS6SjrS4SjrS6SjrS6SjrS7SjrS8SjrS9S:Sjjr\S;S<Sjj5r\S;S=Sjj5rS;S>SjjrS?SjrS@Sjr S3Sjr!SASBS jjr"SCSDS!jjr#\SESFS"jj5r$\SESGS#jj5r$SESHS$jjr$SISJS%jjr%\SKSLS&jj5r&\SKSMS'jj5r&SKSNS(jjr&SOSPS)jjr'\SQSRS*jj5r(\SSSTS+jj5r(SQSUS,jjr(SVSWS-jjr)S.r*g)Xr �"aIAbstract base class for defining command classes, the "worker bees"
of the Distutils.  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 distinction between the
two is necessary because option values might come from the outside
world (command line, config file, ...), and any options dependent on
other options must be computed *after* these outside influences have
been processed -- hence 'finalize_options()'.  The "body" of the
subroutine, where it does all its work based on the values of its
options, is the 'run()' method, which must also be implemented by every
command class.
z8ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]�sub_commandszHClassVar[list[tuple[str, str, str]] | list[tuple[str, str | None, str]]]�user_optionsc��SSKJn [X5(d[S5eUR[
La[
S5eXlUR5 SUl	URUl
SUlSUlSUl
g)z�Create and initialize a new Command object.  Most importantly,
invokes the 'initialize_options()' method, which is the real
initializer and depends on the actual command being
instantiated.
rrz$dist must be a Distribution instancezCommand is an abstract classNF)�distutils.distr�
isinstance�	TypeError�	__class__r �RuntimeError�distribution�initialize_options�_dry_run�verbose�force�help�	finalized)�self�distrs   �;/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py�__init__�Command.__init__Ksy��	0��$�-�-��B�C�C��>�>�W�$��=�>�>� �����!���
��|�|�����
���	����c�x�US:Xa*[USU-5nUc[URU5$U$[U5e)N�dry_run�_)�getattrr+�AttributeError)r2�attr�myvals   r4�__getattr__�Command.__getattr__{sB���9���D�#��*�-�E��}��t�0�0�$�7�7��� ��&�&r7c�T�UR(dUR5 SUlg)NT)r1�finalize_options�r2s r4�ensure_finalized�Command.ensure_finalized�s���~�~��!�!�#���r7c�4�[SURS35e)a�Set default values for all the options that this command
supports.  Note that these defaults may be overridden by other
commands, by the setup script, by config files, or by the
command-line.  Thus, this is not the place to code dependencies
between options; generally, 'initialize_options()' implementations
are just a bunch of "self.foo = None" assignments.

This method must be implemented by all command classes.
�abstract method -- subclass � must override�r*r)rCs r4r,�Command.initialize_options��"���*�4�>�>�*:�.�I�
�	
r7c�4�[SURS35e)a�Set final values for all the options that this command supports.
This is always called as late as possible, ie.  after any option
assignments from the command-line or from other commands have been
done.  Thus, this is the place to code option dependencies: if
'foo' depends on 'bar', then it is safe to set 'foo' from 'bar' as
long as 'foo' still has the same value it was assigned in
'initialize_options()'.

This method must be implemented by all command classes.
rGrHrIrCs r4rB�Command.finalize_options�s"���*�4�>�>�*:�.�I�
�	
r7Nc�T�SSKJn UcSUR5S3nURX!-[R
S9 US-nURHVun nURU5nUSS:XaUSSn[X5nURX$S	U3-[R
S9 MX g)
Nr)�
longopt_xlatezcommand options for 'z':)�levelz  ����=z = )	�distutils.fancy_getoptrO�get_command_name�announce�logging�INFOr$�	translater;)r2�header�indentrO�optionr:�values       r4�dump_options�Command.dump_options�s���8��>�,�T�-B�-B�-D�,E�R�H�F��
�
�f�o�W�\�\�
�:��$��� �-�-�L�F�A�q��%�%�m�4�F��b�z�S� �������D�)�E��M�M�&�X�S���#8�8����M�M�.r7c�4�[SURS35e)a�A command's raison d'etre: carry out the action it exists to
perform, controlled by the options initialized in
'initialize_options()', customized by other commands, the setup
script, the command-line, and config files, and finalized in
'finalize_options()'.  All terminal output and filesystem
interaction should be done by 'run()'.

This method must be implemented by all command classes.
rGrHrIrCs r4�run�Command.run�rKr7c�0�[R"X!5 g�Nr)r2�msgrPs   r4rU�Command.announce�s������r7c�r�SSKJn U(a*[U5 [RR5 gg)znPrint 'msg' to stdout if the global DEBUG (taken from the
DISTUTILS_DEBUG environment variable) flag is true.
r)�DEBUGN)�distutils.debugrg�print�sys�stdout�flush)r2rdrgs   r4�debug_print�Command.debug_print�s&��	*���#�J��J�J����r7c	��[X5nUc[XU5 U$[U[5(d[	SUSUSUS35eU$)N�'z' must be a z (got `z`))r;�setattrr'�strr)r2r[�what�default�vals     r4�_ensure_stringlike�Command._ensure_stringlike�sS���d�#���;��D�'�*��N��C��%�%�&��6�(�,�t�f�G�C�5�PR�'S�T�T��
r7c�*�URUSU5 g)zGEnsure that 'option' is a string; if not defined, set it to
'default'.
�stringN)rv)r2r[rts   r4�
ensure_string�Command.ensure_string�s��	
�����'�:r7c��[X5nUcg[U[5(a"[X[R
"SU55 g[U[5(a[SU55nOSnU(d[SUSU<S35eg)z�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"].
Nz,\s*|\s+c3�B# �UHn[U[5v� M g7frc)r'rr)�.0�vs  r4�	<genexpr>�-Command.ensure_string_list.<locals>.<genexpr>	s���9�S���A�s�+�+�S�s�Frpz!' must be a list of strings (got �))	r;r'rrrq�re�split�list�allr)r2r[ru�oks    r4�ensure_string_list�Command.ensure_string_list�s����d�#���;��
��S�
!�
!��D�"�(�(�;��"<�=��#�t�$�$��9�S�9�9�����*���x�@���q�I���r7c�n�URXU5nUb U"U5(d[SU-X4-5egg)Nzerror in '%s' option: )rvr)r2r[�testerrs�	error_fmtrtrus       r4�_ensure_tested_string�Command._ensure_tested_stringsD���%�%�f�G�<���?�6�#�;�;�&�)�I�5�&��F��
�$/�?r7c�\�URU[RRSS5 g)z5Ensure that 'option' is the name of an existing file.�filenamez$'%s' does not exist or is not a fileN)r��os�path�isfile�r2r[s  r4�ensure_filename�Command.ensure_filenames"���"�"��B�G�G�N�N�J�0V�	
r7c�\�URU[RRSS5 g)Nzdirectory namez)'%s' does not exist or is not a directory)r�r�r��isdirr�s  r4�ensure_dirname�Command.ensure_dirnames$���"�"���G�G�M�M��7�		
r7c�h�[US5(aUR$URR$)N�command_name)�hasattrr�r)�__name__rCs r4rT�Command.get_command_name(s+���4��(�(��$�$�$��>�>�*�*�*r7c	��URRU5nUR5 UH(upE[X5bM[	X[X455 M* g)a�Set the values of any "undefined" options from corresponding
option values in some other command object.  "Undefined" here means
"is None", which is the convention used to indicate that an option
has not been changed between 'initialize_options()' and
'finalize_options()'.  Usually called from 'finalize_options()' for
options that depend on some other command rather than another
option of the same command.  'src_cmd' is the other command from
which option values will be taken (a command object will be created
for it if necessary); the remaining arguments are
'(src_option,dst_option)' tuples which mean "take the value of
'src_option' in the 'src_cmd' command object, and copy it to
'dst_option' in the current command object".
N)r+�get_command_objrDr;rq)r2�src_cmd�option_pairs�src_cmd_obj�
src_option�
dst_options      r4�set_undefined_options�Command.set_undefined_options.sM��"�'�'�7�7��@���$�$�&�&2�"�J��t�(�0���'�+�*J�K�'3r7c�\�URRX5nUR5 U$)z�Wrapper around Distribution's 'get_command_obj()' method: find
(create if necessary and 'create' is true) the command object for
'command', call its 'ensure_finalized()' method, and return the
finalized command object.
)r+r�rD)r2�command�create�cmd_objs    r4�get_finalized_command�Command.get_finalized_commandGs+���#�#�3�3�G�D��� � �"��r7c��grc��r2r��reinit_subcommandss   r4�reinitialize_command�Command.reinitialize_commandSs��r7c��grcr�r�s   r4r�r�Ws��r7c�8�URRX5$rc)r+r�r�s   r4r�r�[s��� � �5�5�g�R�Rr7c�:�URRU5 g)z�Run some other command: uses the 'run_command()' method of
Distribution, which creates and finalizes the command object if
necessary and then invokes its 'run()' method.
N)r+�run_command)r2r�s  r4r��Command.run_command`s��
	
���%�%�g�.r7c�z�/nURH(up#UbU"U5(dMURU5 M* U$)aCDetermine the sub-commands that are relevant in the current
distribution (ie., that need to be run).  This is based on the
'sub_commands' class attribute: each tuple in that list may include
a method that we call to determine if the subcommand needs to be
run for the current distribution.  Return a list of command names.
)r#�append)r2�commands�cmd_name�methods    r4�get_sub_commands�Command.get_sub_commandsgs<���� $� 1� 1��H��~���������)�!2��r7c�P�[R"SUR5U5 g)Nzwarning: %s: %s
)r�warningrT)r2rds  r4�warn�Command.warnvs�����'��)>�)>�)@�#�Fr7c�B�[R"XX0RS9 g�N�r9)r�executer9)r2�func�argsrdrPs     r4r��Command.executeys��	
���T��l�l�;r7c�B�[R"XURS9 gr�)r�mkpathr9)r2�name�modes   r4r��Command.mkpath�s������D�L�L�9r7c��grcr��r2�infile�outfile�
preserve_mode�preserve_times�linkrPs       r4�	copy_file�Command.copy_file�s��(+r7c��grcr�r�s       r4r�r��s��,/r7c
�h�[R"UUUUUR(+UURS9$)z�Copy a file respecting verbose, dry-run and force flags.  (The
former two default to whatever is in the Distribution object, and
the latter defaults to false for commands that don't define it.)r�)rr�r/r9r�s       r4r�r��s6���"�"������
�
�N���L�L�
�	
r7c
�h�[R"UUUUUUR(+URS9$)zLCopy an entire directory tree respecting verbose, dry-run,
and force flags.
r�)r�	copy_treer/r9)r2r�r�r�r��preserve_symlinksrPs       r4r��Command.copy_tree�s6���!�!�������
�
�N��L�L�
�	
r7c��grcr��r2�src�dstrPs    r4�	move_file�Command.move_file�s��r7c��grcr�r�s    r4r�r��s��"r7c�@�[R"XURS9$)z$Move a file respecting dry-run flag.r�)rr�r9r�s    r4r�r��s���"�"�3�T�\�\�B�Br7c�2�SSKJn U"XURS9 g)z2Spawn an external command respecting dry-run flag.r)�spawnr�N)�distutils.spawnr�r9)r2�cmd�search_pathrPr�s     r4r��
Command.spawn�s��	*�
�c����5r7c��grcr��r2�	base_name�format�root_dir�base_dir�owner�groups       r4�make_archive�Command.make_archive����r7c��grcr�r�s       r4r�r��r�r7c
�J�[R"UUUUURUUS9$)N)r9r�r�)rr�r9r�s       r4r�r��s0���(�(������L�L���
�	
r7c��UcSUS3n[U[5(aU4nO&[U[[45(d[	S5eUc!SRUSR
U55nUR(d[R"X5(aURX4XW5 g[R"U5 g)a�Special case of 'execute()' for operations that process one or
more input files and generate one output file.  Works just like
'execute()', except the operation is skipped and a different
message printed if 'outfile' already exists and is newer than all
files listed in 'infiles'.  If the command defined 'self.force',
and it is true, then the command is unconditionally run -- does no
timestamp checks.
Nz	skipping z (inputs unchanged)z9'infiles' must be a string, or a list or tuple of stringszgenerating {} from {}z, )
r'rrr��tupler(r��joinr/r
�newer_groupr�r�debug)r2�infilesr�r�r��exec_msg�skip_msgrPs        r4�	make_file�Command.make_files���$��"�7�)�+>�?�H��g�s�#�#��j�G��G�d�E�]�3�3��W�X�X���.�5�5�g�t�y�y��?Q�R�H�
�:�:��.�.�w�@�@��L�L��X�5�
�I�I�h�r7)r-r+r1r/r0r.)r3r�return�None)rr)N�)rd�objectrP�intrr)rdrrrrc)r[rrrt�
str | Nonerr)r[rrrr)rrr)r�rrr�ztuple[str, str]rr)T)r�rrr��boolrr )F)r�rrr�rrr )r�rr�rrr)r�z
str | Commandrr )r�rrrr)r�	list[str])Nr)
r��Callable[[Unpack[_Ts]], object]r��tuple[Unpack[_Ts]]rdrrPr	rr)i�)r�rrr�r	rr)TTNr)r�rr�rr�rr�rr�r
rPr	rztuple[_StrPathT | str, bool])r�rr�rr�rr�rr�r
rPr	rz tuple[_BytesPathT | bytes, bool])r��3str | os.PathLike[str] | bytes | os.PathLike[bytes]r�rr�rr�rr�r
rPr	rz@tuple[str | os.PathLike[str] | bytes | os.PathLike[bytes], bool])TTFr)r�rr�rrr�rr�rr�rrPr	rr)r)r�rr�rrPr	rz_StrPathT | str)r�rr�rrPr	rz_BytesPathT | bytes)r�rr�rrPr	rr)Tr)r�zMutableSequence[str]r�rrPr	rr)NNNN)r�rrr�rrr��:str | os.PathLike[str] | bytes | os.PathLike[bytes] | Noner�r
r�r
r�r
rrr)NNN)r�rr�rrr�rr�r
r�r
r�r
rrr)r�rr�rrr�rr�r
r�r
r�r
rrr)NNr)rz!str | list[str] | tuple[str, ...]r�rr�r
r�rrrrrrPr	rr)+r��
__module__�__qualname__�__firstlineno__�__doc__r#�__annotations__r$r5r?rDrr,rBr]r`rVrgrUrmrvrzr�r�r�r�rTr�r�rr�r�r�r�r�r�r�r�r�r�r�r�__static_attributes__r�r7r4r r "s���
�>	����	����-�`'��$�
��
��

��

�N��
��
�29�����.�;��*�
�
�+�L��L�+:�L�	
�L�2��7<����04��	�����=B�� ��6:��	����:?�S�$�S�	�S�
/��G���<�-�<�!�<��	<�
�<�
�
<�:��
#�#���+�&�+��+��	+�
�+��
+��+�
&�+��+��
#�#���/�*�/��/��	/�
�/��
/��/�
*�/��/�#�#���
�C�
�E�
��	
�
�
��

��
�
J�
�4#�#�"'��
�&�
��
��	
�
�
� �

��
�
�
�,�HI��)��09��BE��	�����NO�"�-�"�4?�"�HK�"�	�"��"��	C�
@�C�A�C��	C�

=�C�QR�6�'�6�6:�6�JM�6�	
�6��
PT�#� � ������M�	�
���
���

����� $� � ��)����F�	�
���
���

����PT�#� � �
�)�
��
�M�	
�
�
��

��
�

�
�2 ���% �2�% �E�% �.�	% �
!�% ��
% ��% ��% �
�% �% r7)&r�
__future__rrVr�r�rj�abcr�collections.abcrr�typingrrr	r
rrr
rrrr�_logr�errorsrr&r�typing_extensionsrrrrrrr r�r7r4�<module>rsx���#��	�	�
��5�B�B�@�@��(��+�6�
�u�
�C��K�'?�@�	��m�+G�H���K�y�1�	�H �H r7

Youez - 2016 - github.com/yon3zu
LinuXploit