
    /h	                         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
mZ  ee          Z G d de          Z G d	 d
e          ZdS )    )defaultdict)	getLogger)AnyDefaultDict)BaseReporter   )	CandidateRequirementc                   &    e Zd ZddZdeddfdZdS )PipReporterreturnNc                 N    t          t                    | _        dddd| _        d S )Nzpip is 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backtracks_by_package_messages_at_backtrackselfs    _/var/www/html/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/reporter.py__init__zPipReporter.__init__   s7    <G<L<L"9
9
K'
 '
###    	candidatec                     | j         |j        xx         dz  cc<   | j         |j                 }|| j        vrd S | j        |         }t                              d|                    |j                             d S )Nr   zINFO: %s)package_name)r   namer   loggerinfoformat)r   r   countmessages       r   backtrackingzPipReporter.backtracking#   s|    "9>222a7222*9>:333F-e4JIN K KLLLLLr   r   N)__name__
__module____qualname__r   r	   r"    r   r   r   r      sR        
 
 
 
,Mi MD M M M M M Mr   r   c                       e Zd ZdZddZdeddfdZdededdfdZdeddfd	Z	d
e
deddfdZdeddfdZdeddfdZdS )PipDebuggingReporterz9A reporter that does an info log for every event it sees.r   Nc                 :    t                               d           d S )NzReporter.starting()r   r   r   s    r   startingzPipDebuggingReporter.starting1   s    )*****r   indexc                 <    t                               d|           d S )NzReporter.starting_round(%r)r+   )r   r-   s     r   starting_roundz#PipDebuggingReporter.starting_round4   s    1599999r   statec                 <    t                               d|           d S )Nz Reporter.ending_round(%r, state)r+   )r   r-   r0   s      r   ending_roundz!PipDebuggingReporter.ending_round7   s    6>>>>>r   c                 <    t                               d|           d S )NzReporter.ending(%r)r+   )r   r0   s     r   endingzPipDebuggingReporter.ending:   s    )511111r   requirementparentc                 >    t                               d||           d S )Nz#Reporter.adding_requirement(%r, %r)r+   )r   r5   r6   s      r   adding_requirementz'PipDebuggingReporter.adding_requirement=   s    9;OOOOOr   r   c                 <    t                               d|           d S )NzReporter.backtracking(%r)r+   r   r   s     r   r"   z!PipDebuggingReporter.backtracking@   s    /;;;;;r   c                 <    t                               d|           d S )NzReporter.pinning(%r)r+   r:   s     r   pinningzPipDebuggingReporter.pinningC   s    *I66666r   r#   )r$   r%   r&   __doc__r,   r   r/   r   r2   r4   r
   r	   r8   r"   r<   r'   r   r   r)   r)   .   s       CC+ + + +:C :D : : : :?# ?c ?d ? ? ? ?2C 2D 2 2 2 2Pk P9 PQU P P P P<i <D < < < <7 7t 7 7 7 7 7 7r   r)   N)collectionsr   loggingr   typingr   r    pip._vendor.resolvelib.reportersr   baser	   r
   r$   r   r   r)   r'   r   r   <module>rC      s    # # # # # #       # # # # # # # # 9 9 9 9 9 9 ( ( ( ( ( ( ( (	8		M M M M M, M M MD7 7 7 7 7< 7 7 7 7 7r   