관리-도구
편집 파일: base_command.cpython-36.pyc
3 �ReV$ � @ sj d Z ddlmZmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlmZ ddl mZ ddlmZmZ ddlmZmZmZmZ ddlmZmZmZmZmZmZmZ dd lm Z dd l!m"Z" ddl#m$Z$m%Z% ddl&m'Z'm(Z( dd l)m*Z*m+Z+ ddl,m-Z- ddl.m/Z/ e-�rFddl0m1Z1m2Z2m3Z3m4Z4 ddlm5Z5 ddl)m6Z7 dgZ8ej9e:�Z;G dd� de�Z<dS )z(Base Command class, and related routines� )�absolute_import�print_functionN)� cmdoptions)�CommandContextMixIn)�ConfigOptionParser�UpdatingDefaultsHelpFormatter)�ERROR�PREVIOUS_BUILD_DIR_ERROR� UNKNOWN_ERROR�VIRTUALENV_NOT_FOUND)� BadCommand�CommandError�InstallationError�NetworkConnectionError�PreviousBuildDirError�SubProcessError�UninstallationError)� deprecated)�check_path_owner)�BrokenStdoutLoggingError� setup_logging)�get_prog�normalize_path)�global_tempdir_manager�tempdir_registry)�MYPY_CHECK_RUNNING)�running_under_virtualenv)�List�Optional�Tuple�Any)�Values)�TempDirectoryTypeRegistry�Commandc sV e Zd ZdZdZd� fdd� Zdd� Zdd� Zd d � Zdd� Z d d� Z dd� Z� ZS )r# NFc s� t t| �j� | jdjt� |�t� d|| j|d�}|| _|| _ t f |�| _d | _dj| jj � �}tj| j|�| _tjtj| j�}| jj|� | j� d S )Nz{} {}F)�usage�prog� formatter�add_help_option�name�description�isolatedz {} Options)�superr# �__init__r$ �formatr r �__doc__r( �summaryr �parserr � capitalize�optparse�OptionGroup�cmd_optsr �make_option_group� general_group�add_option_group�add_options)�selfr( r/ r* � parser_kw� optgroup_name�gen_opts)� __class__� ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/base_command.pyr, >