
    ϶vg#
                     R    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dS )	zBdistutils.command.clean

Implements the Distutils 'clean' command.    N)log   )Command)remove_treec                   2    e Zd ZdZg dZdgZ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   c                 Z    d | _         d | _        d | _        d | _        d | _        d | _        d S )N)
build_base	build_lib
build_tempbuild_scripts
bdist_baser   selfs    `/var/www/pixelcanvas.ch/venv/lib/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.run5   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_optionsboolean_optionsr   r   r(    r   r   r   r      sc        AK  L" gO  J J J    r   r   )	__doc__r   distutils._logr   corer   dir_utilr   r   r/   r   r   <module>r4      s   - - 
			             " " " " " "> > > > >G > > > > >r   