ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/
Upload File :
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyo

�
Bu�_c@@s#
dZddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZmZm
Z
ddlmZddlmZdd	lmZdd
lmZmZddlmZddlmZdd
lmZddlmZddlmZercddl m!Z!m"Z"m#Z#m$Z$m%Z%ddl
m&Z&m'Z'ddl(m)Z)nd�Z*d�Z+dd�Z-e.d�Z/d�Z0defd��YZ1e	edddddddd�Z2e	ed dd!dd"d#e.dd$�Z3e	ed%d&dd'dd"d#e.de�Z4e	ed(d)dd*dd+d#ddd,�Z5e	ed-dd.dd"d#e.dd/�Z6e	ed0d1dd2dd"dd3�Z7e	ed4d5dd6dd+d#ddd7�Z8e	ed8dd9d:d;d<e9ej:��d#d=dd>d?j;ej:��d@�Z<e	e1dAdBdCddDdEdFd:dFddG�Z=e	edHddIdd"d#e.ddJ�Z>e	edKddLd:dMd#dNddO�Z?e	edPddQd:dRd#dSddT�Z@e	edUdVdEdWddXd:dYd#dZdd[�ZAd\�ZBe	e1d]dd^d:dFdEdFdd_�ZCe	e1d`ddad:dFd#ddEdFddb�ZDe	edcdddeddfdEdgd#ejEddh�ZFdi�ZGe	edjddkdd"d#e.ddl�ZHdm�ZIdn�ZJdo�ZKdp�ZLdq�ZMdr�ZNe	e1dsdtdudvddwd:dFdEdxd#e�ddydyeNddz�ZOd{�ZPd|�ZQd}�ZRd~�ZSd�ZTe	ed�dd�dEd�d#ddd��ZUd��ZVd��ZWe	ed�dd�dEd�ddydyeWd:dMd#dded���ZXe	ed�dd�dEd�d#ddd��ZYe	ed�dd�dEd�d#ddd��ZZd��Z[d��Z\d��Z]e	e1d�dd�d#edEdxd:dFdd��Z^d��Z_e	ed�dd�ddydye_dd��Z`e	ed�d�dd�dd"d#e.dd��Zad��Zbe	e1d�d�d�d�dd�d:dFdEdxddydyebdd��Zce	ed�dd�dd"dd��Zde	ed�dd�dd�d#eedd��Zfd��Zge	ed�dd�dd"d#ddd��Zhe	ed�dd�ddydyegd#dde�Zie	ed�dd�dd�dEd�dd��Zje	ed�dd�dd�dEd�dd��Zke	ed�dd"d#e.dd��Zle	ed�dd"d#e.dd��Zme	ed�dd�dd"d#e.dd��Znd��Zoe	ed�dd�ddydyeod:d�dd��Zpe	ed�dd�dd"d#e.dd��Zqe	e1d�ddFd:dFdd�dd��Zrd��Zse	ed�dd�dd"d#e.dd��Zte	ed�dd�dEd�dd�d#gd<d�gde�Zue	ed�dd�dEd�dd�d#gd<d�d�gdd��Zve	ed�dd�dEd�dd�d#gd<gdd��Zwid�d�6e2e3e4e5e7e8e=e>e?e@eAeBeJeCeDe^e`ene6eteuevewgd�6Zxid�d�6eFeGeHeIgd�6ZydS(�sC
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.
i(tabsolute_importN(t	strtobool(tpartial(t
SUPPRESS_HELPtOptiontOptionGroup(tdedent(t	BAR_TYPES(tCommandError(tUSER_CACHE_DIRtget_src_prefix(t
FormatControl(tPyPI(tTargetPython(t
STRONG_HASHES(tMYPY_CHECK_RUNNING(tAnytCallabletDicttOptionaltTuple(tOptionParsertValues(tConfigOptionParsercC@sAdj||�}tjdj|j���}|j|�dS(s�
    Raise an option parsing error using parser.error().

    Args:
      parser: an OptionParser instance.
      option: an Option instance.
      msg: the error text.
    s{} error: {}t N(tformatttextwraptfilltjointsplitterror(tparsertoptiontmsg((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytraise_option_error&s
cC@s<t||d�}x"|dD]}|j|��qW|S(s�
    Return an OptionGroup object
    group  -- assumed to be dict with 'name' and 'options' keys
    parser -- an optparse Parser
    tnametoptions(Rt
add_option(tgroupRtoption_groupR ((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytmake_option_group5sc@su�dkr|�n�fd�}dddg}tt||��rq|j}|j�tjddd�ndS(	s�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.
    c@st�|d�S(N(tgetattrtNone(tn(t
check_options(sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytgetnameMst
build_optionstglobal_optionstinstall_optionssbDisabling all use of wheels due to the use of --build-option / --global-option / --install-option.t
stackleveliN(R*tanytmaptformat_controltdisallow_binariestwarningstwarn(R$R,R-tnamestcontrol((R,sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytcheck_install_build_globalBs		
cC@s�t|j|j|j|jg�}tt�dh�}|j|koO|j}|rm|rmt	d��n|r�|r�|j
r�t	d��q�ndS(s�Function for determining if custom platform options are allowed.

    :param options: The OptionParser options.
    :param check_target: Whether or not to check if --target is being used.
    s:all:s�When restricting platform and interpreter constraints using --python-version, --platform, --abi, or --implementation, either --no-deps must be set, or --only-binary=:all: must be set and --no-binary must not be set (or must be set to :none:).sQCan not use any platform or abi specific options unless installing via '--target'N(R2tpython_versiontplatformtabitimplementationRtsetR4tignore_dependenciesRt
target_dir(R$tcheck_targettdist_restriction_settbinary_onlytsdist_dependencies_allowed((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytcheck_dist_restrictionZs
cC@stjj|�S(N(tostpatht
expanduser(R topttvalue((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_path_option_check�st	PipOptioncB@s.eZejdZejj�Zeed<RS(RH(spath(t__name__t
__module__RtTYPEStTYPE_CHECKERtcopyRL(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyRM�s
s-hs--helptdestthelptactions
Show help.s
--isolatedt
isolated_modet
store_truetdefaultsSRun pip in an isolated mode, ignoring environment variables and user configuration.s--require-virtualenvs--require-venvtrequire_venvs-vs	--verbosetverbosetcountsDGive more output. Option is additive, and can be used up to 3 times.s
--no-colortno_colorsSuppress colored outputs-Vs	--versiontversionsShow version and exit.s-qs--quiettquiets�Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).s--progress-bartprogress_barttypetchoicetchoicestons*Specify type of progress to be displayed [t|s] (default: %default)s--logs
--log-files--local-logtlogtmetavarRHs Path to a verbose appending log.s
--no-inputtno_inputsDisable prompting for input.s--proxytproxytstrts<Specify a proxy in the form [user:passwd@]proxy.server:port.s	--retriestretriestintisRMaximum number of retries each connection should attempt (default %default times).s	--timeouts--default-timeouttsecttimeouttfloatis2Set the socket timeout (default %default seconds).cC@sCtddddddddd	d
dgdgd
ddd
dd�S(Ns--exists-actionRSt
exists_actionR`RaRbtstitwtbtaRXRUtappendRfRTsYDefault action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.(R(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyRpss--certtcertsPath to alternate CA bundle.s
--client-certtclient_certskPath to SSL client certificate, a single file containing the private key and the certificate in PEM format.s-is--index-urls
--pypi-urlt	index_urltURLs�Base URL of the Python Package Index (default %default). This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.cC@s(tddddddddgd	d
�S(Ns--extra-index-urlRStextra_index_urlsRfRzRURvRXRTsmExtra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url.(R(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytextra_index_urlEss
--no-indextno_indexsAIgnore package index (only looking at --find-links URLs instead).c
C@s+tdddddddgdd	d
d�S(Ns-fs--find-linksRSt
find_linksRURvRXRfturlRTsIf a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. If a local path or file:// URL that's a directory,  then look for archives in the directory listing. Links to VCS project URLs are not supported.(R(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyR~]s	cC@s(tddddddddgd	d
�S(Ns--trusted-hostRSt
trusted_hostsRURvRftHOSTNAMERXRTs]Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.(R(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyttrusted_hostmsc
C@s+tdddddddgdd	d
d�S(Ns-cs--constraintRStconstraintsRURvRXRftfileRTs\Constrain versions using the given constraints file. This option can be used multiple times.(R(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyR�zs	c
C@s+tdddddddgdd	d
d�S(Ns-rs
--requirementRStrequirementsRURvRXRfR�RTsQInstall from the given requirements file. This option can be used multiple times.(R(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyR��s	c
C@s+tdddddddgdd	d
d�S(Ns-es
--editableRSt	editablesRURvRXRfspath/urlRTskInstall a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.(R(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyteditable�s	cC@s,tjj|�}t|j|j|�dS(N(RGRHtabspathtsetattrtvaluesRS(R topt_strRKR((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_src�ss--srcs--sources--source-dirs--source-directorytsrc_dirtdirtcallbacks�Directory to check out editable projects into. The default in a virtualenv is "<venv path>/src". The default for global installs is "<current dir>/src".cC@st||j�S(sGet a format_control object.(R)RS(R�R ((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_get_format_control�scC@s/t|j|�}tj||j|j�dS(N(R�R�Rthandle_mutual_excludest	no_binarytonly_binary(R R�RKRtexisting((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_no_binary�scC@s/t|j|�}tj||j|j�dS(N(R�R�RR�R�R�(R R�RKRR�((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_only_binary�scC@sCtt�t��}tddddddtddd|d	d
�S(Ns--no-binaryRSR4RUR�R`RiRXRTsvDo not use binary packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either ":all:" to disable all binary packages, ":none:" to empty the set (notice the colons), or one or more package names with commas between them (no colons). Note that some packages are tricky to compile and may fail to install when this option is used on them.(RR?RR�(R4((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyR��scC@sCtt�t��}tddddddtddd|d	d
�S(Ns
--only-binaryRSR4RUR�R`RiRXRTsKDo not use source packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either ":all:" to disable all source packages, ":none:" to empty the set, or one or more package names with commas between them. Packages without binary distributions will fail to install when this option is used on them.(RR?RR�(R4((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyR��ss
--platformR<s[Only use wheels compatible with <platform>. Defaults to the platform of the running system.cC@s�|s
d	S|jd�}t|�dkr/dSt|�dkrw|d}t|�dkrw|d|dg}qwnytd�|D��}Wntk
r�d
SX|dfS(s�
    Convert a version string like "3", "37", or "3.7.3" into a tuple of ints.

    :return: A 2-tuple (version_info, error_msg), where `error_msg` is
        non-None if and only if there was a parsing error.
    t.is'at most three version parts are allowediics@s|]}t|�VqdS(N(Rl(t.0tpart((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pys	<genexpr>ss$each version part must be an integerN(NN(((s'at most three version parts are allowed(((s$each version part must be an integer(R*Rtlenttuplet
ValueError(RKtpartstversion_info((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_convert_python_version�s

cC@sYt|�\}}|dk	rIdj||�}t|d|d|�n||j_dS(s3
    Handle a provided --python-version value.
    s(invalid --python-version value: {!r}: {}R R!N(R�R*RR"R�R;(R R�RKRR�t	error_msgR!((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_python_versionss--python-versionR;s�    The Python interpreter version to use for wheel and "Requires-Python"
    compatibility checks. Defaults to a version derived from the running
    interpreter. The version can be specified using up to three dot-separated
    integers (e.g. "3" for 3.0.0, "3.7" for 3.7.0, or "3.7.3"). A major-minor
    version can also be given as a string without dots (e.g. "37" for 3.7.0).
    s--implementationR>s�Only use wheels compatible with Python implementation <implementation>, e.g. 'pp', 'jy', 'cp',  or 'ip'. If not specified, then the current interpreter implementation is used.  Use 'py' to force implementation-agnostic wheels.s--abiR=s�Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'.  If not specified, then the current interpreter abi tag is used.  Generally you will need to specify --implementation, --platform, and --python-version when using this option.cC@sD|jt��|jt��|jt��|jt��dS(N(R%R<R;R>R=(tcmd_opts((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytadd_target_python_optionsVsc	C@s1td|jd|jd|jd|j�}|S(NR<tpy_version_infoR=R>(R
R<R;R=R>(R$t
target_python((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytmake_target_python^s			c
C@s"tddddddtdd�S(	Ns--prefer-binaryRSt
prefer_binaryRURWRXRTs8Prefer older binary packages over newer source packages.(RtFalse(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyR�jss--cache-dirt	cache_dirsStore the cache data in <dir>.cC@s_|dk	rOyt|�WqOtk
rK}t|d|dt|��qOXnt|j_dS(s�
    Process a value provided for the --no-cache-dir option.

    This is an optparse.Option callback for the --no-cache-dir option.
    R R!N(R*RR�R"RiR�R�R�(R RJRKRtexc((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_no_cache_dir�s#	s--no-cache-dirsDisable the cache.s	--no-depss--no-dependenciesR@s#Don't install package dependencies.cC@s5|rtjj|�}nt|j|j|�dS(N(RGRHR�R�R�RS(R RJRKR((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_build_dir�ss-bs--builds--build-dirs--build-directoryt	build_dirsK(DEPRECATED) Directory to unpack packages into and build in. Note that an initial build still takes place in a temporary directory. The location of temporary directories can be controlled by setting the TMPDIR environment variable (TEMP on Windows) appropriately. When passed, build directories are not cleaned in case of failures.s--ignore-requires-pythontignore_requires_pythons'Ignore the Requires-Python information.s--no-build-isolationtbuild_isolationtstore_falses�Disable isolation when building a modern source distribution. Build dependencies specified by PEP 518 must be already installed if this option is used.cC@s;|dk	r+d}t|d|d|�nt|j_dS(s�
    Process a value provided for the --no-use-pep517 option.

    This is an optparse.Option callback for the no_use_pep517 option.
    s0A value was passed for --no-use-pep517,
        probably using either the PIP_NO_USE_PEP517 environment variable
        or the "no-use-pep517" config file option. Use an appropriate value
        of the PIP_USE_PEP517 environment variable or the "use-pep517"
        config file option instead.
        R R!N(R*R"R�R�t
use_pep517(R RJRKRR!((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_no_use_pep517�ss--use-pep517R�s^Use PEP 517 for building source distributions (use --no-use-pep517 to force legacy behaviour).s--no-use-pep517s--install-optionR0RvR$s"Extra arguments to be supplied to the setup.py install command (use like --install-option="--install-scripts=/usr/local/bin"). Use multiple --install-option options to pass multiple options to setup.py install. If you are using an option with a directory path, be sure to use absolute path.s--global-optionR/sTExtra global options to be supplied to the setup.py call before the install command.s
--no-cleans!Don't clean up build directories.s--presYInclude pre-release and development versions. By default, pip only finds stable versions.s--disable-pip-version-checktdisable_pip_version_checks{Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.cC@s�|jjsi|j_ny|jdd�\}}Wn'tk
r`|jdj|��nX|tkr�|jdj|djt���n|jjj|g�j	|�dS(skGiven a value spelled "algo:digest", append the digest to a list
    pointed to in a dict by the algo name.t:isTArguments to {} must be a hash name followed by a value, like --hash=sha256:abcde...s&Allowed hash algorithms for {} are {}.s, N(
R�thashesRR�RRRRt
setdefaultRv(R R�RKRtalgotdigest((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt_handle_merge_hash9s
s--hashR�tstringsgVerify that the package's archive matches this hash before installing. Example: --hash=sha256:abcdef...s--require-hashestrequire_hashess�Require a hash to check each requirement against, for repeatable installs. This option is implied when any package in a requirements file has a --hash option.s--paths^Restrict to the specified installation path for listing packages (can be used multiple times).cC@s.|jr*|js|jr*td��ndS(Ns2Cannot combine '--path' with '--user' or '--local'(RHtusertlocalR(R$((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pytcheck_list_path_optionpss--no-python-version-warningtno_python_version_warnings>Silence deprecation warnings for upcoming unsupported Pythons.s--unstable-featuretunstable_featurestfeaturetresolvers
--use-featuretfeatures_enableds
2020-resolvers	fast-depss<Enable new functionality, that may be backward incompatible.s--use-deprecatedtdeprecated_features_enabledsDEnable deprecated functionality, that will be removed in the future.sGeneral OptionsR#sPackage Index Options(zt__doc__t
__future__RRGRR6tdistutils.utilRt	functoolsRtoptparseRRRRtpip._internal.cli.progress_barsRtpip._internal.exceptionsRtpip._internal.locationsR	R
t#pip._internal.models.format_controlRtpip._internal.models.indexRt"pip._internal.models.target_pythonR
tpip._internal.utils.hashesRtpip._internal.utils.typingRttypingRRRRRRRtpip._internal.cli.parserRR"R(R*R:R�RFRLRMthelp_RVtrequire_virtualenvRZR\R]R^tlisttkeysRR_ReRgRhRkRnRpRwRxt
simple_urlRyR|R}R~R�R�R�R�R�tsrcR�R�R�R�R�R<R�R�R;R>R=R�R�R�R�R�tno_cachetno_depsR�R�R�tTruetno_build_isolationR�R�t
no_use_pep517R0R/tno_cleantpreR�R�thashR�t	list_pathR�R�tunstable_featuretuse_new_featuretuse_deprecated_featuret
general_grouptindex_group(((sM/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.pyt<module>s
(		
(	
												 															
	
	
	
																																													


Zerion Mini Shell 1.0