U
��.e� � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
mZ d dlmZ e�e�ZG d d
� d
e�Zdd� Zddd�ZdS )� )�absolute_importN)�
FeedParser)�
pkg_resources��canonicalize_name)�Command)�ERROR�SUCCESS)�write_outputc s0 e Zd ZdZdZdZ� fdd�Zdd� Z� ZS )�ShowCommandzx
Show information about one or more installed packages.
The output is in RFC-compliant mail header format.
z$
%prog [options] ...Tc s> t t| �j||� | jjddddddd� | j�d| j� d S ) Nz-fz--files�files�
store_trueFz7Show the full list of installed files for each package.)�dest�action�default�helpr )�superr �__init__Zcmd_optsZ
add_option�parserZinsert_option_group)�self�args�kw�� __class__� �?/usr/lib/python3.8/site-packages/pip/_internal/commands/show.pyr s �zShowCommand.__init__c C s8 |st �d� tS |}t|�}t||j|jd�s4tS tS )Nz.ERROR: Please provide a package name or names.)�
list_files�verbose)�logger�warningr �search_packages_info�
print_resultsr r r )r Zoptionsr �query�resultsr r r �run* s
�zShowCommand.run) �__name__�
__module__�__qualname__�__doc__ZusageZignore_require_venvr r$ �
__classcell__r r r r r s
r c # sT i �t jD ]}|�t|j�<