
    vKgM                        S SK r S SKrS SKrS SKrS SKJr  S SKrS SKrSSKJ	r	J
r
  \R                  S 5       r\R                  S 5       r\R                  " SSS	9S
 5       r\R                  S 5       rS r\R                  " SS9S 5       r\R                  " SS9S 5       r\R                  S 5       r\R                  S 5       r\R                  S 5       rg)    N)Path   )contextsenvironmentc              #   v  #    [         R                  " 5        nU R                  SU5        [         R                  " 5        nU R                  SU5        [         R                  " 5          Sv   SSS5        SSS5        SSS5        g! , (       d  f       N= f! , (       d  f       N(= f! , (       d  f       g= f7f)zU
Override site.USER_BASE and site.USER_SITE with temporary directories in
a context.
zsite.USER_BASEzsite.USER_SITEN)r   tempdirsetattrsave_user_site_setting)monkeypatch	user_base	user_sites      Y/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/setuptools/tests/fixtures.pyuser_overrider      s      
			y,i89 0)<002 3   
	 32   
	sL   B9(B( (B(B-B5B(=	B9
BB
B%	!B((
B62B9c              #   h   #    U R                  5        nUv   S S S 5        g ! , (       d  f       g = f7f)N)as_cwd)tmpdirorigs     r   
tmpdir_cwdr      s     	D
 
s   2!	2
/2Tsession)autousescopec                     U R                   R                  R                  S5      (       d  g[        R                  " [
        5         [        R                  R                  S5        SSS5        g! , (       d  f       g= f)z
Workaround pytest-dev/pytest-xdist#376

``pytest-xdist`` tends to inject '' into ``sys.path``,
which may break certain isolation expectations.
Remove the entry so the import
machinery behaves the same irrespective of xdist.
xdistN )	configpluginmanager
has_plugin
contextlibsuppress
ValueErrorsyspathremove)requests    r   workaround_xdist_376r%   !   sL     >>''227;;			Z	( 
)	(	(s    A//
A=c                     / SQn [         R                  " U[        U 5      S9  U S-  $ ! [         a    [        R
                  " S5         U S-  $ f = f)z4
Clone the 'sampleproject' and return a path to it.
)gitclonez%https://github.com/pypa/sampleproject)cwdzUnable to clone sampleprojectsampleproject)
subprocess
check_callstr	Exceptionpytestskip)tmp_pathcmds     r   sample_projectr3   2   sY    
 DC5cs8}5 o%%  534o%%5s   )  AAc                    [         R                  " XS5       n[        UR                  S5      S 5      n[        UR                  S5      S 5      nU(       a  U(       a  X44sS S S 5        $ [	        UR
                  R                  S5      R                  5       (       a   e[        R                  " [        R                  SSS[        U5      [        UR
                  R                  5      /5        [	        UR
                  R                  S5      R                  5       (       a   e[        UR                  S5      5      [        UR                  S5      5      4sS S S 5        $ ! , (       d  f       g = f)N
dist_buildz*.tar.gzz*.whlzbuild/lib/buildz-mbuildz--outdir)r   session_locked_tmp_dirnextglobr   r   rootdirexistsr+   check_outputr!   
executabler-   )tmp_path_factoryr$   tmpsdistwheels        r   _build_distributionsrB   G   s   		(	(<
	SXXj)40SXXg&-U>
 
 ..0ABIIKKKKNNH&&'!
 	 ..0ABIIKKKKCHHZ()40A+BB/
 
 
s   AE )C-E  
E.)r   c                     [         R                  " S5      nU(       a=  [         R                  R                  U5      (       a  [	        U5      R                  5       $ [        X5      u  p4U$ )NPRE_BUILT_SETUPTOOLS_SDISTosgetenvr"   r;   r   resolverB   )r>   r$   prebuiltr@   _s        r   setuptools_sdistrK   b   sK    yy56HBGGNN8,,H~%%''#$4>HEL    c                     [         R                  " S5      nU(       a=  [         R                  R                  U5      (       a  [	        U5      R                  5       $ [        X5      u  p4U$ )NPRE_BUILT_SETUPTOOLS_WHEELrE   )r>   r$   rI   rJ   rA   s        r   setuptools_wheelrO   l   sK    yy56HBGGNN8,,H~%%''#$4>HALrL   c                    [         R                  " 5       n[        R                  " U S-  5      Ul        SS/Ul        [        U5      Ul        [        R                   " SS9   UR                  5       sSSS5        $ ! , (       d  f       g= f)z?Virtual env with the version of setuptools under test installedvenv--no-setuptoolsz--wheel=bundleN)
PYTHONPATH)
r   
VirtualEnvr"   r   rootcreate_optsr-   reqr   create)r1   rO   envs      r   rQ   rQ   v   sf     
 
 
"CyyF*+CH(*:;CO"#CG 
			.zz| 
/	.	.s   !A;;
B	c                     [         R                  " 5       n[        R                  " U S-  5      Ul        SS/Ul        UR                  5         U$ )z7Virtual env without any version of setuptools installedvenv_without_setuptoolsrR   
--no-wheelr   rT   r"   r   rU   rV   
ensure_envr1   rY   s     r   r[   r[      sC     
 
 
"Cyy$==>CH(,7CONNJrL   c                     [         R                  " 5       n[        R                  " U S-  5      Ul        / SQUl        UR                  5         U$ )z1Virtual env without any common packages installed	bare_venv)rR   z--no-pipr\   z	--no-seedr]   r_   s     r   ra   ra      s=     
 
 
"CyyK/0CHPCONNJrL   )r   rF   r+   r!   pathlibr   r"   r/   r   r   r   fixturer   r   r%   r3   rB   rK   rO   rQ   r[   ra    rL   r   <module>re      s    	  
    # 
 
  
 I. /  	& 	&(C6 i  ! i  !  *    rL   