관리-도구
편집 파일: show.cpython-37.pyc
B ��ReT � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl mZ d dlm Z mZ d dlmZ d d lmZ er�d d lmZ d dlmZmZmZ e�e�ZG dd � d e�Zdd� Zddd�ZdS )� )�absolute_importN)� FeedParser)� pkg_resources)�canonicalize_name)�Command)�ERROR�SUCCESS)�write_output)�MYPY_CHECK_RUNNING)�Values)�List�Dict�Iteratorc @ s( e Zd ZdZdZdZdd� Zdd� ZdS ) �ShowCommandzx Show information about one or more installed packages. The output is in RFC-compliant mail header format. z$ %prog [options] <package> ...Tc C s, | j jddddddd� | 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)�self� r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/show.py�add_options! s zShowCommand.add_optionsc 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 �options�args�query�resultsr r r �run, s zShowCommand.runN)�__name__� __module__�__qualname__�__doc__�usage�ignore_require_venvr r( r r r r r s r c # sf i �xt jD ]}|�t|j�<