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/lib/python3.9/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-39.pyc
a

?�f�(�	@s<ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZmZddlmZdd	lmZmZdd
lmZmZddlmZe�rdd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+e�,e-�Z.ddd�Z/dd�Z0Gdd�de1�Z2dS)�)�absolute_importN)�six)�canonicalize_name)�RequirementParseError)�
BadCommand�InstallationError)�install_req_from_editable�install_req_from_line)�
COMMENT_RE)�%direct_url_as_pep440_direct_reference�dist_get_direct_url)�dist_is_editable�get_installed_distributions)�MYPY_CHECK_RUNNING)	�Iterator�Optional�List�	Container�Set�Dict�Tuple�Iterable�Union)�
WheelCache)�Distribution�RequirementF�c	cs�|pg}|D]}	d�|	�Vqi}
t|d||d�D]h}zt�|�}Wn>ty�}
z&t�d||
�WYd}
~
q2WYd}
~
n
d}
~
00|r�|jr�q2||
|j<q2|�r�t	�}t
�t�}|D�]�}t
|���v}|D�]^}|��r�|���d�s�|�d��r|��}||vr�|�|�|Vq�|�d��s.|�d��rt|�d��rL|d	d���}n|td�d����d
�}t||d�}ntt�d|���|d�}|j�s�t�d
||���t�d�q�t|j�}||
v�r||j�s�t�d|t�d|���|j�n||j�|�q�t|
|���V|
|=||j�|�q�Wd�q�1�sD0Yq�t�|�D]4\}}t|�dk�rZt�d|d�t t	|�����qZdVt |
�!�dd�d�D] }|j|v�r�t|���V�q�dS)Nz-f {}r)�
local_only�skip�	user_only�pathsz6Could not generate requirement for distribution %r: %s�#)z-rz
--requirementz-fz--find-linksz-iz--index-urlz--prez--trusted-hostz--process-dependency-linksz--extra-index-urlz
--use-featurez-ez
--editable��=)�isolated�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)�xrr�C/usr/lib/python3.9/site-packages/pip/_internal/operations/freeze.py�<lambda>��zfreeze.<locals>.<lambda>)�key)"�formatr�FrozenRequirement�	from_distr�logger�warning�editable�canonical_name�set�collections�defaultdict�list�open�strip�
startswith�rstrip�add�len�lstriprr	r
�subr(�infor�append�strrZ	iteritems�join�sorted�values)ZrequirementZ
find_linksrrr r$Zwheel_cacheZexclude_editabler�linkZ
installations�dist�req�excZemitted_optionsZ	req_filesZ
req_file_pathZreq_file�lineZline_reqZline_req_canonical_namer(�filesZinstallationrrr+�freeze*s��
�"



��
�����
��4���
rNc
CsLt|�sddgfStj�tj�|j��}ddlm}m}|�	|�}|durv|�
�}t�d||�d�
|�g}|d|fSz|�||j�}Wn�|y�|�
�}d�
t|�j|�g}|d|fYSty�t�d	||j�ddgfYSt�y}zt�d
|�WYd}~nd}~00|du�r0|dgfSt�d|�dg}dd|fS)
zk
    Compute and return values (req, editable, comments) for use in
    FrozenRequirement.from_dist().
    NFr)�vcs�RemoteNotFoundErrorz1No VCS found for editable requirement "%s" in: %rz/# Editable install with no version control ({})Tz)# Editable {} install with no remote ({})zPcannot determine version of editable source in %s (%s command not found in path)zYError when trying to get requirement for VCS system %s, falling back to uneditable formatz-Could not determine repository location of %sz-## !! Could not determine repository location)r
�os�path�normcase�abspath�locationZpip._internal.vcsrOrPZget_backend_for_dir�as_requirementr2�debugr/Zget_src_requirement�project_name�type�__name__rr3r(r)rIrUrOrPZvcs_backendrJ�commentsrKrrr+�get_requirement_info�sT

��

����

�r\c@s*eZdZd	dd�Zedd��Zdd�ZdS)
r0rcCs&||_t|�|_||_||_||_dSr')r(rr5rJr4r[)�selfr(rJr4r[rrr+�__init__�s

zFrozenRequirement.__init__cCsXt|�\}}}|dur6|s6t|�}|r6t||j�}g}|durF|��}||j|||d�S)N)r[)r\rrrXrV)�clsrIrJr4r[Z
direct_urlrrr+r1�s�zFrozenRequirement.from_distcCs4|j}|jrd�|�}d�t|j�t|�g�dS)Nz-e {}�
)rJr4r/rEr9r[rD)r]rJrrr+�__str__s
zFrozenRequirement.__str__N)r)rZ�
__module__�__qualname__r^�classmethodr1rarrrr+r0�s

r0)	NNFFNFNFr)3Z
__future__rr7ZloggingrQZpip._vendorrZpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrZpip._internal.exceptionsrrZpip._internal.req.constructorsrr	Zpip._internal.req.req_filer
Z&pip._internal.utils.direct_url_helpersrrZpip._internal.utils.miscr
rZpip._internal.utils.typingr�typingrrrrrrrrrZpip._internal.cacherrrrD�boolZRequirementInfoZ	getLoggerrZr2rNr\�objectr0rrrr+�<module>s>,
�
>