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

�h���@�SSKrSSKrSSKJr SSKJr "SS5rg)�N)�paths_on_pythonpath�)�
namespacesc�,�\rSrSrSrSrSrSrSrg)�TestNamespaces�	c	�Z�[R"US5n[R"US5nUS-nUS-nXE4n[RSSS[	U5S[	U5/n[
R"U5 [R"U5 [RSSS[	U5S[	U5/n[
R"U5 [RS	S
/n[[[U55 [
R"U5 SSS5 g!,(df   g=f)z�
Installing two packages sharing the same namespace, one installed
to a site dir and the other installed just to a path on PYTHONPATH
should leave the namespace in tact and both packages reachable by
import.
�	myns.pkgA�	myns.pkgBz
site-packagesz
path-packages�-m�pip.__main__�install�-t�-cz"import myns.pkgA; import myns.pkgBN)
r�build_namespace_package�sys�
executable�str�
subprocess�
check_call�
make_site_dirr�map)	�self�tmpdir�pkg_A�pkg_B�
site_packages�
path_packages�targets�install_cmd�
try_imports	         �B/usr/lib/python3/dist-packages/setuptools/tests/test_namespaces.py�test_mixed_site_and_non_site�+TestNamespaces.test_mixed_site_and_non_site
s���2�2�6�;�G���2�2�6�;�G����0�
���0�
��.��
�N�N������J���
��
��	���k�*�� � ��/��N�N������J���
��
��	���k�*��N�N��0�
�
�
!��S�'�!2�
3��!�!�*�-�4�
3�
3�s�<D�
D*c	��[R"US5nUS-nUR5 [RSSSS[U5[U5/n[
[U5/5 [R"U5 SSS5 [R"U5 [RSS	/n[
[U5/5 [R"U5 SSS5 g!,(df   Nl=f!,(df   g=f)
zK
Ensure that a namespace package doesn't break on import
of pkg_resources.
r
�packagesr�piprrNrzimport pkg_resources)
rr�mkdirrrrrrrr)rr�pkg�targetr r!s      r"�test_pkg_resources_import�(TestNamespaces.test_pkg_resources_import4s���
�0�0���E���*�$�������N�N�������K���H�
��!�#�f�+��
/��!�!�+�.�0�� � ��(��N�N��"�
�
�
!�#�f�+��
/��!�!�*�-�0�
/�0�
/��0�
/�s�+C(�C9�(
C6�9
Dc	��[R"US5nUS-n[RSSS[	U5S[	U5/n[
R"U5 [R"U5 [RSS/n[[	U5/5 [
R"U[	U5S	9 S
S
S
5 g
!,(df   g
=f)z
Installing a namespace packages but also having it in the current
working directory, only one version should take precedence.
r
r&rr
rrrz&import pkg_resources; import myns.pkgA��cwdN�	rrrrrrrrr)rrrr*r �pkg_resources_imps      r"�(test_namespace_package_installed_and_cwd�7TestNamespaces.test_namespace_package_installed_and_cwdPs���
�2�2�6�;�G���*�$��
�N�N������J����K�
��	���k�*�� � ��(�
�N�N��4�
��
!�#�f�+��
/��!�!�"3��U��D�0�
/�
/�s�C�
Cc	���[R"US5n[R"US5nUS-n[RSSS[	U5S[	U5/n[
R"U5 [R"U5 [RSS	/n[[	U5/5 [
R"U[	U5S
9 SSS5 g!,(df   g=f)z�
Installing one namespace package and also have another in the same
namespace in the current working directory, both of them must be
importable.
r
rr&rr
rrrz8import pkg_resources; import myns.pkgA; import myns.pkgBr.Nr0)rrrrr*r r1s       r"�5test_packages_in_the_same_namespace_installed_and_cwd�DTestNamespaces.test_packages_in_the_same_namespace_installed_and_cwdms����2�2�6�;�G���2�2�6�;�G���*�$��
�N�N������J����K�
��	���k�*�� � ��(�
�N�N��F�
��
!�#�f�+��
/��!�!�"3��U��D�0�
/�
/�s�1C�
C'�N)	�__name__�
__module__�__qualname__�__firstlineno__r#r+r2r5�__static_attributes__r7�r"rr	s��(.�T.�8E�:Er=r)rr�setuptools._pathr�rrr7r=r"�<module>r@s���
�0��AE�AEr=

Youez - 2016 - github.com/yon3zu
LinuXploit