관리-도구
편집 파일: cmdoptions.cpython-38.opt-1.pyc
U ��.e�h � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZmZm Z ddlmZ ddlmZ dd lmZmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ e�rddl m!Z!m"Z"m#Z#m$Z$m%Z% ddl m&Z&m'Z' ddl(m)Z) e�*e+�Z,dd� Z-dd� Z.d�dd�Z/d�dd�Z0e edddddd �Z1e ed!d"d#dd$d%�Z2e ed&d'd(d#ded%�Z3e ed)d*d+d,dd-d%�Z4e ed.d/d#dd0d%�Z5e ed1d2d3d#d4d �Z6e ed5d6d7d,dd8d%�Z7e ed9d:d;e8e�9� �d<d=d>�:e�9� � d? d@�Z;e edAdBdCdDdEdFdG�Z<e edHdId#ded%�Z=e edJdKdLdMdNdO�Z>e edPdQdRdSdTdO�Z?e edUdVdWdXdYdZd[d\�Z@e ed]d^dLdMedO�ZAd_d`� ZBe edadbdLdEdcdd�ZCe ededfdLddEdgdh�ZDe edidjdkdldmejEdndo�ZFdpdq� ZGe edrdsd#ddtd%�ZHdudv� ZIdwdx� ZJdydz� ZKd{d|� ZLd}d~� ZMe edd�d�d�d�d�e� d�do� ZNd�d�� ZOd�d�� ZPd�d�� ZQd�d�� ZRd�d�� ZSe ed�d�d�dd�do�ZTd�d�� ZUd�d�� ZVe ed�d�d�d�eVdLded��d�� ZWe ed�d�d�dd�do�ZXe ed�d�d�dd�do�ZYd�d�� ZZd�d�� Z[d�d�� Z\e ed�d�ed�d�d��Z]d�d�� Z^e ed�d�d�e^d�d��Z_e ed�d�d�d#dd�d%�Z`e ed�d�d�d�d�d�d�dG�Zae ed�d�d#d�d �Zbe ed�d�d�d�d�d%�Zcd�dĄ Zde ed�d�d#dd�d%�Zee ed�d�d�eddedɍZfe ed�d�d�d�d�dύZge ed�d�d�d�d�dύZhe ed�d#dd�dՍZie ed�d#dd�dՍZje ed�d�d#dd�d%�Zke ed�d�d�d#ed �Zld�d߄ Zme ed�d�d�emd�d�d�Zne ed�d�d#dd�d%�Zoe ed�dEd�d�d �Zpd�d� Zqd�e1e2e3e4e6e7e<e=e>e?e@eAeBeJeCeDe]e_eke5gd�Zrd�eFeGeHeIgd�ZsdS )�aC shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this design. � )�absolute_importN)� strtobool)�partial)� SUPPRESS_HELP�Option�OptionGroup)�dedent)�CommandError)�USER_CACHE_DIR�get_src_prefix)� FormatControl)�PyPI)�TargetPython)� STRONG_HASHES)�MYPY_CHECK_RUNNING)� BAR_TYPES)�Any�Callable�Dict�Optional�Tuple)�OptionParser�Values)�ConfigOptionParserc C s. d� ||�}t�d�|�� ��}| �|� dS )z� Raise an option parsing error using parser.error(). Args: parser: an OptionParser instance. option: an Option instance. msg: the error text. z{} error: {}� N)�format�textwrapZfill�join�split�error)�parser�option�msg� r# �@/usr/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py�raise_option_error) s r% c C s, t || d �}| d D ]}|�|� � q|S )z� Return an OptionGroup object group -- assumed to be dict with 'name' and 'options' keys parser -- an optparse Parser �name�options)r � add_option)�groupr Zoption_groupr! r# r# r$ �make_option_group7 s r* c sP � dkr| � � fdd�}dddg}t t||��rL| j}|�� tjddd � dS ) z�Disable wheels if per-setup.py call options are set. :param options: The OptionParser options to update. :param check_options: The options to check, if not supplied defaults to options. Nc s t � | d �S �N)�getattr)�n�� check_optionsr# r$ �getnameO s z+check_install_build_global.<locals>.getnameZ build_options�global_options�install_optionszeDisabling all use of wheels due to the use of --build-options / --global-options / --install-options.� )� stacklevel)�any�map�format_controlZdisallow_binaries�warnings�warn)r'