§
    u”jp  ã                   óÒ   — d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d d	lmZ d d
lmZmZ d dlmZ d dlmZ  e j        e¦  «        Z G d„ de¦  «        ZdS )é    N)ÚValues)ÚAny)Údefault_environment)Ú
print_json)Ú__version__)Ú
cmdoptions)ÚCommand)ÚSUCCESS)ÚBaseDistributionÚget_environment)Ústdlib_pkgs)Úpath_to_urlc                   ób   — e Zd ZdZdZdZdd„Zdedee	         de
fd	„Zd
edee	ef         fd„ZdS )ÚInspectCommandzZ
    Inspect the content of a Python environment and produce a report in JSON format.
    Tz
      %prog [options]ÚreturnNc                 ó  — | j                              dddd¬¦  «         | j                              ddddd¬	¦  «         | 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    úm/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/pip/_internal/commands/inspect.pyÚadd_optionszInspectCommand.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          ¦  «        ¬¦  «        }dt          ˆ fd„|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'   ø€ Ð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   r   r   r   r
   )r   r"   r#   ÚdistsÚoutputs   `    r   ÚrunzInspectCommand.run0   sš   ø€ ÝÔ)¨'Ñ2Ô2Ð2Ý ¤Ñ-Ô-×JÒJØ”}Ø”lÝ•[Ñ!Ô!ð Kñ 
ô 
ˆð Ý&ØEÐEÐEÐE¸uÐEÑEÔEÝ.Ñ0Ô0ð	
ð 
ˆõ 	˜ÐÑÔÐÝˆr!   r-   c                 óî   — |j         |j        dœ}|j        }|�|                     ¦   «         |d<   n |j        }|�t          |¦  «        ddidœ|d<   |j        }|j        r||d<   |j        r
|j        |d<   |S )N)ÚmetadataÚmetadata_locationÚ
direct_urlÚeditableT)ÚurlÚdir_infoÚ	installerÚ	requested)	Úmetadata_dictÚinfo_locationr?   Úto_dict_compatÚeditable_project_locationr   rC   Úinstalled_with_dist_inforD   )r   r-   Úresr?   rH   rC   s         r   r+   zInspectCommand._dist_to_dictA   s³   € àÔ*Ø!%Ô!3ð
ð 
ˆð ”_ˆ
ØÐ!Ø *× 9Ò 9Ñ ;Ô ;ˆC�ÑÐð )-Ô(FÐ%Ø(Ð4å&Ð'@ÑAÔAà" Dð!ð%ð %��LÑ!ð ”Nˆ	ØŒ>ð 	)Ø(ˆC�ÑàÔ(ð 	.Ø#œ~ˆC�ÑØˆ
r!   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úignore_require_venvÚusager    r   ÚlistÚstrÚintr;   r   Údictr   r+   r*   r!   r   r   r      s™   € € € € € ðð ð Ðð€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.metadatar   r   Úpip._internal.utils.compatr   Úpip._internal.utils.urlsr   Ú	getLoggerrK   Úloggerr   r*   r!   r   ú<module>rc      s*  ðØ €€€Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð à =Ð =Ð =Ð =Ð =Ð =Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'à Ð Ð Ð Ð Ð Ø (Ð (Ð (Ð (Ð (Ð (Ø 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ð Ir!   