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/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/debug.cpython-39.pyc
a

?�f��@sNddlmZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddl
mZddlmZddlmZdd	lmZdd
lmZddlmZddlmZer�dd
lmZddlmZmZm Z ddl!m"Z"ddl#m$Z$e�%e&�Z'dd�Z(dd�Z)dd�Z*dd�Z+dd�Z,dd�Z-dd�Z.dd �Z/d!d"�Z0Gd#d$�d$e�Z1dS)%�)�absolute_importN)�
pkg_resources)�where)�__file__)�
cmdoptions)�Command)�make_target_python)�SUCCESS)�
indent_log)�get_pip_version)�MYPY_CHECK_RUNNING)�
ModuleType)�List�Optional�Dict)�Values)�
ConfigurationcCst�d||�dS)Nz%s: %s)�logger�info)�name�value�r�@/usr/lib/python3.9/site-packages/pip/_internal/commands/debug.py�
show_valuesrcCsZt�d�ttd�r"tj}|j}nd}t��td|�Wd�n1sL0YdS)Nzsys.implementation:�implementation�r)rr�hasattr�sysrrr
r)rZimplementation_namerrr�show_sys_implementation#s

rcCsdtj�tj�t�dd�}t|��"}dd�|��D�}Wd�n1sH0Ytdd�|D��S)N�_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>?�z(create_vendor_txt_map.<locals>.<genexpr>)�os�path�join�dirname�pip_location�open�	readlines�dict)Zvendor_txt_path�f�linesrrr�create_vendor_txt_map0s
�
�$r5cCs:|��}|dkrd}td�|�t�t�dd�ttj|�S)NZ
setuptoolsrzpip._vendor.{}r)�level)�lower�
__import__�format�globals�locals�getattr�pipr)�module_namerrr�get_module_from_module_nameBs�r?cCsPt|�}t|dd�}|sLt�tj�|j�g�}|�tj	�
|��}t|dd�}|S)N�__version__�version)r?r<rZ
WorkingSetr+r,r.r�findZRequirement�parse)r>�modulerAZpkg_set�packagerrr�get_vendor_version_from_moduleSs�rFcCsR|��D]D\}}d}t|�}|s*d}|}n||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.
    rzM (Unable to locate actual module version, using vendor.txt specified version)z5 (CONFLICT: vendor.txt suggests version should be {})z%s==%s%sN)�itemsrFr9rr)�vendor_txt_versionsr>Zexpected_versionZ
extra_messageZactual_versionrrr�show_actual_vendor_versionsgs�rIcCsBt�d�t�}t��t|�Wd�n1s40YdS)Nzvendored library versions:)rrr5r
rI)rHrrr�show_vendor_versionsys
rJc	Cs�d}t|�}|��}|��}d}|r.d�|�}d�t|�|�}t�|�|jdkrpt|�|krpd}|d|�}nd}t��B|D]}t�t	|��q�|r�dj|d	�}t�|�Wd�n1s�0YdS)
N�
rz
 (target: {})zCompatible tags: {}{}r"TFz?...
[First {tag_limit} tags shown. Pass --verbose to show all.])�	tag_limit)
rZget_tagsZformat_givenr9�lenrr�verboser
�str)	�optionsrLZ
target_python�tagsZformatted_target�suffix�msgZtags_limited�tagrrr�	show_tags�s,

��rUcsrt�}|��D]\}}|�|�d�d�q|s4dSgd���fdd�|D�}|sVdSd|vrh|�d�d�|�S)	N�.rz
Not specified)ZinstallZwheelZdownloadcsg|]}|�vr|�qSrr)r&r6�Zlevels_that_override_globalrrr(�sz"ca_bundle_info.<locals>.<listcomp>�globalz, )�setrG�addr$�remover-)�configZlevels�key�_Zglobal_overriding_levelrrWr�ca_bundle_info�s
�
r_c@s(eZdZdZdZdZdd�Zdd�ZdS)	�DebugCommandz$
    Display debug information.
    z
      %prog <options>TcCs,t�|j�|j�d|j�|jj��dS)Nr)rZadd_target_python_optionsZcmd_opts�parserZinsert_option_groupr\�load)�selfrrr�add_options�szDebugCommand.add_optionscCs�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 valueZREQUESTS_CA_BUNDLEZCURL_CA_BUNDLEzpip._vendor.certifi.where()zpip._vendor.DEBUNDLED)rZwarningrrrrA�
executable�getdefaultencoding�getfilesystemencoding�locale�getpreferredencoding�platformrr_rar\r+�environ�getrr=rZ	DEBUNDLEDrJrUr	)rcrP�argsrrr�run�s*��zDebugCommand.runN)�__name__�
__module__�__qualname__�__doc__ZusageZignore_require_venvrdrnrrrrr`�s
r`)2Z
__future__rrhZloggingr+rZpip._vendorr=rZpip._vendor.certifirrr/Zpip._internal.clirZpip._internal.cli.base_commandrZpip._internal.cli.cmdoptionsrZpip._internal.cli.status_codesr	Zpip._internal.utils.loggingr
Zpip._internal.utils.miscrZpip._internal.utils.typingr�typesr
�typingrrrZoptparserZpip._internal.configurationrZ	getLoggerrorrrr5r?rFrIrJrUr_r`rrrr�<module>s>

	"