˛Z.AH d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ d d lmZ d d
lmZmZ d dlmZ d dlmZ e j e Z G d
de ZdS ) N)Values)Any)default_environment)
print_json)__version__)
cmdoptions)Command)SUCCESS)BaseDistributionget_environment)stdlib_pkgs)path_to_urlc b e Zd ZdZdZdZddZdedee de
fd Zd
ede
e ef fdZdS )
InspectCommandzZ
Inspect the content of a Python environment and produce a report in JSON format.
Tz
%prog [options]returnNc | j dddd | j ddddd | j t j | j d
| 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_group)selfs p/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/commands/inspect.pyadd_optionszInspectCommand.add_options s
/ !
? !
!5!7!7888''4=99999 optionsargsc . t j | t |j |j |j t t }dt fd|D t d}t | t S )N)
local_only user_onlyskip1c : g | ]} | S )
_dist_to_dict).0distr s r