
    q"h                        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	J
r
Jr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%  \RL                  " \'5      r(S\)S\	SS4S jr*S"S jr+S\
\)\)4   4S jr,S\)S\\   4S jr-S\)S\\)   4S jr.S\
\)\)4   SS4S jr/S"S jr0S\SS4S jr1S\S\)4S jr2 " S  S!\5      r3g)#    N)Values)
ModuleType)AnyDictListOptional)where)parse)
cmdoptions)Command)make_target_python)SUCCESS)Configuration)get_environment)open_text_resource)
indent_log)get_pip_versionnamevaluereturnc                 0    [         R                  SX5        g )Nz%s: %s)loggerinfo)r   r   s     N/var/www/html/env/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>.   s     6

4##s    )r   	readlinesstripr'   dict)fr)   liness      r   create_vendor_txt_mapr1   %   sy    	M<	8A 78kkm
6Cdtt|)DJJLsA&q)m 	 
 
9 6666
 
9	8s!   A6
A1'A1A61A66
Bmodule_namec                    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)r2   s    r   get_module_from_module_namerF   1   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__)
rF   rA   __file__r   ospathdirnameget_distributionstrversion)r2   modulerO   envdists        r   get_vendor_version_from_modulerS   C   ss    (5FfmT2Gg***rwwv?@A##K0$,,'GNr   vendor_txt_versionsc                     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)itemsrS   parse_versionr   r   )rT   r2   expected_versionextra_messageactual_versions        r   show_actual_vendor_versionsr]   R   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   r1   r   r]   )rT   s    r   show_vendor_versionsr_   g   s0    
KK,-/1	#$78 
s	   ?
Aoptionsc                    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)Nr;   rV   z
 (target: rW   zCompatible tags: r%   TFz...
[First z) tags shown. Pass --verbose to show all.])	r   get_sorted_tagsformat_givenlenr   r   verboser   rN   )	r`   	tag_limittarget_pythontagsformatted_targetsuffixmsgtags_limitedtags	            r   	show_tagsrn   o   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configc                 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, )rX   r'   removejoin)ro   keyr5   levelslevels_that_override_globalr8   global_overriding_levels          r   ca_bundle_infor|      s    17@vsciiQ"F@"B!!%.I%I6   #6h99V A
s   !B	BBc                   F    \ rS rSrSrSrSrSS jrS\S	\	\
   S\4S
 jrSrg)DebugCommand   z
Display debug information.
z
      %prog <options>Tr   Nc                     [         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_groupro   load)selfs    r   add_optionsDebugCommand.add_options   sB    ,,T]];''4==9!r   r`   argsc                 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   rO   
executablegetdefaultencodinggetfilesystemencodinglocalegetpreferredencodingplatformr!   r|   r   ro   rJ   environgetr	   rB   rC   	DEBUNDLEDr_   rn   r   )r   r`   r   s      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    r   N)__name__
__module____qualname____firstlineno____doc__usageignore_require_venvr   r   r   rN   intr   __static_attributes__r   r   r   r~   r~      s7    E"
6 c s r   r~   r   )4r   loggingrJ   r   optparser   typesr   typingr   r   r   r   pip._vendorrB   pip._vendor.certifir	   pip._vendor.packaging.versionr
   rY   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   rN   r   r!   r1   rF   rS   r]   r_   rn   r|   r~   r   r   r   <module>r      s     	 
   , ,  % @ ( 2 ; 2 5 2 9 2 4			8	$'S ' ' '0	7tCH~ 	7S Xj5I $  LT#s(^ L L*9v $ <= S "+7 +r   