Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/site-packages/pip/_internal/commands/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/site-packages/pip/_internal/commands/__pycache__/show.cpython-311.pyc

�

�@�e��(�ddlZddlmZddlmZmZmZmZmZm	Z	ddl
mZddlm
Z
ddlmZmZddlmZmZddlmZeje��ZGd	�d
e
��ZGd�de��Zd
eedeeddffd�Zdeedededefd�ZdS)�N)�Values)�	Generator�Iterable�Iterator�List�
NamedTuple�Optional��canonicalize_name)�Command)�ERROR�SUCCESS)�BaseDistribution�get_default_environment)�write_outputc�B�eZdZdZdZdZd
d�Zdedee	de
fd	�ZdS)�ShowCommandzx
    Show information about one or more installed packages.

    The output is in RFC-compliant mail header format.
    z$
      %prog [options] <package> ...T�returnNc��|j�dddddd���|j�d|j��dS)	Nz-fz--files�files�
store_trueFz7Show the full list of installed files for each package.)�dest�action�default�helpr)�cmd_opts�
add_option�parser�insert_option_group)�selfs �F/usr/local/lib/python3.11/site-packages/pip/_internal/commands/show.py�add_optionszShowCommand.add_optionssU���
� � ������J�
	!�	
�	
�	
�	
��'�'��4�=�9�9�9�9�9��options�argsc��|s!t�d��tS|}t|��}t	||j|j���stStS)Nz.ERROR: Please provide a package name or names.)�
list_files�verbose)�logger�warningr
�search_packages_info�
print_resultsrr(r)r r$r%�query�resultss     r!�runzShowCommand.run&sb���	��N�N�K�L�L�L��L���&�u�-�-�����
�w��
�
�
�	��L��r#)rN)�__name__�
__module__�__qualname__�__doc__�usage�ignore_require_venvr"rr�str�intr/�r#r!rrsl��������
'�E���
:�
:�
:�
:��6���c���s������r#rc��eZdZUeed<eed<eed<eeed<eeed<eeed<eed<eed<eeed	<eed
<eed<eeed<eed
<eed<eed<eeed<eeeed<dS)�_PackageInfo�name�version�location�editable_project_location�requires�required_by�	installer�metadata_version�classifiers�summary�homepage�project_urls�author�author_email�license�entry_pointsrN)r0r1r2r6�__annotations__r	rr8r#r!r:r:4s��������

�I�I�I�
�L�L�L��M�M�M�'��}�,�,�,��3�i�����c������N�N�N������c�����
�L�L�L��M�M�M��s�)�����K�K�K�����
�L�L�L��s�)�����D��I������r#r:r-rc
#�4�K�t��}d�|���D���d�|D��}t�fd�t||��D����}|r.t�dd�|����dtdttf�fd�}|D�]�}	�|}n#t$rY�wxYwtd	�|���D��tj�
��}t||��tj�
��}	|�
d��}	|	�d�
��}
n#t$rg}
YnwxYw|���}|�d}nt|��}|j}
t%d(id|j�dt|j���d|jpd�d|j�d|�d|�d|j�d|jpd�d|
�dg���d|
�dd���d|
�dd���d|
�dg���d |
�d!d���d"|
�d#d���d$|
�d%d���d&|
�d'|��V����dS))z�
    Gather details from installed distributions. Print distribution name,
    version, location, and installed files. Installed files requires a
    pip generated 'installed-files.txt' in the distributions '.egg-info'
    directory.
    c��i|]
}|j|��Sr8)�canonical_name)�.0�dists  r!�
<dictcomp>z(search_packages_info.<locals>.<dictcomp>Qs��T�T�T�t��$�d�T�T�Tr#c�,�g|]}t|����Sr8r
)rOr;s  r!�
<listcomp>z(search_packages_info.<locals>.<listcomp>Rs!��=�=�=�t�$�T�*�*�=�=�=r#c�"��g|]\}}|�v�	|��Sr8r8)rOr;�pkg�	installeds   �r!rSz(search_packages_info.<locals>.<listcomp>Ts'���O�O�O�)�$��#�Y�:N�:N��:N�:N�:Nr#zPackage(s) not found: %s�, �current_distrc�F����fd�����D��S)Nc3��K�|]8}�jd�|���D��v�'|jdpdV��9dS)c�6�h|]}t|j����Sr8)rr;)rO�ds  r!�	<setcomp>zRsearch_packages_info.<locals>._get_requiring_packages.<locals>.<genexpr>.<setcomp>^s#��L�L�L�a�!�!�&�)�)�L�L�Lr#�Name�UNKNOWNN)rN�iter_dependencies�metadata)rOrPrXs  �r!�	<genexpr>zHsearch_packages_info.<locals>._get_requiring_packages.<locals>.<genexpr>Zsv�����
�
���*�L�L�4�3I�3I�3K�3K�L�L�L�M�M�
�M�&�!�.�Y�M�M�M�M�
�
r#)�values)rXrVs`�r!�_get_requiring_packagesz5search_packages_info.<locals>._get_requiring_packagesYs;����
�
�
�
�!�(�(�*�*�
�
�
�	
r#c3�$K�|]}|jV��dS)N)r;)rO�reqs  r!rbz'search_packages_info.<locals>.<genexpr>gs$����H�H��3�8�H�H�H�H�H�Hr#)�keyzentry_points.txtF)�keependsNr;r<r=�r>r?r@rArBrC�
ClassifierrD�SummaryrEz	Home-pagerFzProject-URLrG�AuthorrHzAuthor-emailrI�LicenserJrr8)r�iter_all_distributions�sorted�zipr)r*�joinrrr6�KeyErrorr`�lower�	read_text�
splitlines�FileNotFoundError�iter_declared_entriesrar:�raw_namer<r=r>rArB�get_all�get)r-�env�query_names�missingrd�
query_namerPr?r@�entry_points_textrJ�
files_iterrrarVs              @r!r+r+Hss�����"�
#�
#�C�T�T�s�7Q�7Q�7S�7S�T�T�T�I�=�=�u�=�=�=�K��O�O�O�O�s�5�+�6�6�O�O�O���G��G����1�4�9�9�W�3E�3E�F�F�F�
�.>�
�8�C�=�
�
�
�
�
�
�"�)
�)
�
�	��Z�(�D�D���	�	�	��H�	�����H�H�t�/E�/E�/G�/G�H�H�H�c�i�X�X�X���4�4�T�:�:��	�J�J�J��	� $���/A� B� B��,�7�7��7�G�G�L�L�� �	�	�	��L�L�L�	�����/�/�1�1�
���)-�E�E��:�&�&�E��=���
�
�
����
����%�%�%�
��]�(�b��
�'+�&D�&D�	
�
�X�
�$��

��n�n�
�"�2�8�b��
�!�(�(��r�:�:�:�
��L�L��B�/�/�/�
��\�\�+�r�2�2�2�
�"�)�)�-��<�<�<�
��<�<��"�-�-�-�
�"���n�b�9�9�9�
��L�L��B�/�/�/�
� &��!
�"�%�#
�	
�	
�	
�	
�/)
�)
s$�:C�
C�C�/+E�E*�)E*�
distributionsr'r(c��d}t|��D�]?\}}d}|dkrtd��td|j��td|j��td|j��td|j��td	|j��td
|j��td|j��td|j	��|j
�td|j
��tdd�|j����tdd�|j
����|r�td|j��td|j��td��|jD]}td|���td��|jD]$}td|������%td��|jD]}td|���|rStd��|j�td����|jD]$}	td|	������%��A|S)zC
    Print the information from installed distributions found.
    FTrz---zName: %szVersion: %szSummary: %sz
Home-page: %sz
Author: %szAuthor-email: %szLicense: %szLocation: %sNzEditable project location: %szRequires: %srWzRequired-by: %szMetadata-Version: %sz
Installer: %szClassifiers:z  %sz
Entry-points:z
Project-URLs:zFiles:z+Cannot locate RECORD or installed-files.txt)�	enumeraterr;r<rDrErGrHrIr=r>rqr?r@rBrArCrJ�striprFr)
r�r'r(�results_printed�irP�
classifier�entry�project_url�lines
          r!r,r,�sg���O��]�+�+�&7�&7���4����q�5�5�������Z���+�+�+��]�D�L�1�1�1��]�D�L�1�1�1��_�d�m�4�4�4��\�4�;�/�/�/��'��):�;�;�;��]�D�L�1�1�1��^�T�]�3�3�3��)�5��/��1O�
�
�
�	�^�T�Y�Y�t�}�%=�%=�>�>�>��&��	�	�$�2B�(C�(C�D�D�D��	2��/��1F�G�G�G���$�.�9�9�9���(�(�(�"�.�
1�
1�
��V�Z�0�0�0�0���)�)�)��*�
4�
4���V�U�[�[�]�]�3�3�3�3���)�)�)�#�0�
2�
2���V�[�1�1�1�1��	7���"�"�"��z�!��J�K�K�K�K� �J�7�7�D� �������6�6�6�6���r#)�logging�optparser�typingrrrrrr	�pip._vendor.packaging.utilsr�pip._internal.cli.base_commandr�pip._internal.cli.status_codesr
r�pip._internal.metadatarr�pip._internal.utils.miscr�	getLoggerr0r)rr:r6r+�boolr,r8r#r!�<module>r�s�������������L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�L�9�9�9�9�9�9�2�2�2�2�2�2�9�9�9�9�9�9�9�9�L�L�L�L�L�L�L�L�1�1�1�1�1�1�	��	�8�	$�	$��"�"�"�"�"�'�"�"�"�J�����:����(B
��S�	�B
�i��d�D�8P�.Q�B
�B
�B
�B
�J0��L�)�0��0��0�
�	0�0�0�0�0�0r#

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists