ó
    T=Œjq  ã                   óÎ   • S SK r S SKJr  S SKJr  S SKJr  S SKJr  S SK	J
r
  S SKJr  S SKJr  S S	KJr  S S
KJrJr  S SKJr  S SKJr  \ R0                  " \5      r " S S\5      rg)é    N)ÚValues)ÚAny)Údefault_environment)Ú
print_json)Ú__version__)Ú
cmdoptions)ÚCommand)ÚSUCCESS)ÚBaseDistributionÚget_environment)Ústdlib_pkgs)Úpath_to_urlc                   ób   • \ rS rSrSrSrSrSS jrS\S	\	\
   S\4S
 jrS\S\\
\4   4S jrSrg)ÚInspectCommandé   zR
Inspect the content of a Python environment and produce a report in JSON format.
Tz
      %prog [options]ÚreturnNc                 ó  • U R                   R                  SSSSS9  U R                   R                  SSSSSS	9  U R                   R                  [        R                  " 5       5        U R                  R                  S
U R                   5        g )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    Úb/Users/stevendouglas/BidBrain/.venv/lib/python3.13/site-packages/pip/_internal/commands/inspect.pyÚadd_optionsÚInspectCommand.add_options   s„   € Ø�‰× Ñ ØØØð/ð 	!ñ 	
ð 	�‰× Ñ ØØØØØ?ð 	!ñ 	
ð 	�‰× Ñ ¤×!5Ò!5Ó!7Ô8Ø�‰×'Ñ'¨¨4¯=©=Õ9ó    ÚoptionsÚargsc                 óD  • [         R                  " U5        [        UR                  5      R	                  UR
                  UR                  [        [        5      S9nS[        U Vs/ s H  o@R                  U5      PM     sn[        5       S.n[        US9  [        $ s  snf )N)Ú
local_onlyÚ	user_onlyÚskipÚ1)ÚversionÚpip_versionÚ	installedÚenvironment)Údata)r   Úcheck_list_path_optionr   ÚpathÚiter_installed_distributionsÚlocalr   Úsetr   r   Ú_dist_to_dictr   r   r
   )r   r$   r%   ÚdistsÚdistÚoutputs         r    ÚrunÚInspectCommand.run0   sŠ   € Ü×)Ò)¨'Ô2Ü §¡Ó-×JÑJØ—}‘}Ø—l‘lÜ”[Ó!ð Kð 
ˆð Ü&Ù?DÓEºu°t×,Ñ,¨TÖ2¹uÑEÜ.Ó0ñ	
ˆô 	˜ÒÜˆùò Fs   Á&Br7   c                 óD  • UR                   UR                  S.nUR                  nUb  UR                  5       US'   O"UR                  nUb  [        U5      SS0S.US'   UR                  nUR                  (       a  XRS'   UR                  (       a  UR                  US'   U$ )N)ÚmetadataÚmetadata_locationÚ
direct_urlÚeditableT)ÚurlÚdir_infoÚ	installerÚ	requested)	Úmetadata_dictÚinfo_locationr>   Úto_dict_compatÚeditable_project_locationr   rB   Úinstalled_with_dist_inforC   )r   r7   Úresr>   rG   rB   s         r    r5   ÚInspectCommand._dist_to_dictA   s¨   € à×*Ñ*Ø!%×!3Ñ!3ñ
ˆð —_‘_ˆ
ØÑ!Ø *× 9Ñ 9Ó ;ˆC�Òð )-×(FÑ(FÐ%Ø(Ñ4ä&Ð'@ÓAà" Dð!ñ%��LÑ!ð —N‘Nˆ	Ø�>�>Ø(�Ñà×(×(Ø#Ÿ~™~ˆC�ÑØˆ
r#   © )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úignore_require_venvÚusager!   r   ÚlistÚstrÚintr9   r   Údictr   r5   Ú__static_attributes__rK   r#   r    r   r      sU   † ñð Ðð€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.metadata.baser   Úpip._internal.utils.urlsr   Ú	getLoggerrL   Úloggerr   rK   r#   r    Ú<module>rf      sG   ðÛ Ý Ý å =Ý 'å Ý (Ý 2Ý 2ß DÝ 3Ý 0à	×	Ò	˜8Ó	$€ôI�Wõ Ir#   