
    $TXg                       d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl	m
Z
 ddlmZ ddlmZ d	d
lmZmZmZmZmZmZmZmZmZmZmZ  ee      Z eddd      d        Zd Z ej>                  ddded       [ ej>                  ddded       [ ej>                  ddded       [ ej>                  ddded       [ ej>                  ddded       [ ej>                  ddded       [ ej>                  ddded       [ ej>                  ddd ed!       [ ej>                  ddd"ed#       [ ej>                  ddd$ed%       [ ej>                  ddd&ed'       [y)(    )annotationsN)	getLogger)join)Path   )on_win)
deprecated   )CondaCLIFixturePathFactoryFixtureTmpChannelFixtureTmpEnvFixture	conda_clicontext_aware_monkeypatchpath_factorytmp_channeltmp_envtmp_envs_dirtmp_pkgs_dirz24.9z25.3z=It don't matter which environment the test suite is run from.)addendumc                 |   dt         j                  v rt        t         j                  d         j                         t        t        j
                        j                         k7  rWt        j                  dt         j                  d    dt        j
                          t        rt	        j                  d       y y y y )NCONDA_PYTHON_EXEzERROR :: Running tests from a non-base Python interpreter.  Tests requires installing menuinst and that causes stderr  output when activated.
- CONDA_PYTHON_EXE=z
- sys.executable=)
osenvironr   resolvesys
executablewarningswarnr   exit     6lib/python3.12/site-packages/conda/testing/__init__.py*conda_ensure_sys_python_is_base_env_pythonr%   +   s     RZZ'./088:CNN#++-. MM& ')jj1C&D%E F$$'NN#3	5  . (r#   c                    dt         j                  v rsddlm} m} t         j
                  dk(  r| }n|} |       }d }|j                  t         j                  d         }g }d}|D ]  }|j                  d      rq|rd}t        t        j                  d      |k7  r=t        t        j                  d      }t        d| d	|        |j                  |       s|j                  |       |j                  |        t         j                  j                  |      t         j                  d
<    |       }|j                  t         j                  d         }t         j                  j                  |      t         j                  d
<   y y )NCONDA_PREFIXr   )CmdExeActivatorPosixActivatorntFcondabinTzIncorrect condabin, swapping z to PATH)r   r   activater(   r)   name_remove_prefix_from_pathendswithr   r   prefixprintappendpathsep_add_prefix_to_path)	r(   r)   activator_cls	activatorpnew_pfound_condabinpecondabin_paths	            r$   conda_move_to_front_of_PATHr=   J   s4   #>77d?+M*M!O	  ..rzz./IJ B{{:&%%)NCJJ
3r9(,SZZ(D =bTm_UV]3R(R    ZZ__U3

6!O	))"**^*DEZZ__Q/

6W $r#   z25.9r   z5Use `conda.testing.fixtures.CondaCLIFixture` instead.r   z/Use `conda.testing.fixtures.conda_cli` instead.r   z8Use `conda.testing.fixtures.PathFactoryFixture` instead.r   z2Use `conda.testing.fixtures.path_factory` instead.r   z3Use `conda.testing.fixtures.TmpEnvFixture` instead.r   z-Use `conda.testing.fixtures.tmp_env` instead.r   z7Use `conda.testing.fixtures.TmpChannelFixture` instead.r   z1Use `conda.testing.fixtures.tmp_channel` instead.r   z?Use `conda.testing.fixtures.context_aware_monkeypatch` instead.r   z2Use `conda.testing.fixtures.tmp_pkgs_dir` instead.r   z2Use `conda.testing.fixtures.tmp_envs_dir` instead.) 
__future__r   r   r   r   loggingr   os.pathr   pathlibr   common.compatr   deprecationsr	   fixturesr   r   r   r   r   r   r   r   r   r   r   __name__logr%   r=   constantr"   r#   r$   <module>rH      s   # 	 
     " %     

L

4,0^ 
  

D  
  

>  
  

G  
  

A  
  

B  
  

<  
  

F  
  

@  
  

N  
  

A  
  

A r#   