관리-도구
편집 파일: inspect.cpython-311.pyc
� �܋fu � �� � 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 �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-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'