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.10/site-packages/pip/_internal/commands/__pycache__/debug.cpython-310.pyc
o

��i��@s�ddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZmZm
Z
mZddlZddlmZddlmZddlmZddlmZdd	lmZdd
lmZddlmZddl m!Z!dd
l"m#Z#ddl$m%Z%e�&e'�Z(de)deddfdd�Z*d*dd�Z+dee)e)ffdd�Z,de)de	fdd�Z-de)dee)fdd�Z.dee)e)fddfdd�Z/d*d d!�Z0d"eddfd#d$�Z1d%ede)fd&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�G/usr/local/lib/python3.10/site-packages/pip/_internal/commands/debug.py�
show_valuesrcCsHt�d�tjj}t��td|�Wd�dS1swYdS)Nzsys.implementation:r)rr�sys�implementationrrr)�implementation_namerrr�show_sys_implementations

"�rcCsRtj�dd��}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)rr N)r"r#rrr�	<genexpr>.s�z(create_vendor_txt_map.<locals>.<genexpr>)�	importlib�	resources�	open_text�	readlines�dict)�f�linesrrr�create_vendor_txt_map%s��r/�module_namecCsB|���dd�}|dkrd}td|��t�t�dd�ttj|�S)N�-�_�
setuptools�
pkg_resourceszpip._vendor.r)�level)�lower�replace�
__import__�globals�locals�getattr�pip�_vendor)r0rrr�get_module_from_module_name1s
r>cCsVt|�}t|dd�}|s)|jdusJ�ttj�|j�g�}|�|�}|r)t|j	�}|S)N�__version__)
r>r;�__file__r�os�path�dirname�get_distribution�str�version)r0�modulerF�env�distrrr�get_vendor_version_from_module<s

rJ�vendor_txt_versionscCsZ|��D]&\}}d}t|�}|sd}|}n
t|�t|�kr"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)z5 (CONFLICT: vendor.txt suggests version should be {})z%s==%s%sN)�itemsrJ�
parse_version�formatrr)rKr0Zexpected_versionZ
extra_messageZactual_versionrrr�show_actual_vendor_versionsKs���rPcCsDt�d�t�}t��
t|�Wd�dS1swYdS)Nzvendored library versions:)rrr/rrP)rKrrr�show_vendor_versions`s


"�rQ�optionsc	Cs�d}t|�}|��}|��}d}|rd|�d�}d�t|�|�}t�|�|jdkr9t|�|kr9d}|d|�}nd}t��*|D]	}t�t	|��qA|r`d	j|d
�}t�|�Wd�dSWd�dS1skwYdS)N�
rLz
 (target: �)zCompatible tags: {}{}r TFz?...
[First {tag_limit} tags shown. Pass --verbose to show all.])�	tag_limit)
r�get_tags�format_givenrO�lenrr�verboserrE)	rRrU�
target_python�tagsZformatted_target�suffix�msgZtags_limited�tagrrr�	show_tagshs0
��"�r_�configcsrt�}|��D]\}}|�|�d�d�q|sdSgd���fdd�|D�}|s+dSd|vr4|�d�d�|�S)	N�.rz
Not specified)�install�wheel�downloadcsg|]}|�vr|�qSrr)r$r5�Zlevels_that_override_globalrrr&�sz"ca_bundle_info.<locals>.<listcomp>�globalz, )�setrM�addr"�remove�join)r`Zlevels�keyr2Zglobal_overriding_levelrrer�ca_bundle_info�s
�

rlc@s<eZdZdZdZdZddd�Zded	ee	de
fd
d�ZdS)
�DebugCommandz$
    Display debug information.
    z
      %prog <options>TrNcCs,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_optionsrR�argscCs�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�warningrrrrF�
executable�getdefaultencoding�getfilesystemencoding�locale�getpreferredencoding�platformrrlrpr`rA�environ�getrr<r=�	DEBUNDLEDrQr_r
)rsrRrurrr�run�s,��zDebugCommand.run�rN)�__name__�
__module__�__qualname__�__doc__�usage�ignore_require_venvrtrrrE�intr�rrrrrm�s
rmr�)4�importlib.resourcesr(r|�loggingrAr�optparser�typesr�typingrrrr�pip._vendorr<�pip._vendor.certifirZpip._vendor.packaging.versionr	rNZpip._internal.clir
�pip._internal.cli.base_commandrZpip._internal.cli.cmdoptionsr�pip._internal.cli.status_codesr
�pip._internal.configurationr�pip._internal.metadatar�pip._internal.utils.loggingr�pip._internal.utils.miscr�	getLoggerr�rrErrr/r>rJrPrQr_rlrmrrrr�<module>s<