????

Your IP : 216.73.216.152


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

�
}�\]c@s�ddlmZddlZddlZddlZddlZddlmZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlmZmZddlmZmZmZmZmZddlmZddlm Z m!Z!m"Z"dd	l#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,dd
l-m.Z.m/Z/ej0e1�Z2e3a4e5ed�r�dZ6n9ej7j8d
�r�dZ6nej7dkr�dZ6ndZ6ej9d�Z:e:r$dej;d Z:nde:Z<e6e:Z=ej#j>�j?dd�j?dd�Z@ej9d�ZAeAo�eAj8d�r�eAj?dd�ZAnd�ZBeB�ZA[BejCdejDejEB�ZFejCdejDejEB�ZGejCd�ZHejCd�ZId ZJd!ZKe
jLd"kr*d#�ZMn	d$�ZMd%eNfd&��YZOeO�ZPd'eNfd(��YZQd)�ZReR�ZS[Re3d*�ZTdS(+i����(tunicode_literalsN(tmessage_from_filei(t__version__tDistlibException(t	sysconfigtZipFiletfsdecodet	text_typetfilter(tInstalledDistribution(tMetadatatMETADATA_FILENAMEtWHEEL_METADATA_FILENAME(	tFileOperatortconvert_patht	CSVReadert	CSVWritertCachetcached_propertytget_cache_basetread_exportsttempdir(tNormalizedVersiontUnsupportedVersionErrorupypy_version_infouppujavaujyucliuipucpupy_version_nodotu%s%siupyu-u_u.uSOABIucpython-cCs|dtg}tjd�r+|jd�ntjd�rJ|jd�ntjd�dkro|jd�nd	j|�S(
NucpuPy_DEBUGudu
WITH_PYMALLOCumuPy_UNICODE_SIZEiuuu(t
VER_SUFFIXRtget_config_vartappendtjoin(tparts((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt_derive_abi;suz
(?P<nm>[^-]+)
-(?P<vn>\d+[^-]*)
(-(?P<bn>\d+[^-]*))?
-(?P<py>\w+\d+(\.\w+\d+)*)
-(?P<bi>\w+)
-(?P<ar>\w+(\.\w+)*)
\.whl$
u7
(?P<nm>[^-]+)
-(?P<vn>\d+[^-]*)
(-(?P<bn>\d+[^-]*))?$
s
\s*#![^\r\n]*s^(\s*#!("[^"]+"|\S+))\s+(.*)$s#!pythons	#!pythonwu/cCs|S(N((to((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt<lambda>]scCs|jtjd�S(Nu/(treplacetostsep(R((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyR_stMountercBs8eZd�Zd�Zd�Zdd�Zd�ZRS(cCsi|_i|_dS(N(t
impure_wheelstlibs(tself((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt__init__cs	cCs!||j|<|jj|�dS(N(R$R%tupdate(R&tpathnamet
extensions((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytaddgs
cCsI|jj|�}x0|D](\}}||jkr|j|=qqWdS(N(R$tpopR%(R&R)R*tktv((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytremovekscCs"||jkr|}nd}|S(N(R%tNone(R&tfullnametpathtresult((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytfind_moduleqs	cCs�|tjkrtj|}nx||jkrAtd|��ntj||j|�}||_|jdd�}t|�dkr�|d|_	n|S(Nuunable to find extension for %su.ii(
tsystmodulesR%tImportErrortimptload_dynamict
__loader__trsplittlent__package__(R&R1R3R((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytload_modulexs	N(t__name__t
__module__R'R+R/R0R4R>(((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyR#bs
			tWheelcBseZdZdZdZdeed�Zed��Z	ed��Z
ed��Zed��Z
d�Zed	��Zd
�Zdd�Zd�Zd
�Zd�Zddd�Zd�Zd�Zd�Zd�Zd�Zd�Zed�Zd�Zd�Zdd�ZRS(u@
    Class to build and install from Wheel files (PEP 427).
    iusha256cCs�||_||_d|_tg|_dg|_dg|_tj�|_	|dkr{d|_d|_|j
|_nEtj|�}|r�|jd�}|d|_|djdd	�|_|d
|_|j
|_n�tjj|�\}}tj|�}|s!td|��n|r?tjj|�|_	n||_|jd�}|d|_|d|_|d
|_|djd
�|_|djd
�|_|djd
�|_dS(uB
        Initialise an instance using a (valid) filename.
        uunoneuanyudummyu0.1unmuvnu_u-ubnuInvalid name or filename: %rupyu.ubiuarN(tsignt
should_verifytbuildvertPYVERtpyvertabitarchR!tgetcwdtdirnameR0tnametversiontfilenamet	_filenametNAME_VERSION_REtmatcht	groupdictR R2tsplittFILENAME_RERtabspath(R&RMRBtverifytmtinfoRJ((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyR'�sB					


	


cCs�|jrd|j}nd}dj|j�}dj|j�}dj|j�}|jjdd�}d|j|||||fS(uJ
        Build and return a filename from the various components.
        u-uu.u_u%s-%s%s-%s-%s-%s.whl(RDRRFRGRHRLR RK(R&RDRFRGRHRL((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyRM�s	cCs+tjj|j|j�}tjj|�S(N(R!R2RRJRMtisfile(R&R2((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytexists�sccsNxG|jD]<}x3|jD](}x|jD]}|||fVq*WqWq
WdS(N(RFRGRH(R&RFRGRH((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyttags�scCsztjj|j|j�}d|j|jf}d|}tjd�}t	|d��}|j
|�}|djdd�}tg|D]}t
|�^q��}	|	dkr�ttdg}
nttg}
d}xu|
D]m}yStj||�}
|j|
��,}||�}td	|�}|r/PnWdQXWq�tk
rIq�Xq�W|sptd
dj|
���nWdQX|S(
Nu%s-%su%s.dist-infouutf-8uru
Wheel-Versionu.iuMETADATAtfileobju8Invalid wheel, because metadata is missing: looked in %su, (ii(R!R2RRJRMRKRLtcodecst	getreaderRtget_wheel_metadataRRttupletintRRR0t	posixpathtopenR
tKeyErrort
ValueError(R&R)tname_vertinfo_dirtwrappertzftwheel_metadatatwvtitfile_versiontfnsR3tfntmetadata_filenametbftwf((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytmetadata�s4
%

cCsud|j|jf}d|}tj|d�}|j|��(}tjd�|�}t|�}WdQXt|�S(Nu%s-%su%s.dist-infouWHEELuutf-8(	RKRLRaRRbR\R]Rtdict(R&RhReRfRoRpRqtmessage((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyR^�s
cCsFtjj|j|j�}t|d��}|j|�}WdQX|S(Nur(R!R2RRJRMRR^(R&R)RhR3((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyRW�scCstj|�}|r�|j�}|| ||}}d|j�krQt}nt}tj|�}|r�d|j�d}nd}||}||}ns|jd�}|jd�}	|dks�||	kr�d}
n&|||d!d	kr�d	}
nd}
t|
|}|S(
Ntpythonwt i����ts
s
iis
(	t
SHEBANG_RERPtendtlowertSHEBANG_PYTHONWtSHEBANG_PYTHONtSHEBANG_DETAIL_REtgroupstfind(R&tdataRVRytshebangtdata_after_shebangtshebang_pythontargstcrtlftterm((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytprocess_shebangs,	

		cCs�|dkr|j}nytt|�}Wn!tk
rNtd|��nX||�j�}tj|�j	d�j
d�}||fS(NuUnsupported hash algorithm: %rt=uascii(R0t	hash_kindtgetattrthashlibtAttributeErrorRtdigesttbase64turlsafe_b64encodetrstriptdecode(R&R�R�thasherR3((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytget_hash"s
!cCs~t|�}ttjj||��}|j|ddf�|j�t|��%}x|D]}|j|�q]WWdQXdS(Nu(	tlisttto_posixR!R2trelpathRtsortRtwriterow(R&trecordstrecord_pathtbasetptwritertrow((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytwrite_record-s

cCs�g}|\}}tt|j�}xs|D]k\}}	t|	d��}
|
j�}WdQXd|j|�}tjj|	�}
|j	|||
f�q+Wtjj
|d�}	|j||	|�ttjj
|d��}|j	||	f�dS(Nurbu%s=%suRECORD(
R�R�R�RbtreadR�R!R2tgetsizeRRR�R�(R&RWtlibdirt
archive_pathsR�tdistinfoRfR�tapR�tfR�R�tsize((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt
write_records6sc	Cs\t|dtj��A}x7|D]/\}}tjd||�|j||�qWWdQXdS(NuwuWrote %s to %s in wheel(RtzipfiletZIP_DEFLATEDtloggertdebugtwrite(R&R)R�RhR�R�((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt	build_zipFsc!s�|dkri}ntt�fd�d$��d}|dkrgd}tg}tg}tg}n!d}tg}dg}dg}|jd	|�|_|jd
|�|_	|jd|�|_
�|}	d|j|jf}
d
|
}d|
}g}
xKd%D]C}|�kr qn�|}t
jj|�rxt
j|�D]�\}}}x�|D]�}tt
jj||��}t
jj||�}tt
jj|||��}|
j||f�|dkrb|jd�rbt|d��}|j�}WdQX|j|�}t|d��}|j|�WdQXqbqbWqLWqqW|	}d}xt
j|�D]�\}}}||kr�xUt|�D]G\}}t|�}|jd�r�t
jj||�}||=Pq�q�W|s�td��nxl|D]d}t|�jd&�rq�nt
jj||�}tt
jj||��}|
j||f�q�WqkWt
j|�}xf|D]^}|d'kr|tt
jj||��}tt
jj||��}|
j||f�q|q|Wd|p�|jdtd |g}x4|j D])\}}}|jd!|||f�qWt
jj|d�}t|d"��}|jd#j|��WdQXtt
jj|d��}|
j||f�|j!||f|	|
�t
jj|j"|j#�} |j$| |
�| S((u�
        Build a wheel from files in specified paths, and use any specified tags
        when determining the name of the wheel.
        cs
|�kS(N((R(tpaths(s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyRTsupurelibuplatlibiufalseutrueunoneuanyupyveruabiuarchu%s-%su%s.datau%s.dist-infoudatauheadersuscriptsu.exeurbNuwbu
.dist-infou(.dist-info directory expected, not foundu.pycu.pyouRECORDu	INSTALLERuSHAREDuWHEELuWheel-Version: %d.%duGenerator: distlib %suRoot-Is-Purelib: %su
Tag: %s-%s-%suwu
(upurelibuplatlib(udatauheadersuscripts(u.pycu.pyo(uRECORDu	INSTALLERuSHAREDuWHEEL(%R0R�RtIMPVERtABItARCHREtgetRFRGRHRKRLR!R2tisdirtwalkRRR�R�RtendswithRbR�R�R�t	enumeratetAssertionErrortlistdirt
wheel_versionRRZR�RJRMR�(!R&R�RZR�tlibkeytis_puret
default_pyvertdefault_abitdefault_archR�Retdata_dirRfR�tkeyR2troottdirstfilesRnR�trpR�R�R�R�RktdnRiRFRGRHR)((R�s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytbuildLs�	"					





%


cCs
|jd�S(ul
        Determine whether an archive entry should be skipped when verifying
        or installing.
        u/u/RECORD.jws(u/u/RECORD.jws(R�(R&tarcname((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt
skip_entry�scDKs�	|j}|jd�}|jdt�}|jdt�}tjj|j|j�}d|j|j	f}	d|	}
d|	}t
j|t�}t
j|d�}
t
j|d�}tj
d	�}t|d
���}|j|
��}||�}t|�}WdQX|djd
d�}tg|D]}t|�^q(�}||jkrk|rk||j|�n|ddkr�|d}n
|d}i}|j|��D}td|��,}x"|D]}|d}|||<q�WWdQXWdQXt
j|
d�}t
j|d�}t
j|
dd�}td|�} t| _tj}!g}"tj�}#|#|_d|_z0y�x�|j �D]�}$|$j}%t!|%t"�r�|%}&n|%j#d	�}&|j$|&�r�qn||&}|dr
t%|$j&�|dkr
t'd|&��n|dr�|djdd�\}'}(|j|%��}|j(�})WdQX|j)|)|'�\}*}+|+|(kr�t'd|%��q�n|r�|&j*||f�r�t+j,d|&�qn|&j*|�o�|&j-d�},|&j*|�r*|&jdd�\}*}-}.tjj||-t.|.��}/n3|&|
|fkrBqntjj|t.|&��}/|,so|j|%��}| j/||/�WdQX|"j0|/�|r|drt|/d��J}|j(�})|j)|)|'�\}*}0|0|+kr�t'd |/��nWdQXn|!r|/j-d!�ry&| j1|/d"|�}1|"j0|1�Wqlt2k
rht+j3d#d$t�qlXqqtjj4t.|%��}2tjj|#|2�}3|j|%��}| j/||3�WdQXtjj|/�\}4}2|4|_|j5|2�}5| j6|5�|"j7|5�qW|r.t+j,d%�d}6n:d}7|j8d}|d&krHt
j|d'�}8y�|j|8��}t9|�}9WdQXi}7x�d9D]�}:d*|:};|;|9kr�i|7d+|:<}<x[|9|;j:�D]F}=d,|=j;|=j<f}>|=j=r|>d-|=j=7}>n|>|<|=j<q�Wq�q�WWq�t2k
rDt+j3d.�q�XnyyX|j|��C}||�}t>j?|�jd/�}7|7r�|7jd0�}7nWdQXWnt2k
r�t+j3d1�nX|7r�|7jd2i�}?|7jd3i�}@|?s�|@r�|jdd�}Atjj@|A�s*tAd4��n|A|_xF|?jB�D]8\};}=d5|;|=f}B|j5|B�}5| j6|5�q@W|@r�itd)6}CxL|@jB�D];\};}=d5|;|=f}B|j5|B|C�}5| j6|5�q�Wq�q�ntjj||�}tC|�}6tD|�}|d=|d=||d6<|6jE||�}|rQ	|"j0|�n|6jF|"|d7|�|6SWn+t2k
r�	t+jGd8�| jH��nXWdtIjJ|#�XWdQXdS(:u~
        Install a wheel to the specified paths. If kwarg ``warner`` is
        specified, it should be a callable, which will be called with two
        tuples indicating the wheel version of this software and the wheel
        version in the file, if there is a discrepancy in the versions.
        This can be used to issue any warnings to raise any exceptions.
        If kwarg ``lib_only`` is True, only the purelib/platlib files are
        installed, and the headers, scripts, data and dist-info metadata are
        not written. If kwarg ``bytecode_hashed_invalidation`` is True, written
        bytecode will try to use file-hash based invalidation (PEP-552) on
        supported interpreter versions (CPython 2.7+).

        The return value is a :class:`InstalledDistribution` instance unless
        ``options.lib_only`` is True, in which case the return value is ``None``.
        uwarnerulib_onlyubytecode_hashed_invalidationu%s-%su%s.datau%s.dist-infouWHEELuRECORDuutf-8urNu
Wheel-Versionu.iuRoot-Is-Purelibutrueupurelibuplatlibtstreamiuuscriptstdry_runiusize mismatch for %su=udigest mismatch for %sulib_only: skipping %su.exeu/urbudigest mismatch on write for %su.pythashed_invalidationuByte-compilation failedtexc_infoulib_only: returning Noneu1.0uentry_points.txtuconsoleuguiu
%s_scriptsuwrap_%su%s:%su %suAUnable to read legacy script metadata, so cannot generate scriptsu
extensionsupython.commandsu8Unable to read JSON metadata, so cannot generate scriptsuwrap_consoleuwrap_guiuValid script path not specifiedu%s = %sulibuprefixuinstallation failed.(uconsoleugui(KR�R�tFalseR!R2RRJRMRKRLRaRR\R]RRbRRRR_R`R�RR
tTruetrecordR5tdont_write_bytecodettempfiletmkdtempt
source_dirR0t
target_dirtinfolistt
isinstanceRR�R�tstrt	file_sizeRR�R�t
startswithR�R�R�Rtcopy_streamRtbyte_compilet	Exceptiontwarningtbasenametmaketset_executable_modetextendRWRtvaluestprefixtsuffixtflagstjsontloadR�RdtitemsR	Rstwrite_shared_locationstwrite_installed_filest	exceptiontrollbacktshutiltrmtree(DR&R�tmakertkwargsR�twarnertlib_onlytbc_hashed_invalidationR)ReR�Rft
metadata_nametwheel_metadata_nametrecord_nameRgRhtbwfRqRtRjRkRlR�R�RptreaderR�R�tdata_pfxtinfo_pfxt
script_pfxtfileoptbctoutfilestworkdirtzinfoR�t	u_arcnametkindtvalueR�t_R�t	is_scripttwhereR�toutfilet	newdigesttpycRntworknameR�t	filenamestdisttcommandsteptepdataR�R-tdR.tstconsole_scriptstgui_scriptst
script_dirtscripttoptions((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytinstall�sH	

%



	
				
#

"
	
	

	


	

	




cCsGtdkrCtjjt�td�tjd �}t	|�antS(Nudylib-cachei(
tcacheR0R!R2RRR�R5RLR(R&R�((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt_get_dylib_cache�s
c
Cs�tjj|j|j�}d|j|jf}d|}tj|d�}tj	d�}g}t
|d��w}y\|j|��G}||�}	tj
|	�}
|j�}|j|�}tjj|j|�}
tjj|
�s�tj|
�nx�|
j�D]�\}}tjj|
t|��}tjj|�sHt}nQtj|�j}tjj|�}|j|�}tj|j�}||k}|r�|j||
�n|j||f�qWWdQXWntk
r�nXWdQX|S(Nu%s-%su%s.dist-infou
EXTENSIONSuutf-8ur( R!R2RRJRMRKRLRaR\R]RRbR�R�Rt
prefix_to_dirR�R�tmakedirsR�RRYR�tstattst_mtimetdatetimet
fromtimestamptgetinfot	date_timetextractRRc(R&R)ReRfR�RgR3RhRpRqR*RR�t
cache_baseRKR�tdestR$t	file_timeRWt
wheel_time((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt_get_extensions�s>
	!

cCs
t|�S(uM
        Determine if a wheel is compatible with the running system.
        (t
is_compatible(R&((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyR*�scCstS(uP
        Determine if a wheel is asserted as mountable by its metadata.
        (R�(R&((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytis_mountable�scCs
tjjtjj|j|j��}|j�sLd|}t|��n|j�sqd|}t|��n|t	jkr�t
jd|�ns|r�t	jj|�nt	jj
d|�|j�}|rtt	jkr�t	jjt�ntj||�ndS(Nu)Wheel %s not compatible with this Python.u$Wheel %s is marked as not mountable.u%s already in pathi(R!R2RTRRJRMR*RR+R5R�R�RtinsertR)t_hookt	meta_pathR+(R&RR)tmsgR*((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytmount�s"'

cCs�tjjtjj|j|j��}|tjkrItjd|�n]tjj	|�|t
jkrxt
j	|�nt
js�t
tjkr�tjj	t
�q�ndS(Nu%s not in path(
R!R2RTRRJRMR5R�R�R/R-R$R.(R&R)((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytunmount�s'	cCs�tjj|j|j�}d|j|jf}d|}d|}tj|t�}tj|d�}tj|d�}t	j
d�}t|d��}	|	j|��}
||
�}t
|�}WdQX|djd	d
�}
tg|
D]}t|�^q��}i}|	j|��D}td|��,}x"|D]}|d}|||<q8WWdQXWdQXxK|	j�D]=}|j}t|t�r�|}n|jd�}|jd
�}d|kr�td|��n|j|�r�qon||}|dr(t|j�|dkr(td|��n|d
ro|d
jdd
�\}}|	j|��}|j�}WdQX|j||�\}}||kr�td|��q�qoqoWWdQXdS(Nu%s-%su%s.datau%s.dist-infouWHEELuRECORDuutf-8uru
Wheel-Versionu.iR�iu/u..uinvalid entry in wheel: %riusize mismatch for %su=udigest mismatch for %s(R!R2RRJRMRKRLRaRR\R]RRbRRRR_R`RR�R�RR�RR�R�R�R�R�(R&R)ReR�RfR�R�R�RgRhR�RqRtRjRkRlR�RpR�R�R�RR�RRRR�RR�((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyRUsV

%

		

#

c
Ks�d�}d�}tjj|j|j�}d|j|jf}d|}tj|d�}	t��(}
t	|d���}i}x�|j
�D]�}
|
j}t|t�r�|}n|j
d�}||	kr�q�nd|kr�td	|��n|j|
|
�tjj|
t|��}|||<q�WWd
QX|||�\}}|||�}|r�|||�\}}|r�||kr�|||�n|d
kr�tjddd
dd|
�\}}tj|�n=tjj|�s�td|��ntjj||j�}t|j��}tjj|
|�}||f}|j||
|�|j||�|d
kr�tj||�q�nWd
QX|S(u�
        Update the contents of a wheel in a generic way. The modifier should
        be a callable which expects a dictionary argument: its keys are
        archive-entry paths, and its values are absolute filesystem paths
        where the contents the corresponding archive entries can be found. The
        modifier is free to change the contents of the files pointed to, add
        new entries and remove entries, before returning. This method will
        extract the entire contents of the wheel to a temporary location, call
        the modifier, and then use the passed (and possibly updated)
        dictionary to write a new wheel. If ``dest_dir`` is specified, the new
        wheel is written there -- otherwise, the original wheel is overwritten.

        The modifier should return True if it updated the wheel, else False.
        This method returns the same value the modifier returns.
        cSshd}}d|tf}||kr3d|}n||kr^||}td|�j}n||fS(Nu%s/%su%s/PKG-INFOR2(R0RR
RL(tpath_mapRfRLR2R�((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytget_versionKs


c	Ss'd}y�t|�}|jd�}|dkr=d|}ngg||djd�D]}t|�^qU}|dcd7<d|| djd�|D��f}Wn!tk
r�tjd	|�nX|r#t	d
|�}||_
|jt�}|j
d
|d|�tjd||�ndS(
Nu-iu%s+1iu.i����u%s+%scss|]}t|�VqdS(N(R�(t.0Rk((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pys	<genexpr>`su0Cannot update non-compliant (PEP-440) version %rR2tlegacyuVersion updated from %r to %r(R0RRRRR`RRR�R�R
RLR�RR�(	RLR2tupdatedR.RkRRtmdR5((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytupdate_versionUs(
0
!
		u%s-%su%s.dist-infouRECORDuruutf-8u..uinvalid entry in wheel: %rNR�u.whlR�u
wheel-update-tdiruNot a directory: %r(R!R2RRJRMRKRLRaRRR�R�RR�RR$RR0R�tmkstemptcloseR�R�R�R�R�R�tcopyfile(R&tmodifiertdest_dirR�R3R8R)ReRfR�RRhR2RR�RR2toriginal_versionRtmodifiedtcurrent_versiontfdtnewpathR�R�RW((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyR(:sX	
	
		
(iiN( R?R@t__doc__R�R�R0R�R'tpropertyRMRYRZRRrR^RWR�R�R�R�R�R�R�RRR)R*R+R0R1RUR((((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyRA�s4)							h		�			"				8cCs�tg}td}xGttjdddd�D](}|jdj|t|�g��q1Wg}xLtj�D]>\}}}|j	d�rp|j|j
dd�d�qpqpW|j�tdkr�|j
dt�n|jd�g}tg}tjd	kr=tjd
t�}|r=|j�\}	}}}
t|�}|
g}|
dkrg|jd
�n|
dkr�|jd�n|
dkr�|jd�n|
dkr�|jd�n|
dkr�|jd�nx`|dkr6x@|D]8}d|	|||f}
|
tkr�|j|
�q�q�W|d8}q�Wq=nxH|D]@}x7|D]/}
|jdjt|df�||
f�qQWqDWxwt|�D]i\}}|jdjt|f�ddf�|dkr�|jdjt|df�ddf�q�q�Wxwt|�D]i\}}|jdjd|f�ddf�|dkr|jdjd|df�ddf�qqWt|�S(uG
    Return (pyver, abi, arch) tuples compatible with this Python.
    iii����uu.abiu.iunoneudarwinu(\w+)_(\d+)_(\d+)_(\w+)$ui386uppcufatux86_64ufat3uppc64ufat64uintelu	universalu%s_%s_%s_%suanyupy(ui386uppc(ui386uppcux86_64(uppc64ux86_64(ui386ux86_64(ui386ux86_64uinteluppcuppc64(RtrangeR5tversion_infoRRR�R8tget_suffixesR�RRR�R�R,R�tplatformtreRPR~R`t
IMP_PREFIXR�tset(tversionstmajortminortabisR�RR3tarchesRVRKRHtmatchesRPRRGRkRL((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pytcompatible_tags�s`	
$&$

		


1%0%0cCs�t|t�st|�}nt}|dkr9t}nxN|D]F\}}}||jkr@||jkr@||jkr@t}Pq@q@W|S(N(	R�RAR�R0tCOMPATIBLE_TAGSRFRGRHR�(twheelRZR3tverRGRH((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyR*�s	-(Ut
__future__RR�R\R tdistutils.utilt	distutilstemailRR�R8R�tloggingR!RaRJR�R5R�R�RwRRtcompatRRRRRtdatabaseR	RrR
RRtutilR
RRRRRRRRRLRRt	getLoggerR?R�R0RthasattrRKRIR�RRRGRER�tget_platformR R�R�Rtcompilet
IGNORECASEtVERBOSERSRORxR}R|R{R"R�tobjectR#R-RARSRTR*(((s8/tmp/pip-install-ewDPok/pip/pip/_vendor/distlib/wheel.pyt<module>s�(@			

'				#	���	>