관리-도구
편집 파일: cmdoptions.cpython-36.opt-1.pyc
3 �PfZ@ � @ sn d Z ddlmZ ddlmZ ddlmZmZmZ ddl Z ddl mZmZm Z mZ ddlmZ ddlmZmZ dd lmZ d d� Zdd � Zd�dd�Zeedddddd�Zeedddddd�Zeeddddded�Zeeddd d!dd"d�Zeed#d$d%dd&d�Zeed'd(d)d!dd*d�Zeed+d,d-d.d/d0d1�Zeed2d3dded�Z eed4d5d6d7d8d9�Z!eed:d;d<d=d>d9�Z"eed?d@dAdBdCdDdEdF�Z#eedGdHd6d7ed9�Z$eedIdJd6d7ed9�Z%dKdL� Z&eedMdNd6d/dOdP�Z'eedQdRd6dd/dSdT�Z(eedUdVdWdXdYej)dZd[�Z*d\d]� Z+eed^d_ddd`d�Z,dadb� Z-dcdd� Z.eededfdded�Z/dgdh� Z0eedidfdjded�Z1dkdl� Z2eedmdndjded�Z3eedodpdddqd�Z4drds� Z5dtdu� Z6dvdw� Z7eedxdydzd{d|d}ed~d[� Z8eedd�dd�ed�Z9eed�d�djd�d�d�Z:d�d�� Z;d�d�� Z<d�d�� Z=d�d�� Z>d�d�� Z?eed�d�ed}d�d��Z@eed�d�djd�d�ZAeed�d�d�ddd�d�ZBeed�d�d�d�d�d}d�d1�ZCeed�d�dd�d�ZDeed�d�d�d�d�d��ZEeed�d�d�d�d�d��ZFeed�ddd�d��ZGeed�ddd�d��ZHeed�d�ddd�d�ZIeed�d�d�ded�ZJd�d�� ZKeed�d�d�eKd�d�d��ZLeed�d�ddd�d�ZMd�eeeeeeee e!e"e#e$e%e&e0e'e(e@eAeIgd��ZNd�e*e+e,e-e4gd��ZOd�eOd� e.e/e1e2e3g d��ZPdS )�aD 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_import)�partial)�OptionGroup� SUPPRESS_HELP�OptionN)� FormatControl�fmt_ctl_handle_mutual_exclude�fmt_ctl_no_binary�fmt_ctl_no_use_wheel)�PyPI)�USER_CACHE_DIR� src_prefix)� STRONG_HASHESc C s0 t || d �}x| d D ]}|j|� � qW |S )z� Return an OptionGroup object group -- assumed to be dict with 'name' and 'options' keys parser -- an optparse Parser �name�options)r Z add_option)�group�parserZoption_group�option� r � /usr/lib/python3.6/cmdoptions.py�make_option_group s r c C s | j s| j}t|� d S )N)� use_wheel�format_controlr )r �controlr r r �resolve_wheel_no_use_binary$ s r c sP � dkr| � � fdd�}dddg}t t||��rL| j}t|� 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 �getname4 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�mapr r �warnings�warn)r r r �namesr r )r r �check_install_build_global* s r( z-hz--help�helpz Show help.)�dest�actionr) z --isolated� isolated_mode� store_trueFzSRun pip in an isolated mode, ignoring environment variables and user configuration.)r* r+ �defaultr) z--require-virtualenvz--require-venvZrequire_venvz-vz --verbose�verbose�countzDGive more output. Option is additive, and can be used up to 3 times.z-Vz --version�versionzShow version and exit.z-qz--quiet�quietz�Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).z--logz --log-filez--local-log�log�pathz Path to a verbose appending log.)r* �metavarr) z --no-input�no_inputz--proxy�proxy�str� z<Specify a proxy in the form [user:passwd@]proxy.server:port.)r* �typer. r) z --retries�retries�int� zRMaximum number of retries each connection should attempt (default %default times).z --timeoutz--default-timeoutZsec�timeout�float� z2Set the socket timeout (default %default seconds).)r5 r* r: r. r) z --default-vcs�default_vcsz--skip-requirements-regex�skip_requirements_regexc C s"