HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/pip/_internal/commands/__pycache__/debug.cpython-310.pyc
o

��h��@sTddlmZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlZ
ddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlm Z ddl!m"Z"ddl#m$Z$e�%e&�Z'd4dd�Z(d5dd�Z)d6dd�Z*d7d d!�Z+d8d#d$�Z,d9d&d'�Z-d5d(d)�Z.d:d,d-�Z/d;d0d1�Z0Gd2d3�d3e�Z1dS)<�)�annotationsN)�Values)�
ModuleType)�Any)�where)�parse)�
cmdoptions)�Command)�make_target_python)�SUCCESS)�
Configuration)�get_environment)�open_text_resource)�
indent_log)�get_pip_version�name�str�valuer�return�NonecCst�d||�dS)Nz%s: %s)�logger�info)rr�r�G/usr/local/lib/python3.10/dist-packages/pip/_internal/commands/debug.py�
show_valuesrcCsHt�d�tjj}t��td|�Wd�dS1swYdS)Nzsys.implementation:r)rr�sys�implementationrrr)�implementation_namerrr�show_sys_implementation s

"�r�dict[str, str]cCsNtdd��}dd�|��D�}Wd�n1swYtdd�|D��S)Nzpip._vendorz
vendor.txtcSs(g|]}d|vr|���dd�d�qS)�==� �r)�strip�split��.0�linerrr�
<listcomp>+s"z)create_vendor_txt_map.<locals>.<listcomp>css�|]	}|�dd�VqdS)r r"N�r$r%rrr�	<genexpr>0s�z(create_vendor_txt_map.<locals>.<genexpr>)r�	readlines�dict)�f�linesrrr�create_vendor_txt_map's��r/�module_name�ModuleType | NonecCsn|���dd�}|dkrd}ztd|��t�t�dd�ttj|�WSty6|dkr5t	j
d	kr5YdS�w)
N�-�_�
setuptools�
pkg_resourceszpip._vendor.r)�level�
truststore)��
)�lower�replace�
__import__�globals�locals�getattr�pip�_vendor�ImportErrorr�version_info)r0rrr�get_module_from_module_name3s�rD�
str | NonecCsZt|�}t|dd�}|r+|s+|jdusJ�ttj�|j�g�}|�|�}|r+t|j	�}|S)N�__version__)
rDr?�__file__r
�os�path�dirname�get_distributionr�version)r0�modulerL�env�distrrr�get_vendor_version_from_moduleEs

rP�vendor_txt_versionscCs\|��D]'\}}d}t|�}|sd}|}nt|�t|�kr#d|�d�}t�d|||�qdS)z{Log the actual version and print extra info if there is
    a conflict or if the actual version could not be imported.
    �zM (Unable to locate actual module version, using vendor.txt specified version)z2 (CONFLICT: vendor.txt suggests version should be �)z%s==%s%sN)�itemsrP�
parse_versionrr)rQr0�expected_version�
extra_message�actual_versionrrr�show_actual_vendor_versionsTs����rYcCsDt�d�t�}t��
t|�Wd�dS1swYdS)Nzvendored library versions:)rrr/rrY)rQrrr�show_vendor_versionsis


"�rZ�optionsrc	Cs�d}t|�}|��}|��}d}|rd|�d�}dt|��|��}t�|�|jdkr:t|�|kr:d}|d|�}nd}t��*|D]	}t�t|��qB|rad	|�d
�}t�|�Wd�dSWd�dS1slwYdS)Nr9rRz
 (target: rSzCompatible tags: r"TFz...
[First z) tags shown. Pass --verbose to show all.])	r
�get_sorted_tags�format_given�lenrr�verboserr)	r[�	tag_limit�
target_python�tags�formatted_target�suffix�msg�tags_limited�tagrrr�	show_tagsqs,
�"�rh�configrcsXdd�|��D�}|s
dSgd���fdd�|D�}|sdSd|vr'|�d�d�|�S)	NcSs h|]\}}|�dd�d�qS)�.r"rr))r&�keyr3rrr�	<setcomp>�s z!ca_bundle_info.<locals>.<setcomp>z
Not specified)�install�wheel�downloadcsg|]}|�vr|�qSrr)r&r6��levels_that_override_globalrrr(�sz"ca_bundle_info.<locals>.<listcomp>�globalz, )rT�remove�join)ri�levels�global_overriding_levelrrpr�ca_bundle_info�s
�

rwc@s,eZdZdZdZdZddd�Zdd
d�ZdS)�DebugCommandz$
    Display debug information.
    z
      %prog <options>TrrcCs,t�|j�|j�d|j�|jj��dS)Nr)r�add_target_python_options�cmd_opts�parser�insert_option_groupri�load)�selfrrr�add_options�szDebugCommand.add_optionsr[r�args�	list[str]�intcCs�t�d�tdt��tdtj�tdtj�tdt���tdt���tdt	�
��tdtj�t�td	t
|jj��td
tj�d
��tdtj�d��tdt��td
tjj�t�t|�tS)Nz�This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.zpip versionzsys.versionzsys.executablezsys.getdefaultencodingzsys.getfilesystemencodingzlocale.getpreferredencodingzsys.platformz'cert' config value�REQUESTS_CA_BUNDLE�CURL_CA_BUNDLEzpip._vendor.certifi.where()zpip._vendor.DEBUNDLED)r�warningrrrrL�
executable�getdefaultencoding�getfilesystemencoding�locale�getpreferredencoding�platformrrwr{rirH�environ�getrr@rA�	DEBUNDLEDrZrhr)r~r[r�rrr�run�s,��zDebugCommand.runN�rr)r[rr�r�rr�)�__name__�
__module__�__qualname__�__doc__�usage�ignore_require_venvrr�rrrrrx�s
rx)rrrrrrr�)rr)r0rrr1)r0rrrE)rQrrr)r[rrr)rirrr)2�
__future__rr��loggingrHr�optparser�typesr�typingr�pip._vendorr@�pip._vendor.certifir�pip._vendor.packaging.versionrrU�pip._internal.clir�pip._internal.cli.base_commandr	�pip._internal.cli.cmdoptionsr
�pip._internal.cli.status_codesr�pip._internal.configurationr�pip._internal.metadatar
�pip._internal.utils.compatr�pip._internal.utils.loggingr�pip._internal.utils.miscr�	getLoggerr�rrrr/rDrPrYrZrhrwrxrrrr�<module>s>