
    siz                    t    S r SSKJr  SSKrSSKJr  SSKJr  \(       a
  SSKJrJ	r	J
r
  S
S jr\SS	 j5       rg)zcCLI implementation for `conda update`.

Updates the specified packages in an existing environment.
    )annotationsN)TYPE_CHECKING   )notices)ArgumentParser	Namespace_SubParsersActionc                P   SSK Jn  SSKJn  SSKJnJnJnJnJ	n  Sn	U" SU	 S35      n
U" S	5      nU R                  "  SU	U
US
.UD6nU" U5        U" U5      u  pnU" U5        U" U5        UR                  SSUSS9  U" U5        UR                  SSUSS9  UR                  SS9  U$ )Nr   dals)NULL   ) add_parser_create_install_updateadd_parser_frozen_envadd_parser_pruneadd_parser_solveradd_parser_update_modifiersz7Update conda packages to the latest compatible version.z	
        ay  

        This command accepts a list of package names and updates them to the latest
        versions that are compatible with all other packages in the environment.

        Conda attempts to install the newest versions of the requested packages. To
        accomplish this, it may update some packages that are already installed, or
        install additional packages. To prevent existing packages from updating,
        use the --no-update-deps option. This may force conda to install older
        versions of the requested packages, and it does not prevent additional
        dependency packages from being installed.
        zE
        Examples:

            conda update -n myenv scipy

        )helpdescriptionepilogz--force-reinstall
store_truezEnsure that any user-requested package for the current operation is uninstalled and reinstalled, even if that package already exists in the environment.)actiondefaultr   z	--clobberzZAllow clobbering of overlapping file paths within packages, and suppress related warnings.zconda.cli.main_update.execute)func)update)
auxlib.ishr   common.constantsr   helpersr   r   r   r   r   
add_parseradd_argumentset_defaults)sub_parserskwargsr   r   r   r   r   r   r   summaryr   r   psolver_mode_optionspackage_install_options_s                   5lib/python3.13/site-packages/conda/cli/main_update.pyconfigure_parserr*      s   !'  HG			 		K 	F 				
 	A !6V	73! ())*$$O	 %    34(()	 )  NN7N8H    c                h   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  SSK
J
n  UR                  (       a  [        S	[        R                  S
9  U R                  (       d9  U R                   (       d(  UR"                  UR$                  :X  d  U" U" S5      5      eU" U R                  5        U" XS5        g)Nr   r   )UpdateModifier)context)CondaValueErrorr   )&validate_environment_files_consistency)installz

WARNING: The --force flag will be removed in a future conda release.
         See 'conda update --help' for details about the --force-reinstall
         and --clobber flags.

)filezr
                no package names supplied
                # Example: conda update -n myenv scipy
                r   r   )r   r   base.constantsr-   base.contextr.   
exceptionsr/   commonr0   r1   forceprintsysstderrr2   packagesupdate_modifier
UPDATE_ALL)argsparserr   r-   r.   r/   r0   r1   s           r)   executer@   Z   s    !/&,> }}
 	
 			==""n&?&??
 	
 +4995D(#r+   )r"   r	   returnr   )r>   r   r?   r   rA   int)__doc__
__future__r   r9   typingr   r   argparser   r   r	   r*   r@    r+   r)   <module>rH      s<   
 # 
   EEDN 	& 	&r+   