§
    �’j°  ã                  óÔ   — d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ ddlmZmZmZ  ee¦  «        Z G d	„ d
eeeef         ¦  «        Z G d„ deeeef         ¦  «        ZdS )é    )Úannotations)Údefaultdict)ÚMapping)Ú	getLogger)ÚAny)ÚBaseReporteré   )Ú	CandidateÚ
ConstraintÚRequirementc                  ó    — e Zd Zddd„Zdd„ZdS )ÚPipReporterNÚconstraintsúMapping[str, Constraint] | NoneÚreturnÚNonec                ó`   — t          t          ¦  «        | _        |pi | _        ddddœ| _        d S )Nz�pip is looking at multiple versions of {package_name} to determine which version is compatible with other requirements. This could take a while.z–pip is still looking at multiple versions of {package_name} to determine which version is compatible with other requirements. This could take a while.zëThis 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)Úselfr   s     úZC:\Projects\DSCons\.venv\Lib\site-packages\pip\_internal\resolution\resolvelib\reporter.pyÚ__init__zPipReporter.__init__   sD   € Ý>IÍ#Ñ>NÔ>NˆÔ$Ø'Ð-¨2ˆÔð9ð
9ð
Kð*
ð *
ˆÔ&Ð&Ð&ó    Ú	criterionr   Ú	candidater
   c                ón  — | j         |j        xx         dz  cc<   | j         |j                 }|| j        v rA| j        |         }t                               d|                     |j        ¬¦  «        ¦  «         d}|j        D ]I}|j        |j        }}|dz  }|r||j        › d|j	        › d�z  }n|dz  }|| 
                    ¦   «         z  }ŒJ| j        rJ|j        }	| j                             |	¦  «        }
|
r'|
j        r |	› |
 
                    ¦   «         › �}|d	|› �z  }t                               |¦  «         d
S )zÀReport 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   r   r   ÚcountÚmessageÚmsgÚreq_infoÚreqr)   r#   Ú
constraintÚconstraint_texts               r   Úrejecting_candidatezPipReporter.rejecting_candidate'   ss  € ð 	Ô$ Y¤^Ð4Ð4Ô4¸Ñ9Ð4Ð4Ñ4àÔ,¨Y¬^Ô<ˆØ�DÔ2Ð2Ð2ØÔ4°UÔ;ˆGÝ�KŠK˜
 G§N¢NÀ	Ä NÑ$OÔ$OÑPÔPÐPà@ˆØ!Ô-ð 	*ð 	*ˆHØ"Ô.°´�ˆCØ�8‰OˆCØð -Ø˜&œ+ÐDÐD¨¬ÐDÐDÐDÑD��àÐ,Ñ,�Ø�3×'Ò'Ñ)Ô)Ñ)ˆCˆCð Ôð 	RØ”>ˆDØÔ*×.Ò.¨tÑ4Ô4ˆJØð R˜jÔ2ð RØ%)Ð"J¨:×+FÒ+FÑ+HÔ+HÐ"JÐ"J�ØÐQÀÐQÐQÑQ�å�Š�SÑÔÐÐÐr   )N)r   r   r   r   ©r   r   r   r
   r   r   )Ú__name__Ú
__module__Ú__qualname__r   r6   © r   r   r   r      sA   € € € € € ð
ð 
ð 
ð 
ð 
ð.ð ð ð ð ð r   r   c                  óJ   — e Zd ZdZdd„Zdd„Zdd
„Zdd„Zdd„Zdd„Z	dd„Z
dS )ÚPipDebuggingReporterz9A reporter that does an info log for every event it sees.r   r   c                ó:   — t                                d¦  «         d S )NzReporter.starting()©r$   r%   )r   s    r   ÚstartingzPipDebuggingReporter.startingL   s   € Ý�ŠÐ)Ñ*Ô*Ð*Ð*Ð*r   Úindexr   c                ó<   — t                                d|¦  «         d S )NzReporter.starting_round(%r)r?   )r   rA   s     r   Ústarting_roundz#PipDebuggingReporter.starting_roundO   s   € Ý�ŠÐ1°5Ñ9Ô9Ð9Ð9Ð9r   Ústater   c                ót   — t                                d|¦  «         t                                d||¦  «         d S )Nz Reporter.ending_round(%r, state)zReporter.ending_round(%r, %r))r$   r%   r.   )r   rA   rD   s      r   Úending_roundz!PipDebuggingReporter.ending_roundR   s4   € Ý�ŠÐ6¸Ñ>Ô>Ð>Ý�ŠÐ4°e¸UÑCÔCÐCÐCÐCr   c                ó<   — t                                d|¦  «         d S )NzReporter.ending(%r)r?   )r   rD   s     r   ÚendingzPipDebuggingReporter.endingV   s   € Ý�ŠÐ)¨5Ñ1Ô1Ð1Ð1Ð1r   r(   r   r)   úCandidate | Nonec                ó>   — t                                d||¦  «         d S )Nz#Reporter.adding_requirement(%r, %r)r?   )r   r(   r)   s      r   Úadding_requirementz'PipDebuggingReporter.adding_requirementY   s!   € õ 	�ŠÐ9¸;ÈÑOÔOÐOÐOÐOr   r   r   r
   c                ó>   — t                                d||¦  «         d S )Nz$Reporter.rejecting_candidate(%r, %r)r?   )r   r   r   s      r   r6   z(PipDebuggingReporter.rejecting_candidate^   s   € Ý�ŠÐ:¸IÀyÑQÔQÐQÐQÐQr   c                ó<   — t                                d|¦  «         d S )NzReporter.pinning(%r)r?   )r   r   s     r   ÚpinningzPipDebuggingReporter.pinninga   s   € Ý�ŠÐ*¨IÑ6Ô6Ð6Ð6Ð6r   N)r   r   )rA   r   r   r   )rA   r   rD   r   r   r   )rD   r   r   r   )r(   r   r)   rI   r   r   r7   )r   r
   r   r   )r8   r9   r:   Ú__doc__r@   rC   rF   rH   rK   r6   rN   r;   r   r   r=   r=   I   s²   € € € € € ØCÐCð+ð +ð +ð +ð:ð :ð :ð :ðDð Dð Dð Dð2ð 2ð 2ð 2ðPð Pð Pð Pð
Rð Rð Rð Rð7ð 7ð 7ð 7ð 7ð 7r   r=   N)Ú
__future__r   Úcollectionsr   Úcollections.abcr   Úloggingr   Útypingr   Ú pip._vendor.resolvelib.reportersr   Úbaser
   r   r   r8   r$   Ústrr   r=   r;   r   r   ú<module>rX      s  ðØ "Ð "Ð "Ð "Ð "Ð "à #Ð #Ð #Ð #Ð #Ð #Ø #Ð #Ð #Ð #Ð #Ð #Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð à 9Ð 9Ð 9Ð 9Ð 9Ð 9à 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4à	ˆ�8Ñ	Ô	€ð7ð 7ð 7ð 7ð 7�,˜{¨I°sÐ:Ô;ñ 7ô 7ð 7ðt7ð 7ð 7ð 7ð 7˜<¨°YÀÐ(CÔDñ 7ô 7ð 7ð 7ð 7r   