
    Ji	                     @    S SK r S SKrS SKJr  SSKJr   " S S5      rg)    N)paths_on_pythonpath   )
namespacesc                        \ rS rSrS rS rSrg)TestNamespaces	   c           	      Z   [         R                  " US5      n[         R                  " US5      nUS-  nUS-  nXE4n[        R                  SSS[	        U5      S[	        U5      /n[
        R                  " U5        [         R                  " U5        [        R                  SSS[	        U5      S[	        U5      /n[
        R                  " U5        [        R                  S	S
/n[        [        [        U5      5         [
        R                  " U5        SSS5        g! , (       d  f       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.pkgAz	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/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/setuptools/tests/test_namespaces.pytest_mixed_site_and_non_site+TestNamespaces.test_mixed_site_and_non_site
   s    226;G226;G00. NNJ
 	k*  /NNJ
 	k*NN0


 !S'!23!!*- 433s   <D
D*c           	         [         R                  " US5      nUS-  n[        R                  SSS[	        U5      S[	        U5      /n[
        R                  " U5        [         R                  " U5        [        R                  SS/n[        [	        U5      /5         [
        R                  " U[	        U5      S	9  S
S
S
5        g
! , (       d  f       g
= f)z
Installing a namespace packages but also having it in the current
working directory, only one version should take precedence.
r
   packagesr   r   r   r   r   zimport myns.pkgA)cwdN)	r   r   r   r   r   r   r   r   r   )r   r   r   targetr   pkg_resources_imps         r!   (test_namespace_package_installed_and_cwd7TestNamespaces.test_namespace_package_installed_and_cwd4   s    
 226;G*$ NNJK
 	k*  ( NN

 !#f+/!!"3UD 0//s   C
C N)__name__
__module____qualname____firstlineno__r"   r)   __static_attributes__r+       r!   r   r   	   s    (.TEr1   r   )r   r   setuptools._pathr    r   r   r+   r1   r!   <module>r4      s     
 0 FE FEr1   