HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_internal/commands/__pycache__/inspect.cpython-311.pyc
�

�mii����ddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZdd	lmZdd
lmZmZddlmZddlmZeje��ZGd
�de��ZdS)�N)�Values)�Any)�default_environment)�
print_json)�__version__)�
cmdoptions)�Command)�SUCCESS)�BaseDistribution�get_environment)�stdlib_pkgs)�path_to_urlc�b�eZdZdZdZdZdd�Zdedee	de
fd	�Zd
ede
e	effd�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�tj����|j�d
|j��dS)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.)�destrrrr)�cmd_opts�
add_optionr�	list_path�parser�insert_option_group)�selfs �@D:\Python311\Lib\site-packages\pip/_internal/commands/inspect.py�add_optionszInspectCommand.add_optionss����
� � ����/�	!�	
�	
�	
�	
�
� � �����?�	!�	
�	
�	
�	
�
� � ��!5�!7�!7�8�8�8���'�'��4�=�9�9�9�9�9��options�argsc�.��tj|��t|j���|j|jtt�����}dt�fd�|D��t��d�}t|���tS)N)�
local_only�	user_only�skip�1c�:��g|]}��|����S�)�
_dist_to_dict)�.0�distrs  �r�
<listcomp>z&InspectCommand.run.<locals>.<listcomp>:s'���E�E�E�t�$�,�,�T�2�2�E�E�Er!)�version�pip_version�	installed�environment)�data)
r�check_list_path_optionr�path�iter_installed_distributions�localr�setr
rrrr
)rr"r#�dists�outputs`    r�runzInspectCommand.run0s�����)�'�2�2�2����-�-�J�J��}��l��[�!�!�K�
�
���&�E�E�E�E�u�E�E�E�.�0�0�	
�
��	�������r!r-c���|j|jd�}|j}|�|���|d<n |j}|�t|��ddid�|d<|j}|jr||d<|jr
|j|d<|S)N)�metadata�metadata_location�
direct_url�editableT)�url�dir_info�	installer�	requested)	�
metadata_dict�
info_locationr?�to_dict�editable_project_locationrrC�installed_with_dist_inforD)rr-�resr?rHrCs      rr+zInspectCommand._dist_to_dictAs����*�!%�!3�
�
���_�
��	� *� 2� 2� 4� 4�C����)-�(F�%�(�
�&�'@�A�A�"�D�!�%�%��L�!��N�	��>�	)�(�C����(�	.�#�~�C����
r!)rN)�__name__�
__module__�__qualname__�__doc__�ignore_require_venv�usager r�list�str�intr;r�dictrr+r*r!rrrs�����������
�E�:�:�:�:�(�6���c���s�����"�"2��t�C��H�~������r!r)�logging�optparser�typingr�pip._vendor.packaging.markersr�pip._vendor.richr�pipr�pip._internal.clir�pip._internal.cli.base_commandr	�pip._internal.cli.status_codesr
�pip._internal.metadatarr�pip._internal.utils.compatr
�pip._internal.utils.urlsr�	getLoggerrK�loggerrr*r!r�<module>rcs*������������������=�=�=�=�=�=�'�'�'�'�'�'�������(�(�(�(�(�(�2�2�2�2�2�2�2�2�2�2�2�2�D�D�D�D�D�D�D�D�2�2�2�2�2�2�0�0�0�0�0�0�	��	�8�	$�	$��I�I�I�I�I�W�I�I�I�I�Ir!