Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pip/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pip/basecommand.pyo

�
��abc@@s�dZddlmZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZmZmZmZmZdd	lmZdd
lmZmZddlmZmZddlmZm Z m!Z!m"Z"m#Z#dd
l$m%Z%m&Z&m'Z'ddl(m)Z)ddl*m+Z+dgZ,ej-e.�Z/de0fd��YZ1de1fd��YZ2dS(s(Base Command class, and related routinesi(tabsolute_importN(t
cmdoptions(t
PackageFinder(trunning_under_virtualenv(t
PipSession(t
BadCommandtInstallationErrortUninstallationErrortCommandErrortPreviousBuildDirError(tlogging_dictConfig(tConfigOptionParsertUpdatingDefaultsHelpFormatter(tInstallRequirementtparse_requirements(tSUCCESStERRORt
UNKNOWN_ERRORtVIRTUALENV_NOT_FOUNDtPREVIOUS_BUILD_DIR_ERROR(tdeprecationtget_progtnormalize_path(tIndentingFormatter(tpip_version_checktCommandcB@sMeZdZdZeZdZed�Zddd�Z	d�Z
d�ZRS(sext://sys.stdoutsext://sys.stderrcC@s�i|jd6dt�|jfd6t�d6td6|jd6|jd6|d6}t|�|_d	|jj�}t	j
|j|�|_tj
tj|j�}|jj|�dS(
Ntusages%s %stprogt	formattertadd_help_optiontnametdescriptiontisolateds
%s Options(RRRRtFalset__doc__Rtparsert
capitalizetoptparsetOptionGrouptcmd_optsRtmake_option_groupt
general_grouptadd_option_group(tselfR t	parser_kwt
optgroup_nametgen_opts((s3/usr/lib/python2.7/site-packages/pip/basecommand.pyt__init__)s




cC@s�td|jr-ttjj|jd��ndd|dk	rE|n|jd|j�}|j	rr|j	|_
n|jr�|j|_	n|js�|r�|dk	r�|n|j|_n|j
r�i|j
d6|j
d6|_n|j|j_|S(Ntcachethttptretriestinsecure_hoststhttps(Rt	cache_dirRtostpathtjointNoneR2t
trusted_hoststcerttverifytclient_certttimeouttproxytproxiestno_inputtautht	prompting(R+toptionsR2R>tsession((s3/usr/lib/python2.7/site-packages/pip/basecommand.pyt_build_sessionAs -		!	
cC@s|jj|�S(N(R#t
parse_args(R+targs((s3/usr/lib/python2.7/site-packages/pip/basecommand.pyRGesc@s�|j|�\}}|jrW|jdkr6d�n|jdkrNd�qod�n|jrid�nd��}|jr�d}ntidd6td	6iid
d6tjd6d
6d6iitd6dd6d6d6ii�d6dd6|j	dd6d
gd6dd6d6idd6dd6|j	dd6dd6d6idd6dd6|jpTdd6t
d6dd6d6d6i|d6ttddd|jr�dndg��d6d 6t�fd!�d"d#d$d%gD��d&6�tjd d7krtjd(tj�n|jrd)tjd*<n|jr>d+j|j�tjd,<n|jrpt�sptjd-�tjt�qpnz-y)|j ||�}t!|t"�r�|SWn�t#k
r�}tjt$|��tj%d.d/t
�t&St't(t)fk
r}tjt$|��tj%d.d/t
�t*St+k
rP}tjd0|�tj%d.d/t
�t*St,k
r�tjd1�tj%d.d/t
�t*Stjd2d/t
�t-SXWd|j.r�t/|d3t�r�|j0|d4dd5t1d6|j2���}t3|�WdQXnXt4S(8NitWARNINGiRtCRITICALtDEBUGtINFOtversiontdisable_existing_loggerss pip.utils.logging.MaxLevelFilters()tleveltexclude_warningstfilterss%(message)stformattindentt
formatterss(pip.utils.logging.ColorizedStreamHandlertclassitstreamRtconsoletconsole_errorss+pip.utils.logging.BetterRotatingFileHandlers	/dev/nulltfilenametdelaytuser_logthandlerstrootc3@s4|]*}|i�dkr!dndd6fVqdS(RLRRIRKRON(RLR((t.0R(RO(s3/usr/lib/python2.7/site-packages/pip/basecommand.pys	<genexpr>�s
spip._vendortdistlibtrequeststurllib3tloggersis�Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6t1tPIP_NO_INPUTt tPIP_EXISTS_ACTIONs2Could not find an activated virtualenv (required).sException information:texc_infos	ERROR: %ssOperation cancelled by users
Exception:tno_indexR2R>i(ii(5RGtquiettverbosetlogR
R!tloggingRIRtlog_streamstTruetlisttfilterR9tdicttsystversion_infotwarningstwarnRtPython26DeprecationWarningRAR6tenviront
exists_actionR8trequire_venvRtloggertcriticaltexitRtrunt
isinstancetintR	tstrtdebugRRRRRRtKeyboardInterruptRtdisable_pip_version_checktgetattrRFtminR>RR(R+RHRDt
root_leveltstatustexcRE((ROs3/usr/lib/python2.7/site-packages/pip/basecommand.pytmainis�								
	#

				

	
N(sext://sys.stdoutsext://sys.stderr(t__name__t
__module__R9RRR!thiddenRmR/RFRGR�(((s3/usr/lib/python2.7/site-packages/pip/basecommand.pyR#s$	tRequirementCommandcB@s,eZed��Zddddd�ZRS(c
C@s�xS|jD]H}x?t|dtd|d|d|d|�D]}|j|�q;Wq
Wx6|D].}|jtj|d
d|jd|��q]Wx?|jD]4}|jtj	|d|j
d|jd|��q�Wt}	xS|jD]H}x?t|d|d|d|d|�D]}t}	|j|�qWq�W|j
|_
|pK|jpK|	s�i|d6}
|jr�d	t|
d
dj|j��}n
d|
}tj|�nd
S(s?
        Marshal cmd line args into a requirement set.
        t
constrainttfinderRDREtwheel_cacheR tdefault_vcsRs^You must give at least one requirement to %(name)s (maybe you meant "pip %(name)s %(links)s"?)tlinksResLYou must give at least one requirement to %(name)s (see "pip help %(name)s")N(tconstraintsRRntadd_requirementR
t	from_lineR9t
isolated_modet	editablest
from_editableR�R!trequirementstrequire_hashest
find_linksRqR8Rztwarning(trequirement_setRHRDR�RERR�RYtreqtfound_req_in_filetoptstmsg((s3/usr/lib/python2.7/site-packages/pip/basecommand.pytpopulate_requirement_setsF
		

	"cC@s�|jg|j}|jr>tjddj|��g}ntd|jd|jd|d|j	d|j
d|jd	|d
|d|d|d
|�S(sR
        Create a package finder appropriate to this requirement command.
        sIgnoring indexes: %st,R�tformat_controlt
index_urlsR:tallow_all_prereleasestprocess_dependency_linksREtplatformtversionstabitimplementation(t	index_urltextra_index_urlsRhRzR�R8RR�R�R:tpreR�(R+RDRER�tpython_versionsR�R�R�((s3/usr/lib/python2.7/site-packages/pip/basecommand.pyt_build_package_finder:s 							N(R�R�tstaticmethodR�R9R�(((s3/usr/lib/python2.7/site-packages/pip/basecommand.pyR�s8(3R"t
__future__RRlR6RrR%RttpipRt	pip.indexRt
pip.locationsRtpip.downloadRtpip.exceptionsRRRRR	t
pip.compatR
tpip.baseparserRRtpip.reqR
Rtpip.status_codesRRRRRt	pip.utilsRRRtpip.utils.loggingRtpip.utils.outdatedRt__all__t	getLoggerR�RztobjectRR�(((s3/usr/lib/python2.7/site-packages/pip/basecommand.pyt<module>s,((	�

Hacked By AnonymousFox1.0, Coded By AnonymousFox