U
ʗRe.
@ s d dl Z d dlmZ d dlmZmZmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ d dlmZ d d lmZ d d
lmZmZ d dlmZ d dlmZ e eZG d
d deZdS ) N)Values)AnyDictList)default_environment)
print_json)__version__)
cmdoptions)Command)SUCCESS)BaseDistributionget_environment)stdlib_pkgs)path_to_urlc @ sT e Zd ZdZdZdZddddZeee e
dd d
Zee
e ef ddd
ZdS )InspectCommandzZ
Inspect the content of a Python environment and produce a report in JSON format.
Tz
%prog [options]N)returnc C sN | j jddddd | j jdddddd | j t | jd
| j d S )Nz--local
store_trueFzSIf in a virtualenv that has global access, do not list globally-installed packages.)actiondefaulthelpz--useruserz,Only output packages installed in user-site.)destr r r r )cmd_opts
add_optionr list_pathparserinsert_option_groupself r /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/commands/inspect.pyadd_options s zInspectCommand.add_options)optionsargsr c s^ t d t| t|jj|j|jt t
d}dt fdd|D t d}t
|d tS )Nzypip inspect is currently an experimental command. The output format may change in a future release without prior warning.)
local_only user_onlyskip0c s g | ]} |qS r )
_dist_to_dict).0distr r r