ó
    Â›‘h£  ã                   ó@   • 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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.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	            ÚdC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-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                  " US5      nUS-  nUR                  5         [        R                  SSSS[        U5      [        U5      /n[        [        U5      /5         [        R                  " U5        SSS5        [         R                  " U5        [        R                  SS	/n[        [        U5      /5         [        R                  " U5        SSS5        g! , (       d  f       Nl= f! , (       d  f       g= f)
zK
Ensure that a namespace package doesn't break on import
of pkg_resources.
r
   Úpackagesr   Úpipr   r   Nr   zimport pkg_resources)
r   r   Úmkdirr   r   r   r   r   r   r   )r   r   ÚpkgÚtargetr    r!   s         r"   Útest_pkg_resources_importÚ(TestNamespaces.test_pkg_resources_import4   sÎ   € ô
 ×0Ò0°¸ÓEˆØ˜*Ñ$ˆØ�‰Œä�N‰NØØØØÜ�‹KÜ�‹Hð
ˆô !¤# f£+ Õ/Ü×!Ò! +Ô.÷ 0ä× Ò  Ô(ä�N‰NØØ"ð
ˆ
ô
 !¤# f£+ Õ/Ü×!Ò! *Ô-÷ 0Ð/÷ 0Õ/ú÷ 0Õ/ús   Á+C(ÃC9Ã(
C6Ã9
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
   r&   r   r   r   r   r   z&import pkg_resources; import myns.pkgA©ÚcwdN©	r   r   r   r   r   r   r   r   r   )r   r   r   r*   r    Úpkg_resources_imps         r"   Ú(test_namespace_package_installed_and_cwdÚ7TestNamespaces.test_namespace_package_installed_and_cwdP   s°   € ô
 ×2Ò2°6¸;ÓGˆØ˜*Ñ$ˆô �N‰NØØØÜ�‹JØÜ�‹Kð
ˆô 	×Ò˜kÔ*Ü× Ò  Ô(ô �N‰NØØ4ð
Ðô
 !¤# f£+ Õ/Ü×!Ò!Ð"3¼¸U»ÒD÷ 0×/Ö/ús   ÂCÃ
Cc           	      óÔ  • [         R                  " US5      n[         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 one namespace package and also have another in the same
namespace in the current working directory, both of them must be
importable.
r
   r   r&   r   r   r   r   r   z8import pkg_resources; import myns.pkgA; import myns.pkgBr.   Nr0   )r   r   r   r   r*   r    r1   s          r"   Ú5test_packages_in_the_same_namespace_installed_and_cwdÚDTestNamespaces.test_packages_in_the_same_namespace_installed_and_cwdm   sÂ   € ô ×2Ò2°6¸;ÓGˆÜ×2Ò2°6¸;ÓGˆØ˜*Ñ$ˆô �N‰NØØØÜ�‹JØÜ�‹Kð
ˆô 	×Ò˜kÔ*Ü× Ò  Ô(ô �N‰NØØFð
Ðô
 !¤# f£+ Õ/Ü×!Ò!Ð"3¼¸U»ÒD÷ 0×/Ö/ús   Â1CÃ
C'© N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r#   r+   r2   r5   Ú__static_attributes__r7   ó    r"   r   r   	   s   † ò(.òT.ò8Eõ:Er=   r   )r   r   Úsetuptools._pathr   Ú r   r   r7   r=   r"   Ú<module>r@      s   ðÛ Û 
å 0å ÷AEò AEr=   