????

Your IP : 216.73.216.152


Current Path : /usr/lib/python2.7/site-packages/pip/_internal/operations/
Upload File :
Current File : //usr/lib/python2.7/site-packages/pip/_internal/operations/freeze.pyc

�
}�\]c@@s�ddlmZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlm
Z
mZddlmZmZddlmZdd	lmZmZdd
lmZerfddlmZmZmZmZmZmZm Z m!Z!m"Z"ddl#m$Z$dd
l
m%Z%m&Z&e ee"e'e&fe(ee'fZ)nej*e+�Z,dddddde.de.dd�
Z/d�Z0de1fd��YZ2dS(i(tabsolute_importN(tsix(tcanonicalize_name(tRequirementParseError(t
BadCommandtInstallationError(tinstall_req_from_editabletinstall_req_from_line(t
COMMENT_RE(tdist_is_editabletget_installed_distributions(tMYPY_CHECK_RUNNING(	tIteratortOptionaltListt	ContainertSettDicttTupletIterabletUnion(t
WheelCache(tDistributiontRequirementc
c@s�|p	g}d}
|r-tj|�j}
nx|D]}d|Vq4Wi}x�td|dd$d|d|�D]g}
ytj|
�}Wn)tk
r�}tj	d|
|�qonX|r�|j
r�qon|||j<qoW|rwt�}t
jt�}x|D]}t|���}x�|D]�}|j�sd|j�jd�sd|
rU|
|�sd|jd%�r�|j�}||kr|j|�|Vqqn|jd�s�|jd�r|jd�r�|dj�}n|td�j�jd�}t|d|d|�}n*ttjd|�j�d|d|�}|jsmtjd||j��tjd�q|j|kr�||js�tj	d|tjd|�j�|j�q||jj|�qt||j�j�V||j=||jj|�qWWdQXq�WxZtj|�D]I\}}t|�dkr"tj	d|d j t!t|����q"q"Wd!VnxLt!|j"�d"d#��D]/}t#|j�|	kr�t|�j�Vq�q�WdS(&Ns-f %st
local_onlytskipt	user_onlytpathss6Could not generate requirement for distribution %r: %st#s-rs
--requirements-Zs--always-unzips-fs--find-linkss-is--index-urls--pres--trusted-hosts--process-dependency-linkss--extra-index-urls-es
--editableit=tisolatedtwheel_cachetsWSkipping line in requirement file [%s] because it's not clear what it would install: %ss9  (add #egg=PackageName to the URL to avoid this warning)sBRequirement file [%s] contains %s, but package %r is not installedis+Requirement %s included multiple times [%s]s, s7## The following requirements were added by pip freeze:tkeycS@s
|jj�S(N(tnametlower(tx((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pyt<lambda>�s((s-rs
--requirements-Zs--always-unzips-fs--find-linkss-is--index-urls--pres--trusted-hosts--process-dependency-linkss--extra-index-url($tNonetretcompiletsearchR
tFrozenRequirementt	from_distRtloggertwarningteditableR"tsettcollectionstdefaultdicttlisttopentstript
startswithtrstriptaddtlentlstripRRRtsubtinfotappendtstrRt	iteritemstjointsortedtvaluesR(trequirementt
find_linksRRRt
skip_regexRRtexclude_editableRt
skip_matchtlinkt
installationstdisttreqtexctemitted_optionst	req_filest
req_file_pathtreq_filetlinetline_reqR"tfilestinstallation((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pytfreeze%s�




	


	
		

"
"	&cC@s�t|�sd
tgfStjjtjj|j��}ddlm	}m
}|j|�}|d
kr�|j�}t
jd||�dj|�g}|t|fSy|j||j�}Wn�|k
r	|j�}djt|�j|�g}|t|fStk
r9t
jd||j�d
tgfStk
r[}t
jd|�nX|d
k	ru|tgfSt
jd|�d	g}d
t|fS(sk
    Compute and return values (req, editable, comments) for use in
    FrozenRequirement.from_dist().
    i(tvcstRemoteNotFoundErrors1No VCS found for editable requirement "%s" in: %rs/# Editable install with no version control ({})s)# Editable {} install with no remote ({})sPcannot determine version of editable source in %s (%s command not found in path)sYError 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 locationN(R	R&tFalsetostpathtnormcasetabspathtlocationtpip._internal.vcsRURVtget_backend_for_dirtas_requirementR,tdebugtformattTruetget_src_requirementtproject_namettypet__name__RR-R"R(RIR\RURVtvcs_backendRJtcommentsRK((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pytget_requirement_info�sF
!







	R*cB@s,eZdd�Zed��Zd�ZRS(cC@s(||_||_||_||_dS(N(R"RJR.Rh(tselfR"RJR.Rh((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pyt__init__�s			cC@sIt|�\}}}|dkr0|j�}n||j||d|�S(NRh(RiR&R_Rd(tclsRIRJR.Rh((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pyR+�scC@sF|j}|jrd|}ndjt|j�t|�g�dS(Ns-e %ss
(RJR.R?R2RhR=(RjRJ((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pyt__str__�s		
((Rft
__module__RktclassmethodR+Rm(((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pyR*�s	((3t
__future__RR0tloggingRXR'tpip._vendorRtpip._vendor.packaging.utilsRtpip._vendor.pkg_resourcesRtpip._internal.exceptionsRRtpip._internal.req.constructorsRRtpip._internal.req.req_fileRtpip._internal.utils.miscR	R
tpip._internal.utils.typingRttypingRR
RRRRRRRtpip._internal.cacheRRRR=tbooltRequirementInfot	getLoggerRfR,R&RWRTRitobjectR*(((s>/tmp/pip-install-ewDPok/pip/pip/_internal/operations/freeze.pyt<module>s<@({	>