ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/
Upload File :
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pyo

�
Bu�_c
@@s�ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZmZddlmZdd	lmZmZdd
lmZmZddlmZerpddlmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$dd
l%m&Z&ddl	m'Z'm(Z(e"ee$e)e(fe*ee)fZ+nej,e-�Z.dde0e0de0de0dd�	Z1d�Z2de3fd��YZ4dS(i(tabsolute_importN(tsix(tcanonicalize_name(tRequirementParseError(t
BadCommandtInstallationError(tinstall_req_from_editabletinstall_req_from_line(t
COMMENT_RE(t%direct_url_as_pep440_direct_referencetdist_get_direct_url(tdist_is_editabletget_installed_distributions(tMYPY_CHECK_RUNNING(	tIteratortOptionaltListt	ContainertSettDicttTupletIterabletUnion(t
WheelCache(tDistributiontRequirementc	c@s�|p	g}x|D]}	dj|	�VqWi}
x�td|dd"d|d|�D]g}ytj|�}Wn)tk
r�}
tjd||
�qSnX|r�|jr�qSn||
|j<qSW|rCt	�}t
jt�}x�|D]�}t
|���}x�|D]�}|j�s6|j�jd�s6|jd#�ri|j�}||kr�|j|�|Vq�q�n|jd�s�|jd�r�|jd�r�|dj�}n|td�j�jd�}t|d|�}n$ttjd|�j�d|�}|js3tjd||j��tjd�q�t|j�}||
kr�||js�tjd|tjd|�j�|j�q�||jj|�q�t|
|�j�V|
|=||jj|�q�WWdQXq�WxZtj|�D]I\}}t|�dkr�tjd|djt t	|����q�q�WdVnxFt |
j!�d d!��D])}|j|kr_t|�j�Vq_q_WdS($Ns-f {}t
local_onlytskipt	user_onlytpathss6Could not generate requirement for distribution %r: %st#s-rs
--requirements-fs--find-linkss-is--index-urls--pres--trusted-hosts--process-dependency-linkss--extra-index-urls
--use-features-es
--editableit=tisolatedtsWSkipping 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((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pyt<lambda>�s((s-rs
--requirements-fs--find-linkss-is--index-urls--pres--trusted-hosts--process-dependency-linkss--extra-index-urls
--use-feature("tformatRtFrozenRequirementt	from_distRtloggertwarningteditabletcanonical_nametsettcollectionstdefaultdicttlisttopentstript
startswithtrstriptaddtlentlstripRRRtsubR#tinfoRtappendtstrRt	iteritemstjointsortedtvalues(trequirementt
find_linksRRRR twheel_cachetexclude_editableRtlinkt
installationstdisttreqtexctemitted_optionst	req_filest
req_file_pathtreq_filetlinetline_reqtline_req_canonical_nameR#tfilestinstallation((sP/opt/alt/python36/lib/python3.6/site-packages/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(RtNonetFalsetostpathtnormcasetabspathtlocationtpip._internal.vcsRTRUtget_backend_for_dirtas_requirementR*tdebugR'tTruetget_src_requirementtproject_namettypet__name__RR+R#R(RGR\RTRUtvcs_backendRHtcommentsRI((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pytget_requirement_info�sF
!







	R(cB@s,eZdd�Zed��Zd�ZRS(cC@s7||_t|�|_||_||_||_dS(N(R#RR-RHR,Rg(tselfR#RHR,Rg((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pyt__init__�s
			cC@s�t|�\}}}|dkrX|rXt|�}|rXt||j�}g}qXn|dkrs|j�}n||j||d|�S(NRg(RhRVR
R	RcR_(tclsRGRHR,Rgt
direct_url((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pyR)�scC@sK|j}|jr$dj|�}ndjt|j�t|�g�dS(Ns-e {}s
(RHR,R'R>R1RgR<(RiRH((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pyt__str__s		((Ret
__module__RjtclassmethodR)Rm(((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pyR(�s((5t
__future__RR/tloggingRXtpip._vendorRtpip._vendor.packaging.utilsRtpip._vendor.pkg_resourcesRtpip._internal.exceptionsRRtpip._internal.req.constructorsRRtpip._internal.req.req_fileRt&pip._internal.utils.direct_url_helpersR	R
tpip._internal.utils.miscRRtpip._internal.utils.typingR
ttypingRRRRRRRRRtpip._internal.cacheRRRR<tbooltRequirementInfot	getLoggerReR*RVRWRSRhtobjectR((((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/freeze.pyt<module>s:@(|	>

Zerion Mini Shell 1.0