
    i	                     H    d dl Z d dlZd dlmZ ddlmZ  G d d          ZdS )    N)paths_on_pythonpath   )
namespacesc                       e Zd Zd Zd ZdS )TestNamespacesc           	      ^   t          j        |d          }t          j        |d          }|dz  }|dz  }||f}t          j        dddt	          |          dt	          |          g}t          j        |           t          j        |           t          j        dddt	          |          dt	          |          g}t          j        |           t          j        d	d
g}t          t          t          |                    5  t          j        |           ddd           dS # 1 swxY w Y   dS )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	            j   C:\Users\student\Desktop\ПрогаАДМБД3\myenv\Lib\site-packages\setuptools/tests/test_namespaces.pytest_mixed_site_and_non_sitez+TestNamespaces.test_mixed_site_and_non_site
   sx    26;GG26;GG00. NJJ
 	k*** ///NJJ
 	k***N0


 !S'!2!233 	. 	.!*---	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	. 	.s    D""D&)D&c           	         t          j        |d          }|dz  }t          j        dddt	          |          dt	          |          g}t          j        |           t          j        |           t          j        ddg}t          t	          |          g          5  t          j        |t	          |          	           d
d
d
           d
S # 1 swxY w Y   d
S )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_cwdz7TestNamespaces.test_namespace_package_installed_and_cwd4   s2   
 26;GG*$ NJJKK
 	k*** ((( N

 !#f++// 	E 	E!"3UDDDD	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	E 	Es   $CCCN)__name__
__module____qualname__r!   r'        r    r   r   	   s8        (. (. (.TE E E E Er,   r   )r   r   setuptools._pathr    r   r   r+   r,   r    <module>r/      s        



 0 0 0 0 0 0      FE FE FE FE FE FE FE FE FE FEr,   