ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyc

�
�2{Yc@sYddlZddlZddlZddlZddlmZmZmZddlm	Z	ddl
mZmZddl
mZmZmZmZddlmZmZddlmZmZmZddlZejZdZd	�Zd
�Zd�Zdd�Z!d
�Z"de#fd��YZ$e%dkrUe!�Z&e&rUej&e&�qUndS(i����N(tInstallationErrortCommandErrortPipError(tlogger(tget_installed_distributionstget_prog(tgitt	mercurialt
subversiontbazaar(tConfigOptionParsertUpdatingDefaultsHelpFormatter(tcommandst
get_summariestget_similar_commandss1.5.6cCs�dtjkrdStjdj�d}ttjd�}y||d}Wntk
rhd}nXgt�D]\}}|^qs}g}y-g|D]}||kr�|^q�d}Wntk
r�d}nXt�}	|r�|dkrtj	d�n|d	kr�|j
d
�r�g}
|j�}xOtdt
�D]>}|jj
|�rA|j|dkrA|
j|j�qAqAW|
r�x|
D]}|GHq�Wtj	d�q�nt|�}
|g|
jjD]-}|jtjkr�|j�|jf^q�7}g|d|d!D]}|jd�d^q}g|D]$\}}||kr;||f^q;}g|D]'\}}|j
|�rl||f^ql}x�|D],}|d}|dr�|d7}n|GHq�Wn�|j
d
�s�|j
d
�rhg|	jD]}|j^q�}|j|	j�d�|D�}|g|D]$}|jtjkr:|j�^q:7}ndjg|D]}|j
|�ru|^qu�GHtj	d�dS(s�Command and option completion for the main option parser (and options)
    and its subcommands (and options).

    Enable by sourcing one of the completion shell scripts (bash or zsh).
    tPIP_AUTO_COMPLETENt
COMP_WORDSit
COMP_CWORDtithelpt	uninstallt-t
local_onlyt=s--css"|]}|D]}|Vq
qdS(N((t.0titto((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pys	<genexpr>Xst (tostenvirontsplittintt
IndexErrorR
tNonetcreate_main_parsertsystexitt
startswithtlowerRtTruetkeytappendRtparsertoption_list_allRtoptparset
SUPPRESS_HELPtget_opt_stringtnargst
option_groupstoption_listtjoin(tcwordstcwordtcurrenttcmdtsummarytsubcommandstoptionstwtsubcommand_nameR*t	installedtlctdistt
subcommandtopttxt	prev_optstvtktoptiont	opt_labeltitopts((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pytautocompletes`

"-

	%
	
.114



(0cCsidd6td6t�d6dd6t�d6}t|�}|j�tjjtjjtjjt	���}dt
|tjd	 f|_t
jt
j|�}|j|�t|_t�}d
gg|D]\}}d||f^q�}dj|�|_|S(
Ns
%prog <command> [options]tusagetadd_help_optiont	formattertglobaltnametprogspip %s from %s (python %s)iRs%-27s %ss
(tFalseRRR
tdisable_interspersed_argsRtpathtdirnametabspatht__file__t__version__R#tversiont
cmdoptionstmake_option_groupt
general_grouptadd_option_groupR'tmainR
R2tdescription(t	parser_kwR*tpip_pkg_dirtgen_optstcommand_summariesRGtjR]((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyR"as$


*
		0cCs)t�}|j|�\}}|jrZtjj|j�tjjtj�tj�n|s�|ddkr�t	|�dkr�|j
�tj�n|dj�}|}|j|dj��|t
krt|�}d|g}|r|jd|�ntdj|���n||fS(NiRisunknown command "%s"smaybe you meant "%s"s - (R"t
parse_argsRWR#tstdouttwriteRtlinesepR$tlent
print_helpR&tremoveRRR)RR2(targsR*tgeneral_optionst	args_elsetcmd_nametcmd_argstguesstmsg((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyt	parseoptss&			
)


cCs�|dkrtjd}nt�yt|�\}}WnUtk
r�tj�d}tjjd|�tjjt	j
�tjd�nXt|�}|j
|�S(Nis	ERROR: %s(R!R#targvRIRqRtexc_infotstderrReRRfR$RR\(tinitial_argsRmRntetcommand((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyR\�s

cCsYdg}yddl}Wntk
r9|jd�nXtddg|tjd�S(sI
    Bootstrapping function to be called from install-pip.py script.
    tpipi����Nt
setuptoolstinstalls	--upgradei(RytImportErrorR)R\R#Rr(tpkgsRy((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyt	bootstrap�s	
tFrozenRequirementcBs\eZdd�Zejd�Zejd�Zeed��Z	e
d��Zd�ZRS(cCs(||_||_||_||_dS(N(RNtreqteditabletcomments(tselfRNRR�R�((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyt__init__�s			s-r(\d+)$s-(20\d\d\d\d\d\d)$cCs5tjjtjj|j��}g}ddlm}m}|j|�r�t	}y||||�}	Wn8t
k
r�tj�d}
t
jd|
�d}	nX|	dkrt
jd|�|jd�|j�}	t}qn:t}|j�}	|	j}t|�dkr&|dddks,t�|dd}|jj|�}
|jj|�}|
sj|r|jd	�}|r�|�j||�}n|s�t
jd
|	�|jd�q|jd|	�|
r�|
jd�}nd
|jd�}t	}d|||j|�f}	n||j|	||�S(Ni����(tvcstget_src_requirementisYError when trying to get requirement for VCS system %s, falling back to uneditable formats-Could not determine repository location of %ss-## !! Could not determine repository locationis==tsvns(Warning: cannot find svn location for %ssF## FIXME: could not find svn URL in dependency_links for this package:s3# Installing as editable to satisfy requirement %s:s{%s}s%s@%s#egg=%s(RRRtnormcaseRTtlocationtpip.vcsR�R�tget_backend_nameR'RR#RsRtwarnR!R)tas_requirementRPtspecsRgtAssertionErrort_rev_retsearcht_date_retget_backendtget_locationtgrouptegg_nametproject_name(tclsR>tdependency_linkst	find_tagsR�R�R�R�R�RtexR�RWt	ver_matcht
date_matchtsvn_backendtsvn_locationtrev((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyt	from_dist�sN!


	,	cCs;|j�}tjd|�}|r7||j� }n|S(Ns
-py\d\.\d$(R�treR�tstart(R>RNtmatch((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyR�s
cCsF|j}|jrd|}ndjt|j�t|�g�dS(Ns-e %ss
(RR�R2tlistR�tstr(R�R((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyt__str__
s		
((
t__name__t
__module__R�R�tcompileR�R�tclassmethodRPR�tstaticmethodR�R�(((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyR~�s,t__main__('RR,R#R�tpip.exceptionsRRRtpip.logRtpip.utilRRR�RRRR	tpip.baseparserR
Rtpip.commandsRR
Rtpip.cmdoptionsRxRXRVRIR"RqR!R\R}tobjectR~R�R$(((s=/opt/alt/python33/lib/python3.3/site-packages/pip/__init__.pyt<module>s,"		I		*	G	

Zerion Mini Shell 1.0