�
��^i� � �b � d dl Z d dlZd dlZd dlmZ d dlmZmZmZm Z m
Z
d dlmZ d dl
mZ d dlmZmZ d dlmZmZ d dlmZ ej e� � Z G d � d
e� � Z G d� de� � Zd
e
edf de
edf defd�Zdee dee fd�Zdee dededefd�Z dS )� N)�Values)�Iterator�List�
NamedTuple�Optional�Tuple��canonicalize_name)�Command)�ERROR�SUCCESS)�BaseDistribution�get_default_environment)�write_outputc �B � e Zd ZdZdZdZd
d�Zdedee de
fd �ZdS )�ShowCommandzx
Show information about one or more installed packages.
The output is in RFC-compliant mail header format.
z$
%prog [options] ...T�returnNc � � | j � dddddd�� � | j � d| j � � d S ) Nz-fz--files�files�
store_trueFz7Show the full list of installed files for each package.)�dest�action�default�helpr )�cmd_opts�
add_option�parser�insert_option_group)�selfs ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/commands/show.py�add_optionszShowCommand.add_options sU � ��
� � ������J�
!�
�
�
�
��'�'��4�=�9�9�9�9�9� �options�argsc � � |s!t � d� � t S |}t |� � }t ||j |j �� � st S t S )Nz.ERROR: Please provide a package name or names.)�
list_files�verbose)�logger�warningr �search_packages_info�
print_resultsr r' r
)r r# r$ �query�resultss r �runzShowCommand.run( sb � �� ��N�N�K�L�L�L��L���&�u�-�-�����
�w��
�
�
� � �L��r" )r N)�__name__�
__module__�__qualname__�__doc__�usage�ignore_require_venvr! r r �str�intr. � r" r r r sl � � � � � �� �
'�E���
:�
:�
:�
:��6� ��c�� �s� � � � � � r" r c �� � e Zd ZU eed<