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_develop.cpython-313.pyc
�

�h���SrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSK	J
r
 SSKJr SSK
JrJr SrS	r\R$S
5r\R$S5r"SS
5r"SS5r"SS5rg)z
develop tests�N)�paths_on_pythonpath)�develop)�Distribution�)�contexts�
namespaceszHfrom setuptools import setup

setup(name='foo',
    packages=['foo'],
)
zprint "foo"
c#�# �[R"5n[R"5nURSU5 URSU5 Sv� SSS5 SSS5 g!,(df   N=f!,(df   g=f7f)Nzsite.USER_BASEzsite.USER_SITE)r�tempdir�setattr)�monkeypatch�	user_base�	user_sites   �?/usr/lib/python3/dist-packages/setuptools/tests/test_develop.py�	temp_userrsb���	�	�	�	�y�
�
�
�
�9���� 0�)�<���� 0�)�<�� �
�	�
�
��
�	�s3�B
�A9�)A(�A9�	B
�(
A6	�2A9�9
B�B
c#��# �UnURS5nUS-nUR5(a[[U55eUR	S5nUR[5 SSS5 US-nUR	S5nUR[5 SSS5 UR5 Uv� SSS5 g!,(df   N`=f!,(df   N==f!,(df   g=f7f)N�foo�setup.py�wz__init__.py)	�mkdir�isfile�
ValueError�dir�open�write�SETUP_PY�INIT_PY�as_cwd)�tmpdirr�targetr�setup�f�inits       r�test_envr#&s����
�F�
�,�,�u�
�C��Z��E��|�|�~�~���V��%�%�	���C��A�	�����
����D�	
���3��1�	�����
�	������
��
���
���	��sN�AC8�C�+C8�	C�C8�7C'�<	C8�
C�C8�
C$� C8�'
C5�1C8c��\rSrSr\"\S5r\"\S5=(a \R\R:gr	Sr
\RRSS9S5rSrg	)
�TestDevelop�6�real_prefix�base_prefixc���[R"S5 [SS/SSS/0S9n[U5nSUl[U5nUR
5 XlUR5 g)	zw
Test that console scripts are installed and that they reference
only the project by name and not the current version.
zTTODO: needs a fixture to cause 'develop' to be invoked without mutating environment.rz0.0�console_scriptszfoocmd = foo:foo)�name�packages�version�entry_pointsrN)	�pytest�skip�dictr�script_namer�ensure_finalized�install_dir�run)�selfr�settings�dist�cmds     r�test_console_scripts� TestDevelop.test_console_scripts:ss��
	���
:�	
����W��!�&�$��		
���H�%��%����d�m������ �����	�z0legacy behavior retained for compatibility #4167��reasonc���[SS9n[U5n[U5nUR5 [R
"UR5nURS:XdeURS:Xdeg)NzFoo $$$ Bar_baz-bing)r+z	.egg-link�Foo_Bar_baz_bing)	r1rrr3�pathlib�Path�egg_link�suffix�stem)r6r7r8r9�links     r�test_egg_link_filename�"TestDevelop.test_egg_link_filenameUsg���'�
���H�%���d�m�������|�|�C�L�L�)���{�{�k�)�)�)��y�y�.�.�.�.r<�N)�__name__�
__module__�__qualname__�__firstlineno__�hasattr�sys�
in_virtualenvr(�prefix�in_venvr:r/�mark�xfailrG�__static_attributes__rIr<rr%r%6sY���C��/�M��c�=�)�K�c�o�o����.K�G��6�[�[���P��Q�	/�R�	/r<r%c�*�\rSrSrSrSrSrSrSrg)�TestResolver�bz�
TODO: These tests were written with a minimal understanding
of what _resolve_setup_path is intending to do. Come up with
more meaningful cases that look like real-world scenarios.
c�@�[R"SSS5S:Xdeg)N�.�r�_resolve_setup_path�r6s r�test_resolve_setup_path_cwd�(TestResolver.test_resolve_setup_path_cwdis���*�*�3��S�9�S�@�@�@r<c�@�[R"SSS5S:Xdeg)N�pkgsrZ�../r[r]s r�test_resolve_setup_path_one_dir�,TestResolver.test_resolve_setup_path_one_dirls���*�*�6�3��?�5�H�H�Hr<c�@�[R"SSS5S:Xdeg)Nzpkgs/rZrarbr[r]s r�.test_resolve_setup_path_one_dir_trailing_slash�;TestResolver.test_resolve_setup_path_one_dir_trailing_slashos���*�*�7�C��@�E�I�I�Ir<rIN)	rJrKrLrM�__doc__r^rcrfrUrIr<rrWrWbs���A�I�Jr<rWc��\rSrSr\S5r\RR\	"\
RRS55SS9\RR\
R"5S:HSS9S55rS	rg
)�TestNamespaces�sc��[RSSS[U5/nUR5 [	[U5/5 [
R"U5 SSS5 SSS5 g!,(df   N=f!,(df   g=f)Nrrz
--install-dir)rO�
executable�strrr�
subprocess�
check_call)�src_dirr�develop_cmds   r�install_develop�TestNamespaces.install_developtsg��
�N�N������K�
���^�^�
�$�c�&�k�]�3��%�%�k�2�4��
�3�3���
�s#�A>�A-�A>�-
A;	�7A>�>
B�APPVEYORz-https://github.com/pypa/setuptools/issues/851r=�PyPyz.https://github.com/pypa/setuptools/issues/1202c	��[R"US5n[R"US5nUS-n[RSSS[	U5S[	U5/n[
R"U5 URX45 [R"U5 [RSS	/n[[	U5/5 [
R"U5 S
S
S
5 [RSS/n[[	U5/5 [
R"U5 S
S
S
5 g
!,(df   NV=f!,(df   g
=f)z�
Installing two packages sharing the same namespace, one installed
naturally using pip or `--single-version-externally-managed`
and the other installed using `develop` should leave the namespace
in tact and both packages reachable by import.
z	myns.pkgAz	myns.pkgBr,z-m�pip�installz-tz-cz"import myns.pkgA; import myns.pkgBNzimport pkg_resources)
r�build_namespace_packagerOrmrnrorprs�
make_site_dirr)r6r�pkg_A�pkg_Br�install_cmd�
try_import�pkg_resources_imps        r�!test_namespace_package_importable�0TestNamespaces.test_namespace_package_importable�s���2�2�6�;�G���2�2�6�;�G���*�$��
�N�N������J����K�
��	���k�*����U�+�� � ��(��N�N��0�
�
�
!�#�f�+��
/��!�!�*�-�0�

�N�N��"�
��
!�#�f�+��
/��!�!�"3�4�0�
/�0�
/��0�
/�s�D)�	D:�)
D7�:
ErIN)rJrKrLrM�staticmethodrsr/rS�skipif�bool�os�environ�get�platform�python_implementationr�rUrIr<rrjrjss����
3��
3��[�[����R�Z�Z�^�^�J�
'�(�>����[�[����&�&�(�F�2�?���&5�	�	�&5r<rj)rhr�rAr�rorOr/�setuptools._pathr�setuptools.command.developr�setuptools.distr�rrrr�fixturerr#r%rWrjrIr<r�<module>r�s����	����
�
�0�.�(�"�����������������)/�)/�XJ�J�"<5�<5r<

Youez - 2016 - github.com/yon3zu
LinuXploit