
    -iE                        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Jr  \" \5      r " S	 S
\\\\4   5      r " S S\\\\4   5      rg)    )annotations)defaultdict)Mapping)	getLogger)Any)BaseReporter   )	Candidate
ConstraintRequirementc                  ,    \ rS rSrSSS jjrSS jrSrg)	PipReporter   Nc                b    [        [        5      U l        U=(       d    0 U l        SSSS.U l        g )Nzpip is looking at multiple versions of {package_name} to determine which version is compatible with other requirements. This could take a while.zpip is still looking at multiple versions of {package_name} to determine which version is compatible with other requirements. This could take a while.zThis is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.)r	         )r   intreject_count_by_package_constraints_messages_at_reject_count)selfconstraintss     _/var/www/html/venv/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/reporter.py__init__PipReporter.__init__   s6    >I#>N$'-29
9
K*
&    c                   U R                   UR                  ==   S-  ss'   U R                   UR                     nX0R                  ;   a<  U R                  U   n[        R	                  SUR                  UR                  S95        SnUR                   H\  nUR                  UR                  pUS-  nU(       a  XXR                   SUR                   S3-  nOUS-  nXWR                  5       -  nM^     U R                  (       aW  UR                  n	U R                  R                  U	5      n
U
(       a)  U
R                  (       a  U	 U
R                   3nUS	U 3-  n[        R                  U5        g
)zReport a candidate being rejected.

Logs both the rejection count message (if applicable) and details about
the requirements and constraints that caused the rejection.
r	   zINFO: %s)package_namez0Will try a different candidate, due to conflict:z
     z depends on zThe user requested z%
    The user requested (constraint) N)r   namer   loggerinfoformatinformationrequirementparentversionformat_for_errorr   get	specifierdebug)r   	criterion	candidatecountmessagemsgreq_inforeqr&   r    
constraintconstraint_texts               r   rejecting_candidatePipReporter.rejecting_candidate'   s@    	$$Y^^494,,Y^^<22244U;GKK
GNN	N$OP@!--H"..8OC++a'7|DD,,''))C . >>D**..t4Jj22%)F:+?+?*@"A??PQQSr   )r   r   r   )N)r   zMapping[str, Constraint] | NonereturnNoner,   r   r-   r
   r7   r8   )__name__
__module____qualname____firstlineno__r   r5   __static_attributes__ r   r   r   r      s    
.r   r   c                  j    \ rS rSrS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
rg)PipDebuggingReporterI   z9A reporter that does an info log for every event it sees.c                .    [         R                  S5        g )NzReporter.starting()r!   r"   )r   s    r   startingPipDebuggingReporter.startingL   s    )*r   c                0    [         R                  SU5        g )NzReporter.starting_round(%r)rD   )r   indexs     r   starting_round#PipDebuggingReporter.starting_roundO   s    159r   c                \    [         R                  SU5        [         R                  SX5        g )Nz Reporter.ending_round(%r, state)zReporter.ending_round(%r, %r))r!   r"   r+   )r   rH   states      r   ending_round!PipDebuggingReporter.ending_roundR   s     6>4eCr   c                0    [         R                  SU5        g )NzReporter.ending(%r)rD   )r   rL   s     r   endingPipDebuggingReporter.endingV   s    )51r   c                0    [         R                  SX5        g )Nz#Reporter.adding_requirement(%r, %r)rD   )r   r%   r&   s      r   adding_requirement'PipDebuggingReporter.adding_requirementY   s     	9;Or   c                0    [         R                  SX5        g )Nz$Reporter.rejecting_candidate(%r, %r)rD   )r   r,   r-   s      r   r5   (PipDebuggingReporter.rejecting_candidate^   s    :IQr   c                0    [         R                  SU5        g )NzReporter.pinning(%r)rD   )r   r-   s     r   pinningPipDebuggingReporter.pinninga   s    *I6r   r?   N)r7   r8   )rH   r   r7   r8   )rH   r   rL   r   r7   r8   )rL   r   r7   r8   )r%   r   r&   zCandidate | Noner7   r8   r9   )r-   r
   r7   r8   )r:   r;   r<   r=   __doc__rE   rI   rM   rP   rS   r5   rX   r>   r?   r   r   rA   rA   I   sF    C+:D2P&P0@P	P
R7r   rA   N)
__future__r   collectionsr   collections.abcr   loggingr   typingr    pip._vendor.resolvelib.reportersr   baser
   r   r   r:   r!   strr   rA   r?   r   r   <module>rc      sX    " # #   9 4 4	8	7,{Is:; 7t7<Y(CD 7r   