File: D:/Python311/Lib/site-packages/setuptools/_distutils/command/__pycache__/clean.cpython-311.pyc
�
�nc+
� �R � d Z ddlZddlmZ ddlmZ ddlmZ G d� de� � ZdS )zBdistutils.command.clean
Implements the Distutils 'clean' command.� N)�Command)�remove_tree)�logc �2 � e Zd ZdZg d�ZdgZd� Zd� Zd� ZdS )�cleanz-clean up temporary files from 'build' command))zbuild-base=�bz2base build directory (default: 'build.build-base'))z
build-lib=Nz<build directory for all modules (default: 'build.build-lib'))zbuild-temp=�tz7temporary build directory (default: 'build.build-temp'))zbuild-scripts=Nz<build directory for scripts (default: 'build.build-scripts'))zbdist-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 �ED:\Python311\Lib\site-packages\setuptools/_distutils/command/clean.py�initialize_optionszclean.initialize_options# s1 � ����������!����������� c �d � | � ddddd� � | � dd� � d S )N�build)r
r
)r r )r r )r r �bdist)r r )�set_undefined_optionsr s r �finalize_optionszclean.finalize_options+ sH � ��"�"��(�&�.�(�
�
�
�
�"�"�7�,H�I�I�I�I�Ir c �( � t j � | j � � rt | j | j �� � nt
j d| j � � | j rb| j | j
| j fD ]M}t j � |� � rt || j �� � �8t
j d|� � �N| j sG t j
| j � � t
j d| j � � d S # t $ r Y d S w xY wd S )N)�dry_runz%'%s' does not exist -- can't clean itz
removing '%s')�os�path�existsr r r r �debugr
r r r �warn�rmdirr
�info�OSError)r � directorys r �runz clean.run5 s$ � � �7�>�>�$�/�*�*� P������>�>�>�>�>��I�=�t��O�O�O��8� Q�"�n�d�o�t�?Q�R�
Q�
Q� ��7�>�>�)�,�,� Q�� �4�<�@�@�@�@�@��H�D�i�P�P�P�P� �|� �
�����)�)�)����$�/�:�:�:�:�:���
�
�
����
���� � s �3D �
D�DN) �__name__�
__module__�__qualname__�description�user_options�boolean_optionsr r r'