
    <Bhe                     ~    S r SSKrSSKJrJrJrJr  SSKJr  SSK	J
r
  SSKJr  S\S	\4S
 jr\S\S\S	\4S j5       rg)zhCLI implementation for `conda-env update`.

Updates the conda environments with the specified packages.
    N)ArgumentParser	Namespace_StoreAction_SubParsersAction   )
CondaError)
deprecated)noticessub_parsersreturnc                 p   SSK Jn  SSKJnJnJnJn  SnUnU" S5      n	U R                  "  SUUU	S.UD6n
U" U
5        U" U
5        U
R                  SS	S
SSS9  U
R                  SSSSS9  U
R                  SS[        R                  " SS[        SS9S SS9  U" U
5        U" U
5        U
R                  SS9  U
$ )Nr   dals   )add_parser_frozen_envadd_parser_jsonadd_parser_prefixadd_parser_solverz9Update the current environment based on environment file.a  
        Examples::

            conda env update
            conda env update -n=foo
            conda env update -f=/path/to/environment.yml
            conda env update --name=foo --file=environment.yml
            conda env update vader/deathstar

        )helpdescriptionepilogz-fz--filestorez1environment definition (default: environment.yml)zenvironment.yml)actionr   defaultz--prune
store_trueFz8remove installed packages not defined in environment.yml)r   r   r   remote_definitionz0remote environment definition / IPython notebookz24.7z25.9z*Use `conda env create --file=URL` instead.)addendum?)r   r   r   nargsz!conda.cli.main_env_update.execute)func)update)
auxlib.ishr   helpersr   r   r   r   
add_parseradd_argumentr	   r   r   set_defaults)r   kwargsr   r   r   r   r   summaryr   r   ps              9lib/python3.13/site-packages/conda/cli/main_env_update.pyconfigure_parserr+      s
   !  JGK		F 				
 	A !aNN@!   NNG	   NN?  A	
    AaNN;N<H    argsparserc                    SSK Jn  SSKJnJn  SSKJn  SSKJn  SSK	J
n  SSKJn  SSKJn	Jn
  S	S
KJn  U" U R$                  5        UR'                  U R$                  S9nUR(                  nU R*                  (       dj  U R,                  (       dY  UR*                  (       d7  [.        R0                  R3                  SS5      nU(       d  U" S5      nU	" U5      eUR*                  U l        U" X05      nU" U5      nUR5                  5       (       a1  UR7                  5         UR8                  (       a  UR;                  5         0 nUR<                   H  n U" U5      UU'   M     S S S.nUR<                  RA                  5        H!  u  nnUU   nURC                  UUX5      UU'   M#     URD                  (       a  URG                  URD                  5        URI                  5         U" U UU5        g! U
 a    [?        U" SS SS S35      5      ef = f)Nr   r   )contextdetermine_target_prefix)
PrefixData)specs)print_result)get_installer)CondaEnvExceptionInvalidInstallerr   )validate_file_exists)filenameCONDA_DEFAULT_ENVFav  
                    Unable to determine environment

                    Please re-run this command with one of the following options:

                    * Provide an environment name via --name or -n
                    * Provide an environment path via --prefix or -p
                    * Re-run this command inside an activated conda environment.
                    z3
                    Unable to install package for r   z.

                    Please double check and ensure you dependencies file has
                    the correct spelling.  You might also try installing the
                    conda-env-z\ package to see if provides the required
                    installer.
                    )condapip)%r"   r   base.contextr0   r1   core.prefix_datar2   envr3   env.envr4   env.installers.baser5   
exceptionsr6   r7   commonr8   filedetectenvironmentnameprefixosenvirongetis_environmentassert_writableprotect_frozen_envsassert_not_frozendependenciesr   itemsinstall	variablesset_environment_env_varsset_nonadmin)r-   r.   r   r0   r1   r2   install_specsr4   r5   r6   r7   r8   specr?   rG   msgrH   prefix_data
installersinstaller_typeresultr3   	installers                          r*   executer^   V   s   !?-,&3@, # 3D


CIIxx ::>>"5u=D
 (,,
 HH	$W3FV$K!!####%&&))+ J**	)6~)FJ~& +& D)F!$!1!1!7!7!9~.	!*!2!265$!L~ ": }},,S]];vv&7   	334# 6  !c "	 	s   G))H)__doc__rI   argparser   r   r   r    r   deprecationsr	   r
   r+   intr^    r,   r*   <module>re      sg   
 
   % >"3 >. >B 	[) [^ [ [ 	[r,   