
    ?wg#
                     J    d Z ddlZddlmZ ddlmZ ddlmZ  G d de      Zy)	zBdistutils.command.clean

Implements the Distutils 'clean' command.    N)log   )Command)remove_treec                   0    e Zd ZdZg dZdgZd Zd Zd Zy)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   c                 X    d | _         d | _        d | _        d | _        d | _        d | _        y )N)
build_base	build_lib
build_tempbuild_scripts
bdist_baser   selfs    Z/var/www/horilla/myenv/lib/python3.12/site-packages/setuptools/_distutils/command/clean.pyinitialize_optionszclean.initialize_options#   s-    !    c                 R    | j                  ddddd       | j                  dd       y )Nbuild)r   r   )r   r   )r   r   )r   r   bdist)r   r   )set_undefined_optionsr   s    r   finalize_optionszclean.finalize_options+   s2    ""(&.(	
 	""7,HIr   c                    t         j                  j                  | j                        r"t	        | j                  | j
                         n t        j                  d| j                         | j                  ru| j                  | j                  | j                  fD ]O  }t         j                  j                  |      rt	        || j
                         :t        j                  d|       Q | j
                  sA	 t        j                  | j                         t        j                  d| j                         y y # t         $ r Y y w xY w)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.run5   s     77>>$//*>II=tO88"nndoot?Q?QR T	77>>),	4<<@KK GS	T ||)$//:   s   :?D; ;	EEN)	__name__
__module____qualname__descriptionuser_optionsboolean_optionsr   r   r(    r   r   r   r      s'    AKL" gOJr   r   )	__doc__r   distutils._logr   corer   dir_utilr   r   r/   r   r   <module>r4      s$   - 
   ">G >r   