Your IP : 13.58.221.124


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyc

�
�Rec@@s0ddlmZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZer�ddl
mZddlmZmZmZmZmZmZddlmZdd	lmZneje�Zejd
��Zejd��Zde fd
��YZ!dS(i(tabsolute_importN(tcontextlib2(t
TempDirectory(tMYPY_CHECK_RUNNING(t
TracebackType(tDicttIteratortOptionaltSettTypetUnion(tInstallRequirement(tLinkck@s�tj}t�}i}xT|j�D]F\}}y||||<Wntk
r`|||<nX|||<q%Wz	dVWdxO|j�D]A\}}||kr�||=q�t|t�s�t�|||<q�WXdS(N(tostenvirontobjecttitemstKeyErrort
isinstancetstrtAssertionError(tchangesttargettnon_existent_markertsaved_valuestnamet	new_valuetoriginal_value((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pytupdate_env_context_managers 		
	
c	c@s�tjjd�}tj��q}|dkrq|jtdd��j}|jt	d|��t
jd|�nt|��}|VWdQXWdQXdS(NtPIP_REQ_TRACKERtkindsreq-trackers Initialized build tracking at %s(
R
RtgetRt	ExitStacktNonet
enter_contextRtpathRtloggertdebugtRequirementTracker(troottctxttracker((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pytget_requirement_tracker2sR&cB@sYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Ze	j
d��ZRS(cC@s,||_t�|_tjd|j�dS(NsCreated build tracker: %s(t_roottsett_entriesR$R%(tselfR'((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyt__init__Ds	cC@stjd|j�|S(NsEntered build tracker: %s(R$R%R+(R.((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyt	__enter__JscC@s|j�dS(N(tcleanup(R.texc_typetexc_valtexc_tb((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyt__exit__OscC@s4tj|jj��j�}tjj|j|�S(N(	thashlibtsha224turl_without_fragmenttencodet	hexdigestR
R#tjoinR+(R.tlinkthashed((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyt_entry_pathXscC@s�|jst�|j|j�}y%t|��}|j�}WdQXWn+tk
rs}|jtjkr��q�n"Xdj|j|�}t	|��||j
ks�t�t|d��}|jt|��WdQX|j
j
|�tjd||j�dS(s5Add an InstallRequirement to build tracking.
        Ns{} is already being built: {}twsAdded %s to build tracker %r(R<RR>topentreadtIOErrorterrnotENOENTtformattLookupErrorR-twriteRtaddR$R%R+(R.treqt
entry_pathtfptcontentstetmessage((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyRH]s 
cC@sR|jst�tj|j|j��|jj|�tjd||j	�dS(s:Remove an InstallRequirement from build tracking.
        s Removed %s from build tracker %rN(
R<RR
tunlinkR>R-tremoveR$R%R+(R.RI((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyRP~scC@s>x$t|j�D]}|j|�qWtjd|j�dS(NsRemoved build tracker: %r(R,R-RPR$R%R+(R.RI((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyR1�scc@s#|j|�dV|j|�dS(N(RHRP(R.RI((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyttrack�s
(t__name__t
__module__R/R0R5R>RHRPR1t
contextlibtcontextmanagerRQ(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyR&Bs						!		("t
__future__RRTRCR6tloggingR
tpip._vendorRtpip._internal.utils.temp_dirRtpip._internal.utils.typingRttypesRttypingRRRRR	R
tpip._internal.req.req_installRtpip._internal.models.linkRt	getLoggerRRR$RURR*RR&(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/req_tracker.pyt<module>s".

?>