File "basecommand.cpython-34.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python34/lib/python3.4/site-packages/pip/__pycache__/basecommand.cpython-34.pyc
File size: 5.26 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


Re@sUdZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddl
mZddlmZmZmZmZmZddlmZdd	lmZmZdd
lmZmZmZmZmZddl m!Z!dgZ"Gd
dde#Z$dddZ%dddZ&dS)z(Base Command class, and related routinesN)
cmdoptions)running_under_virtualenv)logger)
PipSession)
BadCommandInstallationErrorUninstallationErrorCommandErrorPreviousBuildDirError)StringIO)ConfigOptionParserUpdatingDefaultsHelpFormatter)SUCCESSERROR
UNKNOWN_ERRORVIRTUALENV_NOT_FOUNDPREVIOUS_BUILD_DIR_ERROR)get_progCommandc@s^eZdZdZdZdZddZddZddZd	d
Z	ddZ
dS)
rNFcCsi|jd6dt|jfd6td6dd6|jd6|jd6}t||_d	|jj}tj	|j||_
tjtj
|j}|jj|dS)
Nusagez%s %sprog	formatterFadd_help_optionnamedescriptionz
%s Options)rrrr
__doc__rparser
capitalizeoptparseOptionGroupcmd_optsrmake_option_group
general_groupadd_option_group)self	parser_kw
optgroup_namegen_optsr(*/tmp/pip-ztkk0jow-build/pip/basecommand.py__init__s



zCommand.__init__cCsvt}|jr!|j|_n|jr9|j|_n|jrbi|jd6|jd6|_n|j|j_|S)Nhttphttps)	rcertverifytimeoutproxyproxiesno_inputauth	prompting)r$optionssessionr(r(r)_build_session3s				
zCommand._build_sessioncCsdS)Nr()r$r(r(r)
setup_loggingJszCommand.setup_loggingcCs|jj|S)N)r
parse_args)r$argsr(r(r)r9MszCommand.parse_argscCs|j|\}}d}||j7}||j8}tjd|}g}tj|tjftj|j	f|j
rdt_n|j|j
rdtjd<n|jrdj|jtjd<n|jrtstjdtjtqn|jr6t|jd	}tjtj|fnd}t}d
}y.|j||}t|tru|}nWntk
rtjd}	tjt|	tj dt!d}t"}Yn`t#t$fk
r'tjd}	tjt|	tj dt!d}t%}Ynt&k
r{tjd}	tjt|	tj dt!d}t%}Ynt'k
rtjd}	tjd|	tj dt!t%}Ynft(k
rtjd
tj dt!d}t%}Yn(tjdt!d}t)}YnX|r|j*}
dj|}yt|
d}Wn<t+k
rt,j-dd
}
|
j.}
t|
d}YnXtjd|
|j/||j0n|dk	r|j0n|S)NT1PIP_NO_INPUT PIP_EXISTS_ACTIONz2Could not find an activated virtualenv (required).aFzException information:
%sz	ERROR: %szOperation cancelled by userz
Exception:
%s
wdeletez#Storing debug log for failure in %s)1r9verbosequietrlevel_for_integer
add_consumerssysstdoutDEBUGappendlog_explicit_levelsexplicit_levelsr8r2osenviron
exists_actionjoinrequire_venvrfatalexitrlogopen_logfilerrun
isinstanceintr
exc_infostrinfo
format_excrrrrrr	KeyboardInterruptrlog_fileIOErrortempfileNamedTemporaryFilerwriteclose)r$r:r5levelcomplete_loglog_fprU	store_logstatuselog_file_fntextlog_file_fptempr(r(r)mainQs

	
				
	










	
	


zCommand.main)__name__
__module____qualname__rrhiddenr*r7r8r9rpr(r(r(r)rscCsG|dkrtj}nt}tj|td||jS)Nfile)rIr[r	tracebackprint_exceptiondictgetvalue)r[outr(r(r)r^s
	r^rAcCstjj|}tjj|}tjj|}tjj|sXtj|ntjj|}t||}|r|jddd|jdt	j
dtjdfn|S)zOpen the named log file in append mode.

    If the file already exists, a separator will also be printed to
    the file to separate past activity from current activity.
    z%s
-<z
%s run on %s
rz%c)
rOpath
expanduserabspathdirnameexistsmakedirsopenrdrIargvtimestrftime)filenamemoderrrhr(r(r)rWs*rW)'rrOrIrbrvrrpipr
pip.locationsrpip.logrpip.downloadrpip.exceptionsrrrr	r
Zpip.backwardcompatrpip.baseparserrr
pip.status_codesrrrrrpip.utilr__all__objectrr^rWr(r(r(r)<module>s&((