+
    :1j,                         R t ^ RIt^ RIt^ RIt^ RIHt ^RIHt ^RIH	t	 ^RI
Ht ^RIHt ^RIHt ]! ]4      tR R	 ltR
 tR tR# )zy
Functions related to core conda functionality that relates to pip

NOTE: This modules used to in conda, as conda/pip.py
N)	getLogger)context)on_win)CondaEnvException)CONDA_SESSION_SCHEMES)any_subprocessc                L    V ^8  d   QhR\         R,          R\         R,          /# )   	file_pathNreturn)str)formats   "2lib/python3.14/site-packages/conda/env/pip_util.py__annotate__r      s"      sTz cDj     c                j   V '       g   R# V P                  R^4      ^ ,          pV\        9   d   R#  \        P                  P	                  \        P                  P                  V 4      4      p\        P                  ! V\        P                  4      '       d   V# R#   \        \        3 d     R# i ; i)z
Derive the working directory for pip install when resolving relative paths
in requirements (e.g. -e ./local_pkg).

Returns None for URLs or when no usable path is provided.
Nz://)
splitr   ospathdirnameabspathaccessW_OKAttributeError	TypeError)r
   
url_schemeworkdirs   &  r   get_pip_workdirr      s     *1-J**''//"''//)"<=))GRWW55w?4?I& s   A&B B B B21B2c                   \         '       d"   \        P                  P                  VR4      pM!\        P                  P                  VRR4      pVRR.V ,           p\	        WAVR7      w  rVp\
        P                  '       gC   \
        P                  '       g-   \        R4       \        V4       \        R4       \        V4       V^ 8w  dB   \        R	\        P                  R
7       \        V\        P                  R
7       \        R4      hWV3# )zRun pip in a subprocessz
python.exebinpythonz-mpip)cwdz"Ran pip subprocess with arguments:zPip subprocess output:zPip subprocess error:)filez
Pip failed)r   r   r   joinr   r   quietjsonprintsysstderrr   )argsprefixr"   python_pathrun_argsstdoutr)   rcs   &&&     r   pip_subprocessr0   *   s    vggll6<8ggll65(;T5)D0H'cBFB===23h&'f	Qw%CJJ7f3::&-->r   c                    \         P                  ! RV 4      pV'       d.   VP                  ^4      P                  4       P	                  4       # R# )zEReturn the list of pip packages installed based on the command outputzSuccessfully installed\ (.*)N)researchgroupstripr   )r.   ms   & r   get_pip_installed_packagesr7   ?   s9    
		16:Awwqz!''))r   )__doc__r   r2   r(   loggingr   base.contextr   common.compatr   
exceptionsr   gateways.connection.sessionr   gateways.subprocessr   __name__logr   r0   r7    r   r   <module>rB      s@    
 	 
  " " * ? 0&*r   