| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/pip/_internal/commands/__pycache__/ |
Upload File : |
�
�/�ct � �� � 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 j e� � Z G d
� de� � ZdS )� N)�Values)�Any�Dict�List)�default_environment)�
print_json)�__version__)�
cmdoptions)�Command)�SUCCESS)�BaseDistribution�get_environment)�stdlib_pkgs)�path_to_urlc �b � e Zd ZdZdZdZdd�Zdedee de
fd �Zd
ede
e ef fd�ZdS )
�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.)�action�default�helpz--user�userz,Only output packages installed in user-site.)�destr r r r )�cmd_opts�
add_optionr
� list_path�parser�insert_option_group)�selfs �@/usr/lib/python3/dist-packages/pip/_internal/commands/inspect.py�add_optionszInspectCommand.add_options s� � ��
� � ����/� !�
�
�
�
�
� � �����?� !�
�
�
�
�
� � ��!5�!7�!7�8�8�8���'�'��4�=�9�9�9�9�9� �options�argsc �. � � t j |� � t |j � � � |j |j t t � � �� � }dt � fd�|D � � t � � d�}t |�� � t S )N)�
local_only� user_only�skip�1c �: �� g | ]}�� |� � ��S � )�
_dist_to_dict)�.0�distr s �r! �
<listcomp>z&InspectCommand.run.<locals>.<listcomp>: s'