ok

Mini Shell

Direktori : /lib/python2.7/site-packages/pip/
Upload File :
Current File : //lib/python2.7/site-packages/pip/cmdoptions.pyc

�
��abc@@s�dZddlmZddlmZddlmZmZmZddl	Z	ddl
mZmZm
Z
mZddlmZddlmZmZdd	lmZd
�Zd�Zdd�Zeed
ddddddd�Zeeddddddedd�Zeedddddddede�Zeedddddddddd�Zeed d!dd"dddd#�Zeed$d%dd&dddddd'�Z eed(d)d*dd+d,d-dd.�Z!eed/dd0dddede�Z"eed1dd2d3d4dd5dd6�Z#eed7dd8d3d9dd:dd;�Z$eed<d=d,d>dd?d3d@ddAddB�Z%eedCddDd3d4dd5de�Z&eedEddFd3d4dd5de�Z'dG�Z(eedHddId3d4d,d-ddJ�Z)eedKddLd3d4ddd,d-ddM�Z*eedNdOdPddQd,dRdej+ddS�Z,dT�Z-eedUddVdddeddW�Z.dX�Z/dY�Z0eedZdd[dddede�Z1d\�Z2eed]dd[dd^dede�Z3d_�Z4eed`ddadd^dede�Z5eedbddcdddeddd�Z6de�Z7df�Z8dg�Z9eedhdidjdkddld,dmdeddn�Z:eedoddpddde;de�Z<eedqddpdd^de;ddr�Z=ds�Z>dt�Z?du�Z@dv�ZAdw�ZBeedxddyded,dmddz�ZCeed{ddydd^dd|�ZDeed}d~dddddedd��ZEeed�d�d�d�dd�d,dmdd��ZFeed�dd�dddd��ZGeed�dd�dd�d,d�dd��ZHeed�dd�dd�d,d�dd��ZIeed�dddedd��ZJeed�dddedd��ZKeed�dd�dddedd��ZLeed�d�dd�ddde�ZMd��ZNeed�dd�dd�d�eNd3d�dd��ZOeed�dd�dddedd��ZPid�d�6eeeeee e!e"e#e$e%e&e'e(e2e)e*eCeDeLgd�6ZQid�d�6e,e-e.e/e6gd�6ZRid�d�6eRd�e0e1e3e4e5gd�6ZSdS(�sD
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_import(tpartial(tOptionGroupt
SUPPRESS_HELPtOptionN(t
FormatControltfmt_ctl_handle_mutual_excludetfmt_ctl_no_binarytfmt_ctl_no_use_wheel(tPyPI(tUSER_CACHE_DIRt
src_prefix(t
STRONG_HASHEScC@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(tgrouptparsertoption_grouptoption((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pytmake_option_groupscC@s#|js|j}t|�ndS(N(t	use_wheeltformat_controlR(Rtcontrol((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pytresolve_wheel_no_use_binary$s		c@su�dkr|�n�fd�}dddg}tt||��rq|j}t|�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(s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pytgetname4st
build_optionstglobal_optionstinstall_optionsseDisabling all use of wheels due to the use of --build-options / --global-options / --install-options.t
stackleveliN(RtanytmapRRtwarningstwarn(RRRtnamesR((Rs2/usr/lib/python2.7/site-packages/pip/cmdoptions.pytcheck_install_build_global*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-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--logs
--log-files--local-logtlogtmetavartpaths Path to a verbose appending log.s
--no-inputtno_inputs--proxytproxyttypetstrts<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).s
--default-vcstdefault_vcss--skip-requirements-regextskip_requirements_regexcC@sCtddddddddd	d
dgdgd
ddd
dd�S(Ns--exists-actionR(t
exists_actionR8tchoicetchoiceststitwtbtaR-R*tappendR4R)sYDefault action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.(R(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyRB�ss--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 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-urlR(textra_index_urlsR4RNR*RJR-R)smExtra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url.(R(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pytextra_index_url�ss
--no-indextno_indexsAIgnore package index (only looking at --find-links URLs instead).c
C@s+tdddddddgdd	d
d�S(Ns-fs--find-linksR(t
find_linksR*RJR-R4turlR)s�If a url or path to an html file, then parse for links to archives. If a local path or file:// url that's a directory, then look for archives in the directory listing.(R(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyRR�s	cC@s(tddddddgddd	t�S(
Ns--allow-externalR(tallow_externalR*RJR-R4tPACKAGER)(RR(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyRTss--allow-all-externaltallow_all_externalcC@s(tddddddddgd	d
�S(Ns--trusted-hostR(t
trusted_hostsR*RJR4tHOSTNAMER-R)sKMark this host as trusted, even though it does not have valid or any HTTPS.(R(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyttrusted_hostss--no-allow-externaltstore_falsec
C@s+tdddddddgdd	d
t�S(Ns--allow-unverifieds--allow-insecureR(tallow_unverifiedR*RJR-R4RUR)(RR(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pytallow_unsafe3s	s--no-allow-insecuretallow_all_insecures--process-dependency-linkstprocess_dependency_linkss*Enable the processing of dependency links.c
C@s+tdddddddgdd	d
d�S(Ns-cs--constraintR(tconstraintsR*RJR-R4tfileR)s\Constrain versions using the given constraints file. This option can be used multiple times.(R(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyR_Rs	c
C@s+tdddddddgdd	d
d�S(Ns-rs
--requirementR(trequirementsR*RJR-R4R`R)sQInstall from the given requirements file. This option can be used multiple times.(R(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyRa]s	c
C@s+tdddddddgdd	d
d�S(Ns-es
--editableR(t	editablesR*RJR-R4spath/urlR)skInstall a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.(R(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyteditablehs	s--srcs--sources--source-dirs--source-directorytsrc_dirtdirs�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".s--use-wheelRs--no-use-wheels{Do not Find and prefer wheel archives when searching indexes and find-links locations. DEPRECATED in favour of --no-binary.cC@st||j�S(sGet a format_control object.(RR((tvaluesR((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyt_get_format_control�scC@s/t|j|j�}t||j|j�dS(N(RRfR(Rt	no_binarytonly_binary(Rtopt_strtvalueRtexisting((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyt_handle_no_binary�scC@s/t|j|j�}t||j|j�dS(N(RRfR(RRiRh(RRjRkRRl((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyt_handle_only_binary�scC@s=tddddddtdddtt�t��d	d
�S(Ns--no-binaryR(RR*tcallbackR8R9R-R)sRDo 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, or one or more package names with commas between them. Note that some packages are tricky to compile and may fail to install when this option is used on them.(RRmRtset(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyRh�s
cC@s=tddddddtdddtt�t��d	d
�S(Ns
--only-binaryR(RR*RoR8R9R-R)sGDo 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.(RRnRRp(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyRi�s
s--cache-dirt	cache_dirsStore the cache data in <dir>.s--no-cache-dirsDisable the cache.s	--no-depss--no-dependenciestignore_dependenciess#Don't install package dependencies.s-bs--builds--build-dirs--build-directoryt	build_dirs/Directory to unpack packages into and build in.s--ignore-requires-pythontignore_requires_pythons'Ignore the Requires-Python information.s--install-optionR RJRs"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-optionRsTExtra 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.s-Zs--always-unziptalways_unzipcC@s�|jjsi|j_ny|jdd�\}}Wn"tk
r[|jd|�nX|tkr�|jd|djt�f�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 %s must be a hash name followed by a value, like --hash=sha256:abcde...s&Allowed hash algorithms for %s are %s.s, N(	Rfthashestsplitt
ValueErrorterrorRtjoint
setdefaultRJ(RRjRkRtalgotdigest((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyt_merge_hashs
		s--hashRxRotstringsgVerify 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.sGeneral OptionsR
sPackage Index Optionss4Package Index Options (including deprecated options)(Tt__doc__t
__future__Rt	functoolsRtoptparseRRRR$t	pip.indexRRRRt
pip.modelsR	t
pip.locationsR
Rtpip.utils.hashesRRRRR'thelp_tFalseR+trequire_virtualenvR/R1R2R3R6R7R;R>R@RARBRKRLt
simple_urlRMRPRQRRRTRVRYtno_allow_externalR\tno_allow_unsafeR^R_RaRctsrctTrueRtno_use_wheelRgRmRnRhRiRqtno_cachetno_depsRsRtR Rtno_cleantpreRuRvR�thashR�t
general_grouptnon_deprecated_index_grouptindex_group(((s2/usr/lib/python2.7/site-packages/pip/cmdoptions.pyt<module>	sx"																											
					
														
	
																	



Zerion Mini Shell 1.0