File "req_uninstall.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyc
File size: 7.5 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


abc@@sddlmZddlZddlZddlZddlmZmZmZddl	m
Z
ddlmZm
Z
mZmZmZddlmZejeZdefdYZd	efd
YZdS(i(tabsolute_importN(tuses_pycachetWINDOWStcache_from_source(tUninstallationError(trmtreetasktis_localtrenamestnormalize_path(t
indent_logtUninstallPathSetcB@sbeZdZdZdZdZdZdZdZe	dZ
dZd	ZRS(
sMA set of file paths to be removed in the uninstallation of a
    requirement.cC@s@t|_t|_i|_||_d|_g|_dS(N(tsettpathst_refusetpthtdisttNonetsave_dirt_moved_paths(tselfR((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyt__init__s			cC@s
t|S(ss
        Return True if the given path is one we are permitted to
        remove/modify, False otherwise.

        (R(Rtpath((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyt
_permittedscC@stjj|\}}tjjt|tjj|}tjj|sUdS|j|rw|jj	|n|j
j	|tjj|ddkrtr|j	t
|ndS(Nis.py(tosRtsplittjoinR	tnormcasetexistsRR
taddRtsplitextRR(RRtheadttail((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyR#s'"cC@skt|}|j|rW||jkr@t||j|<n|j|j|n|jj|dS(N(R	RRtUninstallPthEntriesRR(Rtpth_filetentry((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pytadd_pth6scC@st}x}t|dtD]i}tg|D]@}|j|oi|t|jtjjtjjk^q,s|j	|qqW|S(sCompact a path set to contain the minimal number of paths
        necessary to contain all paths in the set. If /a/path/ and
        /a/path/to/a/file.txt are both in the set, leave only the
        shorter path.tkey(
Rtsortedtlentanyt
startswithtrstripRRtsepR(RR
tshort_pathsRt	shortpath((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pytcompact?s	McC@s5tjj|jtjj|djtjjS(Ni(RRRRt
splitdrivetlstripR+(RR((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyt_stashMs	c	C@s|js#tjd|jjdStjd|jj|jjtVt|j|j}|rsd}n-x|D]}tj|qzWt	dd}|j
rtjdx*|j|j
D]}tj|qWn|dkrtjdd	d
d|_
xJ|D]B}|j|}tjd||jj|t||qWx!|jjD]}|jqgWtjd
|jj|jjnWdQXdS(s[Remove paths in ``self.paths`` with confirmation (unless
        ``auto_confirm`` is True).s7Can't uninstall '%s'. No files were found to uninstall.NsUninstalling %s-%s:tysProceed (y/n)? tns.Not removing or modifying (outside of prefix):tsuffixs
-uninstalltprefixspip-sRemoving file or directory %ssSuccessfully uninstalled %s-%s(R2R3(R
tloggertinfoRtproject_nametversionR
R&R.RRttempfiletmkdtempRR1tdebugRtappendRRtvaluestremove(Rtauto_confirmR
tresponseRtnew_pathR((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyR?Qs@	

	
	

cC@s|jdkr)tjd|jjtStjd|jjx=|jD]2}|j	|}tj
d|t||qIWx!|jj
D]}|jqWdS(s1Rollback the changes previously made by remove().s'Can't roll back %s; was not uninstalledsRolling back uninstall of %ssReplacing %sN(RRR6terrorRR8tFalseR7RR1R<RRR>trollback(RRttmp_pathR((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyRE{s
cC@s5|jdk	r1t|jd|_g|_ndS(s?Remove temporary save dir: rollback will no longer be possible.N(RRRR(R((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pytcommits
	(
t__name__t
__module__t__doc__RRRR$R.R1RDR?RERG(((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyRs							*	R!cB@s,eZdZdZdZdZRS(cC@sGtjj|s%td|n||_t|_d|_dS(Ns.Cannot remove entries from nonexistent file %s(	RRtisfileRtfileRtentriesRt_saved_lines(RR"((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyRs	cC@sXtjj|}trDtjj|drD|jdd}n|jj|dS(Nis\t/(RRRRR/treplaceRMR(RR#((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyRscC@stjd|jt|jd}|j}||_WdQXtd|Drbd}nd}xS|jD]H}y.tjd||j||j	dWqrt
k
rqrXqrWt|jd}|j|WdQXdS(	NsRemoving pth entries from %s:trbcs@s|]}d|kVqdS(s
N((t.0tline((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pys	<genexpr>ss
s
sRemoving entry: %ssutf-8twb(R6R<RLtopent	readlinesRNR(RMR?tencodet
ValueErrort
writelines(RtfhtlinestendlineR#((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyR?s	
cC@sh|jdkr&tjd|jtStjd|jt|jd}|j|jWdQXt	S(Ns.Cannot roll back changes to %s, none were mades!Rolling %s back to previous stateRT(
RNRR6RCRLRDR<RURYtTrue(RRZ((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyREs
(RHRIRRR?RE(((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyR!s			
	(t
__future__RtloggingRR:t
pip.compatRRRtpip.exceptionsRt	pip.utilsRRRRR	tpip.utils.loggingR
t	getLoggerRHR6tobjectRR!(((s9/usr/lib/python2.7/site-packages/pip/req/req_uninstall.pyt<module>s(