403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.7/site-packages/pip/_internal/operations/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-37.pyc
B

�N�a*&�
@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!d�dd�Z#ee!d�dd�Z$ee d�dd�Z%Gdd�d�Z&dS)�N)�	Container�Dict�Iterable�Iterator�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/usr/lib/python3.7/site-packages/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
installationsZdists�dist�reqZemitted_optionsZ	req_filesZ
req_file_pathZreq_file�lineZline_reqZline_req_canonical_namer*�filesZinstallationrrr�freezes�	










"rL)rHr$cCs0t|jt�r|j�d|j��S|j�d|j��S)Nz==z===)�
isinstance�versionr�raw_name)rHrrr�_format_as_name_version�srPc
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�abspathZpip._internal.vcsrQrRrSZget_backend_for_dirrPr@�debugr�typerZget_src_requirementrOZurlrrBr*r
)rHrV�locationrQrRrSZvcs_backendZdisplayZvcs_namerIZex�excrrr�_get_editable_info�sR

 r`c@sJeZdZdeeeeedd�dd�Zeedd�dd��Z	ed	�d
d�Z
dS)
r0rN)r*rIr2rr$cCs&||_t|�|_||_||_||_dS)N)r*r
r3rIr2r)�selfr*rIr2rrrr�__init__�s

zFrozenRequirement.__init__)rHr$cCsN|j}|rt|�\}}n$g}|j}|r4t||j�}nt|�}||j|||d�S)N)r)r2r`�
direct_urlrrOrP)�clsrHr2rIrrcrrrr1�szFrozenRequirement.from_dist)r$cCs4|j}|jrd|��}d�t|j�t|�g�dS)Nz-e �
)rIr2rEr7rr)rarIrrr�__str__�s
zFrozenRequirement.__str__)r)rrrr�boolrrb�classmethodrr1rfrrrrr0�s
r0)NFFNFFr)'r5ZloggingrX�typingrrrrrrrr	Zpip._vendor.packaging.utilsr
Zpip._vendor.packaging.versionrZpip._internal.exceptionsrr
Zpip._internal.metadatarrZpip._internal.req.constructorsrrZpip._internal.req.req_filerZ&pip._internal.utils.direct_url_helpersrZ	getLoggerrr@rrrgrLrPr`r0rrrr�<module>s.(
$qB

Youez - 2016 - github.com/yon3zu
LinuXploit