관리-도구
편집 파일: cmd.cpython-311.opt-2.pyc
� c��f�F � �n � d dl Z d dlZd dlZd dlmZ d dlmZmZmZm Z m Z d dlmZ G d� d� � ZdS )� N)�DistutilsOptionError)�util�dir_util� file_util�archive_util�dep_util��logc � � e Zd Z g Zd� Zd� Zd� Zd� Zd� Zd$d�Z d � Z d%d�Zd� Zd&d �Z d&d�Zd� Z d&d�Zd� Zd� Zd� Zd� Zd%d�Zd'd�Zd� Zd� Zd� Zd(d�Zd)d�Z d*d�Z d+d�Zd%d �Zd,d!�Z d-d"�Z d.d#�Z!dS )/�Commandc � � ddl m} t ||� � st d� � �| j t u rt d� � �|| _ | � � � d | _ |j | _ d | _ d| _ d| _ d S )Nr )�Distributionz$dist must be a Distribution instancezCommand is an abstract class)�distutils.distr � isinstance� TypeError� __class__r �RuntimeError�distribution�initialize_options�_dry_run�verbose�force�help� finalized)�self�distr s �4/opt/alt/python311/lib64/python3.11/distutils/cmd.py�__init__zCommand.__init__/ s� � � � 0�/�/�/�/�/��$��-�-� D��B�C�C�C��>�W�$�$��=�>�>�>� ������!�!�!� �� � �|��� �� � �� � ����� c � � |dk r,t | d|z � � }|�t | j |� � S |S t |� � �)N�dry_run�_)�getattrr �AttributeError)r �attr�myvals r �__getattr__zCommand.__getattr___ sK � ��9����D�#��*�-�-�E��}��t�0�$�7�7�7��� ��&�&�&r c �J � | j s| � � � d| _ d S �N� )r �finalize_options�r s r �ensure_finalizedzCommand.ensure_finalizedi s) � ��~� $��!�!�#�#�#�����r c �2 � t d| j z � � ��Nz,abstract method -- subclass %s must override�r r r, s r r zCommand.initialize_options{ �( � � � �I�!�^�,� -� -� -r c �2 � t d| j z � � �r/ r0 r, s r r+ zCommand.finalize_options� s( � � � �I�!�^�,� -� -� -r N� c �z � ddl m} |�d| � � � z }| � ||z t j �� � |dz }| j D ]j\ }}}|� |� � }|d dk r |d d� }t | |� � }| � ||�d|��z t j �� � �kd S ) Nr )� longopt_xlatezcommand options for '%s':)�levelz ����=z = ) �distutils.fancy_getoptr5 �get_command_name�announcer �INFO�user_options� translater# )r �header�indentr5 �optionr"