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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�hs'���SSKJr SSKrSSKrSSKJr SSKrSSKJ	r	 SSK
JrJr SSK
Jr SSKJr SSKJr S	S
KJr S	SKJr SSKJs Jr SSKJr S
\R8;r"SS5r"SS5rSr g)�)�annotationsN)�cache_from_source)�path)�	build_ext�get_abi3_suffix)�Distribution)�CompileError)�	Extension�)�environment)�DALS)�get_config_var�__pypy__c�8�\rSrSrSrSrSrSrSrSr	Sr
g	)
�TestBuildExt�c��[5n[U5nSURS'URS5n[RRUS5nX4:Xdeg)ze
Setuptools needs to give back the same
result as distutils, even if the fullname
is not in ext_map.
�zfoo/bar�fooN)rr�ext_map�get_ext_filename�orig)�self�dist�cmd�res�wanteds     �A/usr/lib/python3/dist-packages/setuptools/tests/test_build_ext.py�test_get_ext_filename�"TestBuildExt.test_get_ext_filenamesR���~����o��!#����I���"�"�5�)�����0�0��e�<���}��}�c��[[55 [SS/SS9n[[	U/S95n[U5nUR
5 SUR;deURS5n[5(d"UR[S55(deg
[RS:XaURS5(deg
S	U;deg
)ze
Filename needs to be loadable by several versions
of Python 3 if 'is_abi3' is truthy on Extension()
�	spam.eggs�eggs.cT��py_limited_api��ext_modules�
EXT_SUFFIX�win32zeggs.pyd�abi3N)
�printrr
r�dictr�finalize_optionsrr�endswithr�sys�platform)r�	extensionrrrs     r�test_abi3_filename�TestBuildExt.test_abi3_filename&s���
	�o�� ��k�H�:�d�K�	��D�i�[�9�:����o�������c�k�k�)�)�)��"�"�;�/��� � ��<�<��|� <�=�=�=�=�
�\�\�W�
$��<�<�
�+�+�+�+��S�=� �=r!c��[5n[U5n[SS/SS9=URS'nSUl[
(dUR
S5nOSnS[RS'UR
S	5nS
U:XdeUR
S5nXE:Xde[RS	g![RS	f=f)zL
SETUPTOOLS_EXT_SUFFIX variable always overrides
default extension options.
�for_abi3zs.cTr%Fzfor_abi3.test-suffixz.test-suffix�SETUPTOOLS_EXT_SUFFIX�normalznormal.test-suffixN)	rrr
r�_links_to_dynamic�IS_PYPYr�os�environ)rrr�ext�expectrs      r�test_ext_suffix_override�%TestBuildExt.test_ext_suffix_override;s���
�~����o��(1��
�G��	)
�	
����J��#�!&����w��)�)�*�5�F�,�F�	4�2@�B�J�J�.�/��&�&�x�0�C�'�3�.�.�.��&�&�z�2�C��=� �=��
�
�2�3���
�
�2�3�s
�AB/�/Cc��SSSS000SSS00S.n[SS	/5n[S
S/5n[SS
/5n[R"U5 [SX#U/SS0S.5$)N�mypkg�subpkgzext2.cr�ext1zmain.c)�srczc-extensionsz
mypkg.ext1zc-extensions/ext1/main.czmypkg.subpkg.ext2zsrc/mypkg/subpkg/ext2.c�ext3zc-extension/ext3.cz%test%rE)�script_namer(�package_dir)r
r�buildr)r�filesrD�ext2rFs     r�dist_with_example�TestBuildExt.dist_with_example[s����h��2��7�8�#�h��^�4�
��
��(B�'C�D���,�/H�.I�J����"6�!7�8���
�
�5���#� ��-���;�
��	r!c	�Z�URSS5 URSS5 UR5nURS5nSUlUR
"5 URR[RS5nUR"5Vs/sH"ofR[RS5PM$ nnUUS3US3US	3/:XdeUR"50:XdeURS5 S
UlUR
"5 UR"5R5VV	s0sHDup�UR[RS5U	R[RS5_MF n
nn	U
US3SUS3SUS	3S
0:Xdegs snfs sn	nf)Nr7�.mp3�&setuptools.command.build_ext.use_stubsFr�/�	/ext3.mp3�/mypkg/ext1.mp3�/mypkg/subpkg/ext2.mp3T�src/ext3.mp3�src/mypkg/ext1.mp3�src/mypkg/subpkg/ext2.mp3)�setenv�setattrrL�get_command_obj�
editable_mode�ensure_finalized�	build_lib�replacer;�sep�get_outputs�get_output_mapping�reinitialize_command�items)r�
tmpdir_cwd�monkeypatchrrr]�x�outputs�k�v�mappings           r�test_get_outputs�TestBuildExt.test_get_outputsls������2�F�;����D�e�L��%�%�'���(�(��5�	�"'�	���"�"�$��'�'�/�/�����<�	�3<�3H�3H�3J�K�3J�a�9�9�R�V�V�S�)�3J��K���k��#��k��)��k�/�0�
�
�	
�
�
�+�+�-��3�3�3�	
�!�!�+�.�"&�	���"�"�$�"�4�4�6�<�<�>�
�>���
�I�I�b�f�f�c�"�A�I�I�b�f�f�c�$:�:�>�	�
���k��#�^��k��)�+?��k�/�0�2M�
�
�	
�
��!L��
s
�)F"�<AF'c
��URSS5 URSS5 UR5nURS5nSUlUR
"5 URHnURUSS5 M URR[RS5nUR"5R5VVs0sHDupxUR[RS5UR[RS5_MF n	nnSn
U	U
"US	35U
"S
5US3SU
"US
35U
"S5US3SU
"US35U
"S5US3S0:XdeUS
3U	;deUS3U	;deU
"US
35nX�;deURUS35(deURS5(degs snnf)Nr7rOrPTr�_needs_stubrQc�T�[U5R[RS5$)zDMake it possible to do comparisons and tests in a OS-independent wayrQ)�_compiled_file_namer^r;r_)�files r�C�9TestBuildExt.test_get_output_mapping_with_stub.<locals>.C�s��&�t�,�4�4�R�V�V�S�A�Ar!z/ext3.pyzsrc/ext3.pyrRrUz/mypkg/ext1.pyzsrc/mypkg/ext1.pyrSrVz/mypkg/subpkg/ext2.pyzsrc/mypkg/subpkg/ext2.pyrTrWz/mypkg/__pycache__/ext1z.pyc)rXrYrLrZr[r\�
extensionsr]r^r;r_rarc�
startswithr/)rrdrerrr=r]rhrirjrr�example_stubs            r�!test_get_output_mapping_with_stub�.TestBuildExt.test_get_output_mapping_with_stub�s�����2�F�;����D�d�K��%�%�'���(�(��5�	�"&�	���"�"�$��'�'�C�����]�D�9�(��'�'�/�/�����<�	�"�4�4�6�<�<�>�
�>���
�I�I�b�f�f�c�"�A�I�I�b�f�f�c�$:�:�>�	�
�
	B��
���8�$�%�q��'7��k��#�^�
���>�*�+�Q�/B�-C��k��)�+?�
���0�1�2�A�6P�4Q��k�/�0�2M�

�
�	
�
���N�+�7�:�:�:���1�2�'�A�A�A��I�;�n�5�6���&�&�&��&�&�)��4K�'L�M�M�M�M��$�$�V�,�,�,�,��5
s�AG�N)�__name__�
__module__�__qualname__�__firstlineno__rr3r?rLrkrw�__static_attributes__ryr!rrrs"���!�*4�@�"
�@'-r!rc�0�\rSrSrSSjrSrSrSrSrg)	�TestBuildExtInplace�c��S00S.S.n[R"U5 [SS/US9n[[	U/S95nSUl[
U5n[U5R"SS	S
S.UD6 UR5 U$)
Nz#include missingheader.h
)�lib�tmp)r$z.buildr#r$)�optionalr'�setup.pyz
.build/libz
.build/tmp)r]�
build_tempry)
rrIr
rr-rGr�vars�updater\)rr��optsrJr2rrs       r�get_build_ext_cmd�%TestBuildExtInplace.get_build_ext_cmd�s���2� ��,�=
��	
�
�
�5���k�H�:��I�	��D�i�[�9�:��%�����o���S�	���Q�<�L�Q�D�Q������
r!c��UR5nURR5URR5-UR-$)z�
Historically, distutils "logged" by printing to sys.std*.
Later versions adopted the logging framework. Grab
messages regardless of how they were captured.
)�
readouterr�out�
splitlines�err�messages)r�caplog�capsys�stds    r�get_log_messages�$TestBuildExtInplace.get_log_messages�s@�����!���w�w�!�!�#�c�g�g�&8�&8�&:�:�V�_�_�L�Lr!c��URSSS9nUR5 [SURX#555(deg)zj
If optional extensions fail to build, setuptools should show the error
in the logs but not fail to build
T�r��inplacec3�&# �UHnSv� M	 g7f)z0build_ext: building extension "spam.eggs" failedNry)�.0�msgs  r�	<genexpr>�4TestBuildExtInplace.test_optional.<locals>.<genexpr>�s���
�<��
?�<�s�N)r��run�anyr�)rrdr�r�rs     r�
test_optional�!TestBuildExtInplace.test_optional�sQ��
�$�$�d�D�$�A�����	��
��,�,�V�<�
�
�
�	
�
r!c��URSSS9n[R"[5 UR	5 SSS5 g!,(df   g=f)NFTr�)r��pytest�raisesr	r�)rrdrs   r�test_non_optional�%TestBuildExtInplace.test_non_optional�s8���$�$�e�T�$�B��
�]�]�<�
(��G�G�I�)�
(�
(�s�A�
AryN)r��bool�returnr)	rzr{r|r}r�r�r�r�r~ryr!rr�r��s���M�

�r!r�c���[S5[S5[S5S.n[R"U5 [R"S/SS9unup4US:Xd
S	US
U35eg)Nz�
            from setuptools import Extension, setup
            setup(
                name='foo',
                version='0.0.0',
                ext_modules=[Extension('foo', ['foo.c'])],
            )
            a�
            #include "Python.h"

            #if PY_MAJOR_VERSION >= 3

            static struct PyModuleDef moduledef = {
                    PyModuleDef_HEAD_INIT,
                    "foo",
                    NULL,
                    0,
                    NULL,
                    NULL,
                    NULL,
                    NULL,
                    NULL
            };

            #define INITERROR return NULL

            PyMODINIT_FUNC PyInit_foo(void)

            #else

            #define INITERROR return

            void initfoo(void)

            #endif
            {
            #if PY_MAJOR_VERSION >= 3
                PyObject *module = PyModule_Create(&moduledef);
            #else
                PyObject *module = Py_InitModule("extension", NULL);
            #endif
                if (module == NULL)
                    INITERROR;
            #if PY_MAJOR_VERSION >= 3
                return module;
            #endif
            }
            zD
            [build]
            build_base = foo_build
            )r�zfoo.cz	setup.cfgrI)r�)r�data_streamrz	
STDOUT:
z	
STDERR:
)r
rrIr�run_setup_py)rdrJ�code�stdout�stderrs     r�test_build_ext_config_handlingr��s����
�	
��(
�*
�V�
�
�m<
�E�z	�J�J�u��(�5�5�
�I����D�
�6��1�9�?��F�8�;�v�h�?�?�9r!)!�
__future__rr;r0�importlib.utilrrpr��jaracor�setuptools.command.build_extrr�setuptools.distr�setuptools.errorsr	�setuptools.extensionr
rr�textwrapr
�distutils.command.build_ext�commandr�distutils.sysconfigr�builtin_module_namesr:rr�r�ryr!r�<module>r�sa��"�	�
�C�
��C�(�*�*���*�*�.�
��0�0�
0��[-�[-�|)�)�XC@r!

Youez - 2016 - github.com/yon3zu
LinuXploit