관리-도구
편집 파일: clean.cpython-311.pyc
� ,�Re# � �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 ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/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 �warning�rmdirr �info�OSError)r � directorys r �runz clean.run5 s$ � � �7�>�>�$�/�*�*� P������>�>�>�>�>��I�=�t��O�O�O��8� T�"�n�d�o�t�?Q�R� T� T� ��7�>�>�)�,�,� T�� �4�<�@�@�@�@�@��K� G��S�S�S�S� �|� � �����)�)�)����$�/�:�:�:�:�:��� � � ���� ���� � s �3D � D�DN) �__name__� __module__�__qualname__�description�user_options�boolean_optionsr r r( � r r r r sc � � � � � �A�K�� � �L�"