
    5hT
                     ^    d 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	  G d d	e          Z
dS )
zBdistutils.command.clean

Implements the Distutils 'clean' command.    N)log)ClassVar   )Command)remove_treec                   V    e Zd ZU dZg dZdgZeee                  e	d<   d Z
d Zd ZdS )	cleanz-clean up temporary files from 'build' command))zbuild-base=bz2base build directory [default: 'build.build-base'])z
build-lib=Nz<build directory for all modules [default: 'build.build-lib'])zbuild-temp=tz7temporary build directory [default: 'build.build-temp'])zbuild-scripts=Nz<build directory for scripts [default: 'build.build-scripts'])zbdist-base=Nz+temporary directory for built distributions)allaz7remove all build output, not just temporary by-productsr   boolean_optionsc                 Z    d | _         d | _        d | _        d | _        d | _        d | _        d S )N)
build_base	build_lib
build_tempbuild_scripts
bdist_baser   selfs    Clib/python3.11/site-packages/setuptools/_distutils/command/clean.pyinitialize_optionszclean.initialize_options$   s1    !    c                 d    |                      ddddd           |                      dd           d S )Nbuild)r   r   )r   r   )r   r   )r   r   bdist)r   r   )set_undefined_optionsr   s    r   finalize_optionszclean.finalize_options,   sH    ""(&.(	
 	
 	
 	""7,HIIIIIr   c                 (   t           j                            | j                  rt	          | j        | j                   nt          j        d| j                   | j        rb| j	        | j
        | j        fD ]M}t           j                            |          rt	          || j                   8t          j        d|           N| j        sG	 t          j        | j                   t          j        d| j                   d S # t           $ r Y d S w xY wd S )N)dry_runz%'%s' does not exist -- can't clean itzremoving '%s')ospathexistsr   r   r    r   debugr   r   r   r   warningrmdirr   infoOSError)r   	directorys     r   runz	clean.run6   s$    7>>$/** 	P>>>>>I=tOOO8 	T"ndot?QR T T	7>>),, T	4<@@@@@K GSSSS | 	)))$/:::::   		 	s   3D 
DDN)__name__
__module____qualname__descriptionuser_optionsr   r   liststr__annotations__r   r   r*    r   r   r	   r	      sy         AK  L" -27OXd3i(222  J J J    r   r	   )__doc__r!   distutils._logr   typingr   corer   dir_utilr   r	   r3   r   r   <module>r9      s   - - 
			                   " " " " " "> > > > >G > > > > >r   