U
    b                     @   s   d dl mZmZmZ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 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 eeZedd ZdS )    )absolute_importdivisionprint_functionunicode_literals)	getLogger)isdir   )
confirm_yn)install   )context)paths_equal)CondaValueError)rm_rf)is_conda_environment)noticesc                 C   s   t tjr\ttjtjr tdtjr.tdtdtj ddd t	dtj t
tj nttjrztdtj ddd t| |d	 d S )
Nz/The target prefix is the base prefix. Aborting.z<Cannot `create --dry-run` with an existing conda environmentzOWARNING: A conda environment already exists at '%s'
Remove existing environmentZnoF)defaultdry_runz Removing existing environment %szWARNING: A directory already exists at the target location '%s'
but it is not a conda environment.
Continue creating environmentZcreate)r   r   Ztarget_prefixr   Zroot_prefixr   r   r	   loginfor   r   r
   )argsparser r   4lib/python3.8/site-packages/conda/cli/main_create.pyexecute   s*    

r   N)Z
__future__r   r   r   r   Zloggingr   os.pathr   commonr	   r
   Zbase.contextr   Zcommon.pathr   
exceptionsr   Zgateways.disk.deleter   Zgateways.disk.testr   r   __name__r   r   r   r   r   r   <module>   s   