
    4Քh                    t   S SK Jr  S SKrS SKrS SKrS SKrS SKJr  S SKJ	r	  S SK
Jr  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   S SK!J"r"  S SK#J$r$  \RJ                  " \&5      r'SS jr(SS jr)SS jr*SS jr+S S jr,S!S jr-SS jr.S"S jr/S#S jr0 " S S\5      r1g)$    )annotationsN)Values)
ModuleType)Any)where)parse)
cmdoptions)Command)make_target_python)SUCCESS)Configuration)get_environment)open_text_resource)
indent_log)get_pip_versionc                0    [         R                  SX5        g )Nz%s: %s)loggerinfo)namevalues     T/var/www/auris/envauris/lib/python3.13/site-packages/pip/_internal/commands/debug.py
show_valuer      s    
KK$&    c                     [         R                  S5        [        R                  R                  n [        5          [        SU 5        S S S 5        g ! , (       d  f       g = f)Nzsys.implementation:r   )r   r   sysimplementationr   r   r   )implementation_names    r   show_sys_implementationr       s;    
KK%&,,11	6./ 
s   A
Ac                    [        SS5       n U R                  5        Vs/ s H.  nSU;   d  M  UR                  5       R                  SS5      S   PM0     nnS S S 5        [	        S W 5       5      $ s  snf ! , (       d  f       N%= f)Nzpip._vendorz
vendor.txt==    r   c              3  D   #    U  H  oR                  S S5      v   M     g7f)r    r"   N)split).0lines     r   	<genexpr>(create_vendor_txt_map.<locals>.<genexpr>0   s     6

4##s    )r   	readlinesstripr$   dict)fr&   liness      r   create_vendor_txt_mapr.   '   sy    	M<	8A 78kkm
6Cdtt|)DJJLsA&q)m 	 
 
9 6666
 
9	8s!   A6
A1'A1A61A66
Bc                   U R                  5       R                  SS5      n U S:X  a  Sn  [        SU  3[        5       [	        5       SS9  [        [        R                  U 5      $ ! [         a    U S:X  a  [        R                  S	:  a   g e f = f)
N-_
setuptoolspkg_resourceszpip._vendor.r   )level
truststore)   
   )lowerreplace
__import__globalslocalsgetattrpip_vendorImportErrorr   version_info)module_names    r   get_module_from_module_namerC   3   s    ##%--c37Kl"%\+/FHANs{{K00  ,&3+;+;g+Es   8A# #$B	Bc                0   [        U 5      n[        USS 5      nU(       av  U(       do  UR                  c   e[        [        R
                  R                  UR                  5      /5      nUR                  U 5      nU(       a  [        UR                  5      nU$ )N__version__)
rC   r=   __file__r   ospathdirnameget_distributionstrversion)rB   modulerL   envdists        r   get_vendor_version_from_modulerP   E   ss    (5FfmT2Gg***rwwv?@A##K0$,,'GNr   c                    U R                  5        HS  u  pSn[        U5      nU(       d  SnUnO[        U5      [        U5      :w  a  SU S3n[        R	                  SXU5        MU     g)zsLog the actual version and print extra info if there is
a conflict or if the actual version could not be imported.
 zM (Unable to locate actual module version, using vendor.txt specified version)z2 (CONFLICT: vendor.txt suggests version should be )z%s==%s%sN)itemsrP   parse_versionr   r   )vendor_txt_versionsrB   expected_versionextra_messageactual_versions        r   show_actual_vendor_versionsrZ   T   sz     *=)B)B)D%7D1  .N>*m<L.MM'(+  	J]K *Er   c                     [         R                  S5        [        5       n [        5          [	        U 5        S S S 5        g ! , (       d  f       g = f)Nzvendored library versions:)r   r   r.   r   rZ   )rV   s    r   show_vendor_versionsr\   i   s0    
KK,-/1	#$78 
s	   ?
Ac                   Sn[        U 5      nUR                  5       nUR                  5       nSnU(       a  SU S3nS[        U5       U 3n[        R                  U5        U R                  S:  a  [        U5      U:  a  SnUS U nOSn[        5          U H!  n[        R                  [        U5      5        M#     U(       a  S	U S
3n[        R                  U5        S S S 5        g ! , (       d  f       g = f)Nr7   rR   z
 (target: rS   zCompatible tags: r"   TFz...
[First z) tags shown. Pass --verbose to show all.])	r   get_sorted_tagsformat_givenlenr   r   verboser   rK   )	options	tag_limittarget_pythontagsformatted_targetsuffixmsgtags_limitedtags	            r   	show_tagsrk   q   s    I&w/M((*D %113F./q1c$i[
1C
KKs4y94JY	CKKC!   +TUCKK 
s   A
C((
C6c                0   U R                  5        VVs1 s H  u  pUR                  SS5      S   iM     nnnU(       d  g/ SQnU Vs/ s H  oUU;   d  M
  UPM     nnU(       d  gSU;   a  UR                  S5        SR                  U5      $ s  snnf s  snf )N.r"   r   zNot specified)installwheeldownloadglobalz, )rT   r$   removejoin)configkeyr1   levelslevels_that_override_globalr4   global_overriding_levels          r   ca_bundle_infory      s    17@vsciiQ"F@"B!!%.I%I6   #6h99V A
s   !B	BBc                  4    \ rS rSrSrSrSrS	S jrS
S jrSr	g)DebugCommand   z
Display debug information.
z
      %prog <options>Tc                    [         R                  " U R                  5        U R                  R	                  SU R                  5        U R                  R
                  R                  5         g )Nr   )r	   add_target_python_optionscmd_optsparserinsert_option_grouprt   load)selfs    r   add_optionsDebugCommand.add_options   sB    ,,T]];''4==9!r   c                Z   [         R                  S5        [        S[        5       5        [        S[        R
                  5        [        S[        R                  5        [        S[        R                  " 5       5        [        S[        R                  " 5       5        [        S[        R                  " 5       5        [        S[        R                  5        [        5         [        S	[        U R                  R                  5      5        [        S
[         R"                  R%                  S
5      5        [        S[         R"                  R%                  S5      5        [        S['        5       5        [        S[(        R*                  R,                  5        [/        5         [1        U5        [2        $ )NzThis command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.zpip versionzsys.versionzsys.executablezsys.getdefaultencodingzsys.getfilesystemencodingzlocale.getpreferredencodingzsys.platformz'cert' config valueREQUESTS_CA_BUNDLECURL_CA_BUNDLEzpip._vendor.certifi.where()zpip._vendor.DEBUNDLED)r   warningr   r   r   rL   
executablegetdefaultencodinggetfilesystemencodinglocalegetpreferredencodingplatformr   ry   r   rt   rG   environgetr   r>   r?   	DEBUNDLEDr\   rk   r   )r   rb   argss      r   runDebugCommand.run   s   %	
 	=/"34=#++.#S^^4+S-C-C-EF.0I0I0KL)'')	
 	>3<<0!(.9K9K*LM'8L)MN#RZZ^^4D%EF0%':*CKK,A,AB'r    NreturnNone)rb   r   r   z	list[str]r   int)
__name__
__module____qualname____firstlineno____doc__usageignore_require_venvr   r   __static_attributes__r   r   r   r{   r{      s    E"
r   r{   )r   rK   r   r   r   r   r   )r   dict[str, str])rB   rK   r   zModuleType | None)rB   rK   r   z
str | None)rV   r   r   r   )rb   r   r   r   )rt   r   r   rK   )2
__future__r   r   loggingrG   r   optparser   typesr   typingr   pip._vendorr>   pip._vendor.certifir   pip._vendor.packaging.versionr   rU   pip._internal.clir	   pip._internal.cli.base_commandr
   pip._internal.cli.cmdoptionsr   pip._internal.cli.status_codesr   pip._internal.configurationr   pip._internal.metadatar   pip._internal.utils.compatr   pip._internal.utils.loggingr   pip._internal.utils.miscr   	getLoggerr   r   r   r   r.   rC   rP   rZ   r\   rk   ry   r{   r   r   r   <module>r      s    "   	 
     % @ ( 2 ; 2 5 2 9 2 4			8	$'0	7$L*9<"+7 +r   