AlkantarClanX12

Your IP : 18.218.2.191


Current Path : /lib/python3.6/site-packages/pip/operations/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/pip/operations/__pycache__/freeze.cpython-36.pyc

3

�PfJ�	@s�ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZeje�Zddddddd	dff	d
d�ZdS)�)�absolute_importN)�InstallRequirement)�
COMMENT_RE)�get_installed_distributions)�
pkg_resources)�canonicalize_name)�RequirementParseErrorFc	cs�|pg}d}	|rtj|�j}	g}
x(tjD]}|jd�r(|
j|jd��q(Wx|D]}d|krP|
j|�qPWx|D]}d|VqpWi}
xXt	|f|d�D]F}yt
jj||
�}Wn$t
k
r�tjd|j�w�YnX||
|j<q�W|�rvt�}�x�|D�]v}t|���b}�xX|D�]N}|j��sL|j�jd��sL|	�r@|	|��sL|jd!��rr|j�}||k�r|j|�|V�q|jd��s�|jd��r�|jd��r�|dd�j�}n|td�d�j�jd�}tj||||d�}ntjtjd|�j�||d�}|j�stjd||j��tjd�nD|j|
k�r@tjd|tjd|�j��nt |
|j�j�V|
|j=�qWWdQRXq�WdVx<t!|
j"�dd�d �D]$}t#|j�|k�r�t |�j�V�q�WdS)"Nzdependency_links.txtz#egg=z-f %s)�
local_only�skip�	user_onlyzCould not parse requirement: %s�#�-r�
--requirement�-Z�--always-unzip�-f�--find-links�-i�--index-url�--pre�--trusted-host�--process-dependency-links�--extra-index-urlz-ez
--editable��=)�default_vcs�isolated�wheel_cache�)rrzWSkipping line in requirement file [%s] because it's not clear what it would install: %sz9  (add #egg=PackageName to the URL to avoid this warning)zDRequirement file [%s] contains %s, but that package is not installedz7## The following requirements were added by pip freeze:cSs
|jj�S)N)�name�lower)�x�r"�/usr/lib/python3.6/freeze.py�<lambda>�szfreeze.<locals>.<lambda>)�key)r
rrrrrrrrrrr)$�re�compile�searchrZworking_setZhas_metadata�extendZget_metadata_lines�appendr�pipZFrozenRequirementZ	from_distr�loggerZwarningZproject_namer�set�open�strip�
startswith�rstrip�add�len�lstriprZ
from_editableZ	from_liner�sub�info�str�sorted�valuesr)ZrequirementZ
find_linksr	rZ
skip_regexrrrr
Z
skip_matchZdependency_linksZdist�linkZ
installationsZreqZemitted_optionsZ
req_file_pathZreq_file�lineZline_reqZinstallationr"r"r#�freezes�






r<)Z
__future__rZloggingr&r+Zpip.reqrZpip.req.req_filerZ	pip.utilsrZpip._vendorrZpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrZ	getLogger�__name__r,r<r"r"r"r#�<module>s