HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/pip/_internal/commands/__pycache__/debug.cpython-38.pyc
U

�{�e��@s�ddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZmZm
Z
mZddlZddlmZddlmZddlmZddlmZdd	lmZdd
lmZddlmZddl m!Z!dd
l"m#Z#ddl$m%Z%e�&e'�Z(e)edd�dd�Z*dd�dd�Z+ee)e)fd�dd�Z,e)ee	d�dd�Z-e)ee)d�dd�Z.ee)e)fdd�dd�Z/dd�dd �Z0edd!�d"d#�Z1ee)d$�d%d&�Z2Gd'd(�d(e�Z3dS))�N)�Values)�
ModuleType)�Any�Dict�List�Optional)�where)�parse)�
cmdoptions)�Command)�make_target_python)�SUCCESS)�
Configuration)�get_environment)�
indent_log)�get_pip_version)�name�value�returncCst�d||�dS)Nz%s: %s)�logger�info)rr�r�@/tmp/pip-unpacked-wheel-_0scjqea/pip/_internal/commands/debug.py�
show_valuesr�rc	Cs2t�d�tjj}t��td|�W5QRXdS)Nzsys.implementation:r)rr�sys�implementationrrr)�implementation_namerrr�show_sys_implementations
rc	Cs>tj�dd��}dd�|��D�}W5QRXtdd�|D��S)Nzpip._vendorz
vendor.txtcSs(g|] }d|kr|���dd�d�qS)�==� �r)�strip�split��.0�linerrr�
<listcomp>)sz)create_vendor_txt_map.<locals>.<listcomp>css|]}|�dd�VqdS)rr!N�r#r$rrr�	<genexpr>.sz(create_vendor_txt_map.<locals>.<genexpr>)�	importlib�	resources�	open_text�	readlines�dict)�f�linesrrr�create_vendor_txt_map%s
�r1)�module_namercCsx|���dd�}|dkrd}z(td|��t�t�dd�ttj|�WStk
rr|dkrlt	j
d	krlYdS�YnXdS)
N�-�_�
setuptools�
pkg_resourceszpip._vendor.r)�levelZ
truststore)��
)�lower�replace�
__import__�globals�locals�getattr�pip�_vendor�ImportErrorr�version_info)r2rrr�get_module_from_module_name1srDcCsZt|�}t|dd�}|rV|sV|jdk	s*t�ttj�|j�g�}|�|�}|rVt	|j
�}|S)N�__version__)rDr?�__file__�AssertionErrorr�os�path�dirname�get_distribution�str�version)r2�modulerM�env�distrrr�get_vendor_version_from_moduleCs

rQ)�vendor_txt_versionsrcCsZ|��D]L\}}d}t|�}|s*d}|}nt|�t|�krDd�|�}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)z5 (CONFLICT: vendor.txt suggests version should be {})z%s==%s%sN)�itemsrQ�
parse_version�formatrr)rRr2Zexpected_versionZ
extra_messageZactual_versionrrr�show_actual_vendor_versionsRs���rWc	Cs.t�d�t�}t��t|�W5QRXdS)Nzvendored library versions:)rrr1rrW)rRrrr�show_vendor_versionsgs
rX)�optionsrc		Cs�d}t|�}|��}|��}d}|r0d|�d�}d�t|�|�}t�|�|jdkrrt|�|krrd}|d|�}nd}t��8|D]}t�t	|��q�|r�d	j|d
�}t�|�W5QRXdS)Nr9rSz
 (target: �)zCompatible tags: {}{}r!TFz?...
[First {tag_limit} tags shown. Pass --verbose to show all.])�	tag_limit)
rZget_sorted_tags�format_givenrV�lenrr�verboserrL)	rYr[�
target_python�tagsZformatted_target�suffix�msgZtags_limited�tagrrr�	show_tagsos,
��rd)�configrcsZdd�|��D�}|sdSdddg��fdd�|D�}|s>d	Sd	|krP|�d	�d
�|�S)NcSs h|]\}}|�dd�d�qS)�.r!rr()r%�keyr4rrr�	<setcomp>�sz!ca_bundle_info.<locals>.<setcomp>z
Not specified�install�wheel�downloadcsg|]}|�kr|�qSrr)r%r7�Zlevels_that_override_globalrrr'�sz"ca_bundle_info.<locals>.<listcomp>�globalz, )rT�remove�join)re�levelsZglobal_overriding_levelrrlr�ca_bundle_info�s

�
rqc@s<eZdZdZdZdZdd�dd�Zeee	e
d�d	d
�ZdS)�DebugCommandz$
    Display debug information.
    z
      %prog <options>TNrcCs,t�|j�|j�d|j�|jj��dS)Nr)r
�add_target_python_options�cmd_opts�parser�insert_option_groupre�load)�selfrrr�add_options�szDebugCommand.add_options)rY�argsrcCs�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�warningrrrrM�
executable�getdefaultencoding�getfilesystemencoding�locale�getpreferredencoding�platformrrqrurerH�environ�getrr@rA�	DEBUNDLEDrXrdr
)rxrYrzrrr�run�s,��zDebugCommand.run)�__name__�
__module__�__qualname__�__doc__�usage�ignore_require_venvryrrrL�intr�rrrrrr�s
rr)4�importlib.resourcesr*r��loggingrHr�optparser�typesr�typingrrrr�pip._vendorr@�pip._vendor.certifir�pip._vendor.packaging.versionr	rUZpip._internal.clir
�pip._internal.cli.base_commandrZpip._internal.cli.cmdoptionsr�pip._internal.cli.status_codesr
�pip._internal.configurationrZpip._internal.metadatar�pip._internal.utils.loggingr�pip._internal.utils.miscr�	getLoggerr�rrLrrr1rDrQrWrXrdrqrrrrrr�<module>s: