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

�h�F��f�SrSSKJr SSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
r
SSKJrJrJr SSKJrJr SSKJr SSKJr SS	KJr SS
KJrJr SSKJr \(aSSKJ r J!r! \ "S
5r"S$Sjr#S$Sjr$\RJS:XaSq&Sr'Sr(Sr)Sr*S%Sjr+\S&Sj5r,S'Sjr-\R\S(Sj5r/S)Sjr0Sr1S*S+Sjjr2S=q3=q4q5Sr6S,Sjr7S-S.Sjjr8S/Sjr9S0S1S jjr:S2S!jr;S3S"jr<S#r=g)4zudistutils.util

Miscellaneous utility functions -- anything that doesn't fit into
one of the other *util.py modules.
�)�annotationsN)�Callable�Iterable�Mapping)�
TYPE_CHECKING�AnyStr)�	pass_none�)�log)�newer)�DistutilsByteCompileError�DistutilsPlatformError)�spawn)�TypeVarTuple�Unpack�_Tsc�,�[R"5$)z�
Return a string that identifies the current platform. Use this
function to distinguish platform-specific build directories and
platform-specific built distributions.
)�	sysconfig�get_platform���</usr/lib/python3/dist-packages/setuptools/_distutils/util.py�get_host_platformr#s���!�!�#�#rc���[RS:XaHSSSSS.n[RRS5nURU5=(d
 [	5$[	5$)N�nt�win32z	win-amd64z	win-arm32z	win-arm64)�x86�x64�arm�arm64�VSCMD_ARG_TGT_ARCH)�os�name�environ�getr)�TARGET_TO_PLAT�targets  rrr1sX��	�w�w�$����� �	
������� 4�5���!�!�&�)�@�->�-@�@���r�darwin�MACOSX_DEPLOYMENT_TARGETc��Sqg)zFor testing only. Do not call.N)�_syscfg_macosx_verrrr�_clear_cached_macosx_verr,Cs
���rc�x�[c.SSKJn UR"[5=(d SnU(aUq[$)z�Get the version of macOS latched in the Python interpreter configuration.
Returns the version as a string or None if can't obtain one. Cached.r)r�)r+�	distutilsr�get_config_var�MACOSX_VERSION_VAR)r�vers  r�!get_macosx_target_ver_from_syscfgr3Is2���!�'��&�&�'9�:�@�b���!$���rc��[5n[RR[5nU(aIU(a@[U5SS/:�a/[U5SS/:aS[-SUSUS3-n[
U5eU$U$)aReturn the version of macOS for which we are building.

The target version defaults to the version in sysconfig latched at time
the Python interpreter was built, unless overridden by an environment
variable. If neither source has a value, then None is returned�
��$z mismatch: now "z" but "z*" during configure; must use 10.3 or later)r3r"r$r%r1�
split_versionr)�
syscfg_ver�env_ver�my_msgs   r�get_macosx_target_verr<Vs���3�4�J��j�j�n�n�/�0�G��
��j�)�b�!�W�4��g�&�"�a��0��(�(�,��y��
�|�4)�,)�)�
�
)��0�0����rc�b�URS5Vs/sHn[U5PM sn$s snf)zEConvert a dot-separated string into a list of numbers for comparisons�.)�split�int)�s�ns  rr8r8vs&���G�G�C�L�)�L�q�C��F�L�)�)��)s�,c�V�[R"[R"U55$)a

Allow for pathlib.Path inputs, coax to a native path string.

If None is passed, will just pass it through as
Setuptools relies on this behavior.

>>> convert_path(None) is None
True

Removes empty paths.

>>> convert_path('foo/./bar').replace('\\', '/')
'foo/bar'
)r"�fspath�pathlib�PurePath)�pathnames r�convert_pathrH{s�� �9�9�W�%�%�h�/�0�0rc��[RS:Xae[RRU5(d[RR	X5$[RR	XSS5$[RS:Xa\[RRU5up#US[R:XaUSSn[RR	X5$[S[RS35e)z�Return 'pathname' with 'new_root' prepended.  If 'pathname' is
relative, this is equivalent to "os.path.join(new_root,pathname)".
Otherwise, it requires making 'pathname' relative and then joining the
two, which is tricky on DOS/Windows and Mac OS.
�posixr
Nrrznothing known about platform '�')r"r#�path�isabs�join�
splitdrive�sepr)�new_rootrG�driverLs    r�change_rootrS�s���
�w�w�'���w�w�}�}�X�&�&��7�7�<�<��3�3��7�7�<�<��1�2�,�7�7�	���D�����*�*�8�4�
����7�b�f�f�����8�D��w�w�|�|�H�+�+�
 �#A�"�'�'��!�!L�
M�Mrc�Z�[RS:XaQS[R;a=SSKnUR	[R
"55S[RS'S[R;a[5[RS'gg![[4a NCf=f)a4Ensure that 'os.environ' has all the environment variables we
guarantee that users can use in config files, command-line options,
etc.  Currently this includes:
  HOME - user's home directory (Unix only)
  PLAT - description of the current platform, including hardware
         and OS (see 'get_platform()')
rJ�HOMErN��PLAT)	r"r#r$�pwd�getpwuid�getuid�ImportError�KeyErrorr)rXs r�
check_environr]�s���
�w�w�'��f�B�J�J�6�	��!$���b�i�i�k�!:�1�!=�B�J�J�v���R�Z�Z��)�^��
�
�6�� ���X�&�	�
�	�s�<B�B*�)B*c�
�[5 [[R5nUR	SUR555 [
U5RU5$![an[SU35eSnAff=f)a�
Perform variable substitution on 'string'.
Variables are indicated by format-style braces ("{var}").
Variable is substituted by the value found in the 'local_vars'
dictionary or in 'os.environ' if it's not in 'local_vars'.
'os.environ' is first checked/augmented to guarantee that it contains
certain values: see 'check_environ()'.  Raise ValueError for any
variables not found in either 'local_vars' or 'os.environ'.
c3�@# �UHupU[U54v� M g7f�N��str)�.0r#�values   r�	<genexpr>�subst_vars.<locals>.<genexpr>�s���K�8J���4��U��$�8J�s�zinvalid variable N)
r]�dictr"r$�update�items�
_subst_compat�
format_mapr\�
ValueError)rA�
local_vars�lookup�vars    r�
subst_varsrp�sp���O�
�"�*�*�
�F�
�M�M�K�
�8H�8H�8J�K�K�4��Q��*�*�6�2�2���4��,�S�E�2�3�3��4�s�A%�%
B�/A=�=Bc�x�Sn[R"SX5nX :waSSKnURS[5 U$)zV
Replace shell/Perl-style variable substitution with
format-style. For compatibility.
c�,�SURS5S3$)N�{r
�})�group)�matchs r�_subst�_subst_compat.<locals>._subst�s���E�K�K��N�#�2�&�&rz\$([a-zA-Z_][a-zA-Z_0-9]*)rNz-shell/Perl-style substitutions are deprecated)�re�sub�warnings�warn�DeprecationWarning)rArw�replr{s    rrjrj�s;��'��6�6�/��;�D��y���
�
�;��	
��Krc��U[U5-$r`ra)�exc�prefixs  r�grok_environment_errorr��s���C��H��rc��[R"S[RS35q[R"S5q[R"S5qg)Nz[^\\\'\"z ]*z'(?:[^'\\]|\\.)*'z"(?:[^"\\]|\\.)*")ry�compile�string�
whitespace�
_wordchars_re�
_squote_re�
_dquote_rerrr�_init_regexr��s>���J�J�(�6�+<�+<�*=�S�A�B�M����0�1�J����0�1�Jrc�:�[c
[5 UR5n/nSnU(Gam[RX5nUR	5nU[U5:XaUR
USU5 U$X[R;a)UR
USU5 XSR5nSnO�XS:XaUSUXS-S-nUS-nO�XS:Xa[RX5nO/XS:Xa[RX5nO[SXS35eUc[S	XS
35eUR5upTUSUXS-US-
-XS-nUR	5S-
nU[U5:�aUR
U5 U$U(aGMmU$)a�Split a string up according to Unix shell-like rules for quotes and
backslashes.  In short: words are delimited by spaces, as long as those
spaces are not escaped by a backslash, or inside a quoted string.
Single and double quotes are equivalent, and the quote characters can
be backslash-escaped.  The backslash is stripped from any two-character
escape sequence, leaving only the escaped character.  The quote
characters are stripped from any quoted string.  Returns a list of
words.
Nr�\r
rK�"zthis can't happen (bad char 'z')zbad string (mismatched z	 quotes?)�)r�r��striprv�end�len�appendr�r��lstripr�r��RuntimeErrorrl�span)rA�words�pos�mr��begs      r�split_quotedr��s������
�	���	�A��E�
�C�
�����'���e�e�g���#�a�&�=��L�L��4�C��!��D�L�A
�6�V�&�&�&�
�L�L��4�C��!��$���� �A��C�
�V�t�^��$�3��!�!�G�I�,�&�A���'�C��v��}��$�$�Q�,����3���$�$�Q�,��"�%B�1�6�(�"�#M�N�N��y� �#:�1�6�(�)�!L�M�M�����J�S��$�3��!�!�G�c�A�g�.�.��4��8�A��%�%�'�A�+�C��#�a�&�=��L�L��O���L�O�!�N�Lrc��Uc"URU<3nUSSS:XaUSSS-n[R"U5 U(dU"U6 gg)a]
Perform some action that affects the outside world (e.g. by
writing to the filesystem). Such actions are special because they
are disabled by the 'dry_run' flag. This method handles that
complication; simply supply the
function to call and an argument tuple for it (to embody the
"external action" being performed) and an optional message to
emit.
N���z,)r�))�__name__r�info)�func�args�msg�verbose�dry_runs     r�executer�7sR�� �{������x�(���r�s�8�t���a��)�c�/�C��H�H�S�M���d��rc�\�UR5nUS;agUS;ag[SU<35e)z�Convert a string representation of truth to true (1) or false (0).

True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
are 'n', 'no', 'f', 'false', 'off', and '0'.  Raises ValueError if
'val' is anything else.
)�y�yes�t�true�on�1T)rB�no�f�false�off�0Fzinvalid truth value )�lowerrl)�vals r�	strtoboolr�Qs:���)�)�+�C�
�2�2��	�5�	5���/��w�7�8�8rc��[R(a[S5eUcUS:HnU(Gd-[R"S5up�[
R"SU	5 U(d�[R"USSS9n
U
 U
RS	5 U
RS
R[[U55S-5 U
RSU<S
U<SU<SU<SU<S35 SSS5 [R/nUR[R "55 UR#U	5 [%X�S9 ['[R(U	4SU	3US9 gSSKJn UGHDn
U
SSS:waMUS:�a(US:XaSOUn[.R0R3X�S9nO[.R0R3U
5nU
nU(a3U
S[5U5U:wa[7SU
<SU<35eU[5U5SnU(a [R8RUU5n[R8R;U5nU(dM�U(d[=X�5(a.[
R"SU
U5 U(dU"X�U5 GM)GM,[
R>"SU
U5 GMG g!,(df   GN�=f)aByte-compile a collection of Python source files to .pyc
files in a __pycache__ subdirectory.  'py_files' is a list
of files to compile; any files that don't end in ".py" are silently
skipped.  'optimize' must be one of the following:
  0 - don't optimize
  1 - normal optimization (like "python -O")
  2 - extra optimization (like "python -OO")
If 'force' is true, all files are recompiled regardless of
timestamps.

The source filename encoded in each bytecode file defaults to the
filenames listed in 'py_files'; you can modify these with 'prefix' and
'basedir'.  'prefix' is a string that will be stripped off of each
source filename, and 'base_dir' is a directory name that will be
prepended (after 'prefix' is stripped).  You can supply either or both
(or neither) of 'prefix' and 'base_dir', as you wish.

If 'dry_run' is true, doesn't actually do anything that would
affect the filesystem.

Byte-compilation is either done directly in this interpreter process
with the standard py_compile module, or indirectly by writing a
temporary script and executing it.  Normally, you should let
'byte_compile()' figure out to use direct compilation or not (see
the source for details).  The 'direct' flag is used by the script
generated in indirect mode; unless you know what you're doing, leave
it set to None.
zbyte-compiling is disabled.Nrz.pyz$writing byte-compilation script '%s'�wzutf-8)�encodingz2from distutils.util import byte_compile
files = [
z,
z]
z
byte_compile(files, optimize=z, force=z,
             prefix=z, base_dir=z,
             verbose=z+, dry_run=False,
             direct=True)
)r�z	removing )r����r.)�optimizationzinvalid prefix: filename z doesn't start with zbyte-compiling %s to %sz%skipping byte-compilation of %s to %s) �sys�dont_write_bytecoder
�tempfile�mkstemprr�r"�fdopen�writerN�map�repr�
executable�extend�
subprocess�"_optim_args_from_interpreter_flagsr�rr��remove�
py_compiler��	importlib�util�cache_from_sourcer�rlrL�basenamer�debug)�py_files�optimize�forcer��base_dirr�r��direct�	script_fd�script_name�script�cmdr��file�opt�cfile�dfile�
cfile_bases                  r�byte_compiler�as_��P���'�(E�F�F��~�'�1�}���#+�#3�#3�E�#:� �����7��E���Y�Y�y�#��@�F�������"���U�Z�Z��D�(�(;�<�u�D�E�����&�\��%��;��J�k�(��6��[�!���'�8�~�~����
�
�:�@�@�B�C��
�
�;��
�c�#���	�	�K�>�Y�{�m�+D�g�V�	'��D��B�C�y�E�!��
�1�}�$��M�b�x��!���8�8��8�P��!���8�8��>���E���
�#�f�+�&�&�0�$�3�D�8�;O�PV�z�Z����c�&�k�m�,��������X�u�5�����)�)�%�0�J��v��E�$�.�.��H�H�6��j�I�"���U�3�#��I�I�E�t�Z�X�?�S��s
�?A)J0�0
J?c��SnURSS9nU=(a USR5SUS:gnU(aUOSnURU5U-$)z�Return a version of the string escaped for inclusion in an
RFC-822 header, by ensuring there are 8 spaces space after each newline.
z        T)�keepends���rr.)�
splitlinesrN)�header�indent�lines�ends_in_newline�suffixs     r�
rfc822_escaper��s`���F����t��,�E��F��b�	� 4� 4� 6�q� 9�U�2�Y� F�O�&�V�B�F��;�;�u���&�&rc�h�[RS:H=(a [5RS5$)z�Returns True if the current platform is mingw.

Python compiled with Mingw-w64 has sys.platform == 'win32' and
get_platform() starts with 'mingw'.
r�mingw)r��platformr�
startswithrrr�is_mingwr��s%���<�<�7�"�I�|�~�'@�'@��'I�Irc�@�[[R"S55$)zKReturn True if the Python interpreter is built with free threading support.�Py_GIL_DISABLED)�boolrr0rrr�is_freethreadedr�s���	�(�(�):�;�<�<r)�returnrb)rArbr�z	list[int])rGzstr | os.PathLike[str]r�rb)rQ�AnyStr | os.PathLike[AnyStr]rGr�r�r)r��None)rmzMapping[str, object]r�rb)zerror: )r��objectr�rbr�rb)rArbr�z	list[str])NFF)r�zCallable[[Unpack[_Ts]], object]r�ztuple[Unpack[_Ts]]r�r�r�r�r�r�r�r�)r�rbr�r�)rFNNTFN)r�z
Iterable[str]r�r@r�r�r��
str | Noner�r�r�r�r�r�r�zbool | Noner�r�)r�rbr�rb)r�r�)>�__doc__�
__future__r�	functools�importlib.utilr�r"rEryr�r�r�rr��collections.abcrrr�typingrr�jaraco.functoolsr	�_logr�	_modifiedr�errorsr
rr�typing_extensionsrrrrrr�r+r1r,r3r<r8rHrS�	lru_cacher]rprjr�r�r�r�r�r�r�r�r�r�r�r�rrr�<module>rs����#���	��	�
��
���7�7�(�&���E���6�
�u�
�C�$�
��<�<�8����/���
��@*�
�1��1�$N�*�N�6R�N��N�.���,��,�,4�&�(�+/�.�
�.�
�Z�2�<�J����
)��
��
���	�
��
�
�4
9�$�������HY��HY��HY��HY�
�	HY�
�HY��
HY��HY�
�HY�
�HY�V'�J�=r

Youez - 2016 - github.com/yon3zu
LinuXploit