HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-37.pyc
B

L��gX&�@s(ddlZddlZddlZddlmZmZmZmZmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZmZddlmZmZddlmZmZddlmZdd	lmZe�e�ZGd
d�de	�Z de
ee!e"e"e
ee!e"e"ee!ee!ddfd�dd�Z#ee!d�dd�Z$ee d�dd�Z%Gdd�d�Z&dS)�N)�	Container�Dict�	Generator�Iterable�List�
NamedTuple�Optional�Set)�canonicalize_name)�Version)�
BadCommand�InstallationError)�BaseDistribution�get_environment)�install_req_from_editable�install_req_from_line)�
COMMENT_RE)�%direct_url_as_pep440_direct_referencec@s"eZdZUeed<eeed<dS)�
_EditableInfo�requirement�commentsN)�__name__�
__module__�__qualname__�str�__annotations__r�rr�C/tmp/pip-unpacked-wheel-hv55ucu3/pip/_internal/operations/freeze.pyrs
rFr)r�
local_only�	user_only�paths�isolated�exclude_editable�skip�returnccspi}t|�j|d|d�}x,|D]$}	t�|	�}
|r8|
jr8q|
||
j<qW|�r2t�}t�t	�}�x�|D�]�}
t
|
���l}�xb|D�]X}|��r�|���d�s�|�d�r�|�
�}||kr~|�|�|Vq~|�d�s�|�d��r |�d�r�|dd���}n|td�d����d�}t||d	�}ntt�d
|���|d	�}|j�s^t�d|
|���t�d�q~t|j�}||k�r�||j�s�t�d
|
t�d
|���|j�n||j�|
�q~t||��
�V||=||j�|
�q~WWdQRXqdWx@|��D]4\}}t|�dk�r�t�d|d�tt|�����q�WdVx8t|��dd�d�D] }|j|k�rHt|��
�V�qHWdS)Nr)rr#r�#)z-rz
--requirementz-fz--find-linksz-iz--index-urlz--prez--trusted-hostz--process-dependency-linksz--extra-index-urlz
--use-featurez-ez
--editable��=)r!�zWSkipping 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)zBRequirement file [%s] contains %s, but package %r is not installed�z+Requirement %s included multiple times [%s]z, z7## The following requirements were added by pip freeze:cSs
|j��S)N)�name�lower)�xrrr�<lambda>��zfreeze.<locals>.<lambda>)�key) rZiter_installed_distributions�FrozenRequirement�	from_dist�editable�canonical_name�set�collections�defaultdict�list�open�strip�
startswith�rstrip�add�len�lstriprrr�subr*�logger�infor
�warning�appendr�items�join�sorted�values)rrrr r!r"r#Z
installations�dists�dist�reqZemitted_optionsZ	req_filesZ
req_file_path�req_file�lineZline_reqZline_req_canonical_namer*�filesZinstallationrrr�freezes�	










"rN)rIr$cCs0|j}t|t�r |j�d|��S|j�d|��S)Nz==z===)�version�
isinstancer�raw_name)rI�dist_versionrrr�_format_as_name_version�s
rSc
Cs�|j}|st�tj�tj�|��}ddlm}m}m	}|�
|�}|dkrtt|�}t�
d||�t|d|�d�gd�St|�j}y|�||j�}	Wn�|k
r�t|�}t|d|�d	|�d�gd�S|k
�r}
z0t|�}t|d|�d
|�d�d|
j�d
�gd�Sd}
~
XYnhtk
�r>t�d||j�t|gd�Stk
�rl}zt�d|�Wdd}~XYnXt|	gd�St�d|�t|dgd�S)za
    Compute and return values (req, comments) for use in
    FrozenRequirement.from_dist().
    r)�RemoteNotFoundError�RemoteNotValidError�vcsNz1No VCS found for editable requirement "%s" in: %rz,# Editable install with no version control (�))rrz# Editable z install with no remote (z
 install (z4) with either a deleted local remote or invalid URI:z# '�'zPcannot determine version of editable source in %s (%s command not found in path)z6Error when trying to get requirement for VCS system %sz-Could not determine repository location of %sz-## !! Could not determine repository location)�editable_project_location�AssertionError�os�path�normcase�abspath�pip._internal.vcsrTrUrV�get_backend_for_dirrSr@�debugr�typer�get_src_requirementrQ�urlrrBr*r
)rIrY�locationrTrUrV�vcs_backendZdisplayZvcs_namerJ�ex�excrrr�_get_editable_info�sR

 ric@sJeZdZdeeeeedd�dd�Zeedd�dd��Z	ed	�d
d�Z
dS)
r0rN)r*rJr2rr$cCs&||_t|�|_||_||_||_dS)N)r*r
r3rJr2r)�selfr*rJr2rrrr�__init__�s

zFrozenRequirement.__init__)rIr$cCsN|j}|rt|�\}}n$g}|j}|r4t||j�}nt|�}||j|||d�S)N)r)r2ri�
direct_urlrrQrS)�clsrIr2rJrrlrrrr1�szFrozenRequirement.from_dist)r$cCs4|j}|jrd|��}d�t|j�t|�g�dS)Nz-e �
)rJr2rEr7rr)rjrJrrr�__str__�s
zFrozenRequirement.__str__)r)rrrr�boolrrk�classmethodrr1rorrrrr0�s
r0)NFFNFFr)'r5�loggingr[�typingrrrrrrrr	�pip._vendor.packaging.utilsr
�pip._vendor.packaging.versionr�pip._internal.exceptionsrr
Zpip._internal.metadatarr�pip._internal.req.constructorsrrZpip._internal.req.req_filer�&pip._internal.utils.direct_url_helpersr�	getLoggerrr@rrrprNrSrir0rrrr�<module>s.(
$qB