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/commands/__pycache__/debug.cpython-37.pyc
B

L��gy�@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-hv55ucu3/pip/_internal/commands/debug.py�
show_valuesr)rc	Cs2t�d�tjj}t��td|�WdQRXdS)Nzsys.implementation:r)rr�sys�implementationrrr)�implementation_namerrr�show_sys_implementations
rc	Cs>tj�dd��}dd�|��D�}WdQRXtdd�|D��S)Nzpip._vendorz
vendor.txtcSs(g|] }d|kr|���dd�d�qS)z==� �r)�strip�split)�.0�linerrr�
<listcomp>*sz)create_vendor_txt_map.<locals>.<listcomp>css|]}|�dd�VqdS)z==rN)r!)r"r#rrr�	<genexpr>.sz(create_vendor_txt_map.<locals>.<genexpr>)�	importlib�	resources�	open_text�	readlines�dict)�f�linesrrr�create_vendor_txt_map%sr-)�module_namercCst|���dd�}|dkrd}y&td|��t�t�dd�ttj|�Stk
rn|dkrht	j
d	krhdS�YnXdS)
N�-�_�
setuptools�
pkg_resourceszpip._vendor.r)�levelZ
truststore)��
)�lower�replace�
__import__�globals�locals�getattr�pip�_vendor�ImportErrorr�version_info)r.rrr�get_module_from_module_name1sr@cCsZt|�}t|dd�}|rV|sV|jdk	s*t�ttj�|j�g�}|�|�}|rVt	|j
�}|S)N�__version__)r@r;�__file__�AssertionErrorr�os�path�dirname�get_distribution�str�version)r.�modulerI�env�distrrr�get_vendor_version_from_moduleCs

rM)�vendor_txt_versionsrcCs`xZ|��D]N\}}d}t|�}|s,d}|}nt|�t|�krHd|�d�}t�d|||�q
WdS)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)�itemsrM�
parse_versionrr)rNr.Zexpected_versionZ
extra_messageZactual_versionrrr�show_actual_vendor_versionsRsrSc	Cs.t�d�t�}t��t|�WdQRXdS)Nzvendored library versions:)rrr-rrS)rNrrr�show_vendor_versionsgs
rT)�optionsrc		Cs�d}t|�}|��}|��}d}|r0d|�d�}dt|��|��}t�|�|jdkrtt|�|krtd}|d|�}nd}t��<x|D]}t�t|��q�W|r�d	|�d
�}t�|�WdQRXdS)Nr5rOz
 (target: rPzCompatible tags: rTFz...
[First z) tags shown. Pass --verbose to show all.])	rZget_sorted_tags�format_given�lenrr�verboserrH)	rUZ	tag_limit�
target_python�tagsZformatted_target�suffix�msgZtags_limited�tagrrr�	show_tagsos&

r^)�configrcsZdd�|��D�}|sdSdddg��fdd�|D�}|s>d	Sd	|krP|�d	�d
�|�S)NcSs h|]\}}|�dd�d�qS)�.rr)r!)r"�keyr0rrr�	<setcomp>�sz!ca_bundle_info.<locals>.<setcomp>z
Not specified�install�wheel�downloadcsg|]}|�kr|�qSrr)r"r3)�levels_that_override_globalrrr$�sz"ca_bundle_info.<locals>.<listcomp>�globalz, )rQ�remove�join)r_�levelsZglobal_overriding_levelr)rfr�ca_bundle_info�s

rkc@s<eZdZdZdZdZdd�dd�Zeee	e
d�d	d
�ZdS)�DebugCommandz$
    Display debug information.
    z
      %prog <options>TN)rcCs,t�|j�|j�d|j�|jj��dS)Nr)r
�add_target_python_options�cmd_opts�parser�insert_option_groupr_�load)�selfrrr�add_options�szDebugCommand.add_options)rU�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�warningrrrrI�
executable�getdefaultencoding�getfilesystemencoding�locale�getpreferredencoding�platformrrkror_rD�environ�getrr<r=�	DEBUNDLEDrTr^r
)rrrUrtrrr�run�s(
zDebugCommand.run)�__name__�
__module__�__qualname__�__doc__�usage�ignore_require_venvrsrrrH�intr�rrrrrl�s
rl)4�importlib.resourcesr&r{�loggingrDr�optparser�typesr�typingrrrr�pip._vendorr<�pip._vendor.certifir�pip._vendor.packaging.versionr	rRZpip._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�rrHrrr-r@rMrSrTr^rkrlrrrr�<module>s: