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/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�h2���SrSSKJr SSKrSSKrSSKrSSKJr SSKJ	r	 SSK
JrJrJ
r
Jr SSKJr SS	KJr SS
KJr SSS
.r"SS\5rSSjrg)a�distutils.command.config

Implements the Distutils 'config' command, a (mostly) empty command class
that exists mainly to be sub-classed by specific module distributions and
applications.  The idea is that while every "config" command is different,
at least they're all named the same, and users always see "config" in the
list of standard commands.  Also, this is a good place to put common
configure-like tasks: "try to compile this C code", or "figure out where
this header file lives".
�)�annotationsN)�Sequence)�log�)�	CCompiler�CompileError�	LinkError�new_compiler)�Command)�DistutilsExecError)�customize_compilerz.cz.cxx)�czc++c���\rSrSrSr/SQrSrSrSrSr	Sr
S	rS
rSr
SrSSjrSSjrSSjrSSjrSSjrSSjrS
S
S
/4SSjjrSSjrSrg
)�config�zprepare to build)	)z	compiler=Nzspecify the compiler type)zcc=Nzspecify the compiler executable)z
include-dirs=�Iz.list of directories to search for header files)zdefine=�DzC preprocessor macros to define)zundef=�Uz!C preprocessor macros to undefine)z
libraries=�lz!external C libraries to link with)z
library-dirs=�Lz.directories to search for external C libraries)�noisyNz1show every action (compile, link, run, ...) taken)zdump-sourceNz=dump generated source files before attempting to compile themc�t�SUlSUlSUlSUlSUlSUlSUl/Ulg)N�)�compiler�cc�include_dirs�	libraries�library_dirsr�dump_source�
temp_files��selfs �F/usr/lib/python3/dist-packages/setuptools/_distutils/command/config.py�initialize_options�config.initialize_options2sA����
���� ������ �����
�������c�T�URc%URR=(d /UlOM[UR[5(a.URR	[
R5UlURc/UlO1[UR[5(aUR/UlURc/Ulg[UR[5(a/URR	[
R5Ulgg�N)	r�distribution�
isinstance�str�split�os�pathseprrr!s r#�finalize_options�config.finalize_optionsAs������$� $� 1� 1� >� >� D�"�D��
��)�)�3�
/�
/� $� 1� 1� 7� 7��
�
� C�D���>�>�!��D�N�
�����
,�
,�"�n�n�-�D�N����$� "�D��
��)�)�3�
/�
/� $� 1� 1� 7� 7��
�
� C�D��0r&c��gr(�r!s r#�run�
config.runQs��r&c��[UR[5(d�[URURSS9Ul[UR5 UR(a%URRUR5 UR(a%URRUR5 UR(a&URRUR5 ggg)zNCheck that 'self.compiler' really is a CCompiler object;
if not, make it one.
T)r�dry_run�forceN)r*rrr
r6r
r�set_include_dirsr�
set_librariesr�set_library_dirsr!s r#�_check_compiler�config._check_compilerXs����$�-�-��3�3�(�������D��D�M�
�t�}�}�-�� � ��
�
�.�.�t�/@�/@�A��~�~��
�
�+�+�D�N�N�;�� � ��
�
�.�.�t�/@�/@�A�!�4r&c�,�S[U-n[USSS9nU(a/UHnURSUS35 M URS5 URU5 USS:waURS5 SSS5 U$!,(df   U$=f)	N�_configtest�w�utf-8��encodingz
#include <z>
�
���)�LANG_EXT�open�write)r"�body�headers�lang�filename�file�headers       r#�_gen_temp_sourcefile�config._gen_temp_sourcefilejs��� �8�D�>�1��
�(�C�'�
2�d��%�F��J�J��F�8�3�7�8�&��
�
�4� ��J�J�t���B�x�4���
�
�4� �3���3�
2���s�A"B�
Bc��URXU5nSnURRXV/5 URR	XVUS9 XV4$)Nz
_configtest.i�r)rNr �extendr�
preprocess)r"rHrIrrJ�src�outs       r#�_preprocess�config._preprocessvsL���'�'��t�<����������z�*��
�
� � ��� �E��z�r&c��URXU5nUR(a[USUS35 URR	U/5unUR
R
XV/5 URRU/US9 XV4$)Nzcompiling 'z':rQ)rNr�	dump_filer�object_filenamesr rR�compile)r"rHrIrrJrT�objs       r#�_compile�config._compile}s}���'�'��t�<������c�[���R�0�1����/�/���6���������z�*��
�
���s�e�,��?��z�r&c��URXX65upx[RR[RR	U55Sn	UR
R
U/U	UUUS9 UR
RbX�R
R-n	URRU	5 XxU	4$)Nr)rr�target_lang)
r]r-�path�splitext�basenamer�link_executable�
exe_extensionr �append)
r"rHrIrrrrJrTr\�progs
          r#�_link�config._link�s����]�]�4�,�E�
���w�w������ 0� 0�� 5�6�q�9���
�
�%�%�
�E���%��	&�	
��=�=�&�&�2��-�-�5�5�5�D������t�$��$��r&c���U(dURn/Ul[R"SSRU55 UHn[R
"U5 M g![a M,f=f)Nzremoving: %s� )r r�info�joinr-�remove�OSError)r"�	filenamesrKs   r#�_clean�
config._clean�s[������I� �D�O��������)�!4�5�!�H�
��	�	�(�#�"���
��
�s�A"�"
A0�/A0Nc��UR5 SnURXX45 UR5 U$![a SnN f=f)a)Construct a source file from 'body' (a string containing lines
of C/C++ code) and 'headers' (a list of header files to include)
and run it through the preprocessor.  Return true if the
preprocessor succeeded, false if there were any errors.
('body' probably isn't of much use, but what the heck.)
TF)r;rVrrq�r"rHrIrrJ�oks      r#�try_cpp�config.try_cpp�sP��	
����
��	����T�L�?�	
���
��	��	�	��B�	�s�8�A�Ac�8^�UR5 URX#XE5upg[T[5(a[R
"T5m[
USS9n[U4SjU55n	SSS5 UR5 W	$!,(df   N =f)a�Construct a source file (just like 'try_cpp()'), run it through
the preprocessor, and return true if any line of the output matches
'pattern'.  'pattern' should either be a compiled regex object or a
string containing a regex.  If both 'body' and 'headers' are None,
preprocesses an empty file -- which can be useful to determine the
symbols the preprocessor and compiler set by default.
r@rAc3�F># �UHnTRU5v� M g7fr()�search)�.0�line�patterns  �r#�	<genexpr>�$config.search_cpp.<locals>.<genexpr>�s����>������t�,�,��s�!N)	r;rVr*r+�rer[rF�anyrq)
r"r}rHrIrrJrTrUrL�matchs
 `        r#�
search_cpp�config.search_cpp�sz���	
�����#�#�D�<�F����g�s�#�#��j�j��)�G�
�#��
(�D��>��>�>�E�)�	
���
���	)�
(�s�B�
Bc���UR5 URXX45 Sn[R"U=(a S=(d S5 UR5 U$![a SnNHf=f)zgTry to compile a source file built from 'body' and 'headers'.
Return true on success, false otherwise.
TF�success!�failure.)r;r]rrrlrqrts      r#�try_compile�config.try_compile�sd��	
����	��M�M�$��<��B�	����"�
�0�j�1����
��	���	��B�	�s�A � A/�.A/c���UR5 URXX4XV5 Sn[R
"U=(a S=(d S5 UR
5 U$![[4a SnNNf=f)z�Try to compile and link a source file, built from 'body' and
'headers', to executable form.  Return true on success, false
otherwise.
TFr�r�)r;rhrr	rrlrq)r"rHrIrrrrJrus        r#�try_link�config.try_link�sk��	
����	��J�J�t�l�|�R��B�	����"�
�0�j�1����
��	���i�(�	��B�	�s�A!�!A6�5A6c�&�UR5 URXX4XV5upxn	URU	/5 Sn
[R"U
=(a S=(d S5 UR5 U
$![[[
4a Sn
NSf=f)z�Try to compile, link to an executable, and run a program
built from 'body' and 'headers'.  Return true on success, false
otherwise.
TFr�r�)	r;rh�spawnrr	rrrlrq)r"rHrIrrrrJrTr\�exerus           r#�try_run�config.try_run�s���	
����	� �J�J��|���M�C�c�
�J�J��u���B�	����"�
�0�j�1����
��	���i�);�<�	��B�	�s�*A6�6B�Bc�T�UR5 /nU(aURSUS35 URS5 U(aURSUS35 OURSUS35 URS5 SRU5S-nURX�X4U5$)	a�Determine if function 'func' is available by constructing a
source file that refers to 'func', and compiles and links it.
If everything succeeds, returns true; otherwise returns false.

The constructed source file starts out by including the header
files listed in 'headers'.  If 'decl' is true, it then declares
'func' (as "int func()"); you probably shouldn't supply 'headers'
and set 'decl' true in the same call, or you might get errors about
a conflicting declarations for 'func'.  Finally, the constructed
'main()' function either references 'func' or (if 'call' is true)
calls it.  'libraries' and 'library_dirs' are used when
linking.
zint z ();z
int main () {z  z();�;�}rC)r;rfrmr�)	r"�funcrIrrr�decl�callrHs	         r#�
check_func�config.check_funcs���.	
��������K�K�$�t�f�D�)�*����O�$���K�K�"�T�F�#��'��K�K�"�T�F�!��%����C���y�y����%���}�}�T�L�\�R�Rr&c	�f�UR5 URSUUU/[U5-U5$)a�Determine if 'library' is available to be linked against,
without actually checking that any particular symbols are provided
by it.  'headers' will be used in constructing the source file to
be compiled, but the only effect of this is to check if all the
header files listed are available.  Any libraries listed in
'other_libraries' will be included in the link, in case 'library'
has symbols that depend on other libraries.
zint main (void) { })r;r��list)r"�libraryrrIr�other_librariess      r#�	check_lib�config.check_lib<s<�� 	
�����}�}�!���
�I��_�-�-��
�	
r&c�&�URSU/US9$)z�Determine if the system header file named by 'header_file'
exists and can be found by the preprocessor; return true if so,
false otherwise.
z
/* No body */)rHrIr)rv)r"rMrrrJs     r#�check_header�config.check_headerUs#��
�|�|� �6�(���
�	
r&)rrrrrrrr )NNNr)NNr)NNNNr)NNNNFF)r�z
Sequence[str])�__name__�
__module__�__qualname__�__firstlineno__�description�user_optionsr$r/r3r;rNrVr]rhrqrvr�r�r�r�r�r�r��__static_attributes__r2r&r#rrs���$�K��L�&
�D� 
�B�$
��� �"	�*�"�(
�$����
��6����
��D����
�
�#S�P���)+�

�'�

�2
r&rc���Uc[R"SU5 O[R"U5 [R"[R"U5R	SS95 g)zbDumps a file content into log.info.

If head is not None, will be dumped before the file content.
Nz%sr@rA)rrl�pathlib�Path�	read_text)rK�heads  r#rYrY_sE��
�|�����x� �������H�H�W�\�\�(�
#�
-�
-�w�
-�
?�@r&r()�__doc__�
__future__rr-r�r��collections.abcr�distutils._logr�	ccompilerrrr	r
�corer�errorsr�	sysconfigr
rErrYr2r&r#�<module>r�sL��	�#�	��	�$��H�H��'�*��f�%��@
�W�@
�F
	Ar&

Youez - 2016 - github.com/yon3zu
LinuXploit