AlkantarClanX12

Your IP : 3.141.29.90


Current Path : /proc/self/root/lib/python2.7/site-packages/pip/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/pip/__init__.pyc

�
��abc@@siddlmZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ejdde
�yddlZWne
k
r�ncXejdkr
eedd�dkr
ydd	lmZWne
efk
r�q
Xej�ndd
lmZmZmZddlmZmZddlmZmZdd
lmZmZm Z m!Z!ddl"m#Z#m$Z$ddl%m&Z&m'Z'ddl%m(Z(ddl	m)Z)ddl*Z+e+j,Z,dZ-ej.e/�Z0ejdde)�d�Z1d�Z2d�Z3d�Z4dd�Z6de7fd��YZ8e/dkreej9e6��ndS(i(tabsolute_importN(tDependencyWarningtignoretcategorytdarwintOPENSSL_VERSION_NUMBERi(tsecuretransport(tInstallationErrortCommandErrortPipError(tget_installed_distributionstget_prog(tdeprecationtdist_is_editable(tgitt	mercurialt
subversiontbazaar(tConfigOptionParsertUpdatingDefaultsHelpFormatter(t
get_summariestget_similar_commands(t
commands_dict(tInsecureRequestWarnings9.0.3cC@s�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, zsh or fish).
    tPIP_AUTO_COMPLETENt
COMP_WORDSit
COMP_CWORDtithelpt	uninstallt-t
local_onlyt=s--cs@s"|]}|D]}|Vq
qdS(N((t.0titto((s0/usr/lib/python2.7/site-packages/pip/__init__.pys	<genexpr>�st (tostenvirontsplittintt
IndexErrorRtNonetcreate_main_parsertsystexitt
startswithtlowerR
tTruetkeytappendRtparsertoption_list_allRtoptparset
SUPPRESS_HELPtget_opt_stringtnargst
option_groupstoption_listtjoin(tcwordstcwordtcurrenttcmdtsummarytsubcommandstoptionstwtsubcommand_nameR3t	installedtlctdistt
subcommandtopttxt	prev_optstvtktoptiont	opt_labeltitopts((s0/usr/lib/python2.7/site-packages/pip/__init__.pytautocompleteEs`

"-

	%
	
.114



(0cC@sidd6td6t�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
(tFalseRRRtdisable_interspersed_argsR%tpathtdirnametabspatht__file__t__version__R,tversiont
cmdoptionstmake_option_groupt
general_grouptadd_option_groupR0tmainRR;tdescription(t	parser_kwR3tpip_pkg_dirtgen_optstcommand_summariesRPtjRf((s0/usr/lib/python2.7/site-packages/pip/__init__.pyR+�s$


*
		0cC@st�}|j|�\}}|jrZtjj|j�tjjtj�tj�n|s�|ddkr�t	|�dkr�|j
�tj�n|d}|tkr�t|�}d|g}|r�|j
d|�ntdj|���n|}|j|�||fS(NiRisunknown command "%s"smaybe you meant "%s"s - (R+t
parse_argsR`R,tstdouttwriteR%tlinesepR-tlent
print_helpRRR2RR;tremove(targsR3tgeneral_optionst	args_elsetcmd_nametguesstmsgtcmd_args((s0/usr/lib/python2.7/site-packages/pip/__init__.pyt	parseopts�s&			
)




cC@st}d|krt}n|S(Ns
--isolated(RYR0(Rstisolated((s0/usr/lib/python2.7/site-packages/pip/__init__.pytcheck_isolated�s	cC@s�|dkrtjd}ntj�t�yt|�\}}WnGtk
r�}tjj	d|�tjj	t
j�tjd�nXyt
jt
jd�Wn&t
jk
r�}tjd|�nXt|dt|��}|j|�S(Nis	ERROR: %sRs%Ignoring error %s when setting localeR{(R*R,targvRtinstall_warning_loggerRRRzR	tstderrRnR%RoR-tlocalet	setlocaletLC_ALLtErrortloggertdebugRR|Re(RsRvRytexctetcommand((s0/usr/lib/python2.7/site-packages/pip/__init__.pyRe�s 
tFrozenRequirementcB@sYeZdd�Zejd�Zejd�Zed��Ze	d��Z
d�ZRS(cC@s(||_||_||_||_dS(N(RWtreqteditabletcomments(tselfRWR�R�R�((s0/usr/lib/python2.7/site-packages/pip/__init__.pyt__init__�s			s-r(\d+)$s-(20\d\d\d\d\d\d)$cC@s=tjjtjj|j��}g}ddlm}m}t|�r�|j	|�r�t
}y|||�}Wn)tk
r�}	tj
d|	�d}nX|dkr'tj
d|�|jd�|j�}t}q'nIt}|j�}|j}
t|
�dkr|
dddks5td	|
|f��|
dd}|jj|�}|jj|�}
|ss|
r'|jd
�}|r�|�j||�}n|s�tj
d|�|jd�q'|jd
|�|r�|jd�}nd|
jd�}t
}d|||j|�f}n||j|||�S(Ni(tvcstget_src_requirementsYError 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==s===s5Expected 1 spec with == or ===; specs = %r; dist = %rtsvns(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(s==s===(R%R[tnormcaseR]tlocationtpip.vcsR�R�R
tget_backend_nameR0RR�twarningR*R2tas_requirementRYtspecsRptAssertionErrort_rev_retsearcht_date_retget_backendtget_locationtgrouptegg_nametproject_name(tclsRGtdependency_linksR�R�R�R�R�R�R�R�R`t	ver_matcht
date_matchtsvn_backendtsvn_locationtrev((s0/usr/lib/python2.7/site-packages/pip/__init__.pyt	from_distsf!

	)	

cC@s;|j�}tjd|�}|r7||j� }n|S(Ns
-py\d\.\d$(R�treR�tstart(RGRWtmatch((s0/usr/lib/python2.7/site-packages/pip/__init__.pyR�Is
cC@sF|j}|jrd|}ndjt|j�t|�g�dS(Ns-e %ss
(R�R�R;tlistR�tstr(R�R�((s0/usr/lib/python2.7/site-packages/pip/__init__.pyt__str__Qs		
((t__name__t
__module__R�R�tcompileR�R�tclassmethodR�tstaticmethodR�R�(((s0/usr/lib/python2.7/site-packages/pip/__init__.pyR��sAt__main__(:t
__future__RR�tloggingR%R5twarningsR,R�tpip._vendor.urllib3.exceptionsRtfilterwarningstssltImportErrortplatformtgetattrtpip._vendor.urllib3.contribRtOSErrortinject_into_urllib3tpip.exceptionsRRR	t	pip.utilsR
RRR
R�RRRRtpip.baseparserRRtpip.commandsRRRRtpip.cmdoptionstpipRaR_t	getLoggerR�R�RRR+RzR|R*RetobjectR�R-(((s0/usr/lib/python2.7/site-packages/pip/__init__.pyt<module>sR


"		I		*		[