
    n&ph                          S r SSKrSSKrSSKrSSKrSSKrSSKJr  SSKJ	r	J
r
  SrSr\R                  S 5       r\R                  S	 5       r " S
 S5      rg)zdevelop tests    N)paths_on_pythonpath   )contexts
namespaceszHfrom setuptools import setup

setup(name='foo',
    packages=['foo'],
)
zprint "foo"
c              #     #    [         R                  " 5        n[         R                  " 5        nU R                  SU5        U R                  SU5        S v   S S S 5        S S S 5        g ! , (       d  f       N= f! , (       d  f       g = f7f)Nzsite.USER_BASEzsite.USER_SITE)r   tempdirsetattr)monkeypatch	user_base	user_sites      P/var/www/html/venv/lib/python3.13/site-packages/setuptools/tests/test_develop.py	temp_userr      sb     				y9 0)< 0)<   
	 
	s3   B
A9)A(A9	B
(
A6	2A99
BB
c              #     #    U nUR                  S5      nUS-  nUR                  5       (       a  [        [        U5      5      eUR	                  S5       nUR                  [        5        S S S 5        US-  nUR	                  S5       nUR                  [        5        S S S 5        UR                  5          Uv   S S S 5        g ! , (       d  f       N`= f! , (       d  f       N== f! , (       d  f       g = f7f)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   AC8C+C8	CC87C'<	C8
CC8
C$ C8'
C51C8c                   2   \ rS rSr\S 5       r\R                  R                  \	" \
R                  R                  S5      5      SS9\R                  R                  \R                  " 5       S:H  SS9\R                  R                  S 5       5       5       rS	rg
)TestNamespaces3   c                    [         R                  SSS[        U5      /nU R                  5          [	        [        U5      /5         [
        R                  " U5        S S S 5        S S S 5        g ! , (       d  f       N= f! , (       d  f       g = f)Nr   developz--install-dir)sys
executablestrr   r   
subprocess
check_call)src_dirr   develop_cmds      r   install_developTestNamespaces.install_develop4   sg     NNK
 ^^$c&k]3%%k2 4 33 s#   A>A-A>-
A;	7A>>
BAPPVEYORz-https://github.com/pypa/setuptools/issues/851)reasonPyPyz.https://github.com/pypa/setuptools/issues/1202c           	         [         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        U R                  X45        [         R                  " U5        [        R                  SS	/n[        [	        U5      /5         [
        R                  " U5        S
S
S
5        [        R                  SS/n[        [	        U5      /5         [
        R                  " U5        S
S
S
5        g
! , (       d  f       NV= f! , (       d  f       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.pkgBpackagesz-mpipinstallz-tz-cz"import myns.pkgA; import myns.pkgBNzimport pkg_resources)
r   build_namespace_packager'   r(   r)   r*   r+   r.   make_site_dirr   )selfr   pkg_Apkg_Br   install_cmd
try_importpkg_resources_imps           r   !test_namespace_package_importable0TestNamespaces.test_namespace_package_importableA   s     226;G226;G*$ NNJK
 	k*U+  (NN0


 !#f+/!!*- 0
 NN"

 !#f+/!!"34 0/ 0/ 0/s   D)	D:)
D7:
E N)__name__
__module____qualname____firstlineno__staticmethodr.   pytestmarkskipifboolosenvirongetplatformpython_implementationuses_networkr?   __static_attributes__rA       r   r#   r#   3   s    
3 
3 [[RZZ^^J'(>   [[&&(F2?   [[&5 		&5rR   r#   )__doc__rK   rN   r*   r'   rG   setuptools._pathr    r   r   r   r   fixturer   r!   r#   rA   rR   r   <module>rW      se     	   
  0 "    =5 =5rR   