§
    ÷„tj5  ã                   óª   — d dl Z d dlmZmZmZ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  e j        e¦  «        Z G d	„ d
e	¦  «        ZdS )é    N)ÚIterableÚOptionalÚSetÚTuple)ÚBuildEnvironment)ÚAbstractDistribution)ÚInstallationError)ÚPackageFinder)ÚBaseDistribution)Úrunner_with_spinner_messagec                   óú   — e Zd ZdZedee         fd„¦   «         Zdefd„Z	de
dededdfd	„Zde
ddfd
„Zdee         fd„Zdee         fd„Zde
ddfd„Zdedeeeef                  ddfd„Zdee         ddfd„ZdS )ÚSourceDistributionz½Represents a source distribution.

    The preparation step for these needs metadata for the packages to be
    generated, either using PEP 517 or using the legacy `setup.py egg_info`.
    Úreturnc                 ó@   — | j         j        sJ ‚| j         j        j        S )z/Identify this requirement uniquely by its link.)ÚreqÚlinkÚurl_without_fragment©Úselfs    ú_/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/pip/_internal/distributions/sdist.pyÚbuild_tracker_idz#SourceDistribution.build_tracker_id   s    € ð ŒxŒ}ÐÐˆ}ØŒxŒ}Ô1Ð1ó    c                 ó4   — | j                              ¦   «         S )N)r   Úget_distr   s    r   Úget_metadata_distributionz,SourceDistribution.get_metadata_distribution   s   € ØŒx× Ò Ñ"Ô"Ð"r   ÚfinderÚbuild_isolationÚcheck_build_depsNc                 óò  — | j                              ¦   «          | j         j        o|}|rC|                      |¦  «         | j                              ¦   «          |                      |¦  «         | j         j        o|}|ra| j         j        }|€J ‚| j         j                             |¦  «        \  }}|r|  	                    d|¦  «         |r|  
                    |¦  «         | j                              ¦   «          d S )Núthe backend dependencies)r   Úload_pyproject_tomlÚ
use_pep517Ú_prepare_build_backendÚisolated_editable_sanity_checkÚ_install_build_reqsÚpyproject_requiresÚ	build_envÚcheck_requirementsÚ_raise_conflictsÚ_raise_missing_reqsÚprepare_metadata)	r   r   r   r   Úshould_isolateÚshould_check_depsr&   ÚconflictingÚmissings	            r   Úprepare_distribution_metadataz0SourceDistribution.prepare_distribution_metadata   s  € ð 	Œ×$Ò$Ñ&Ô&Ð&ð œÔ,Ð@°ˆØð 	-ð ×'Ò'¨Ñ/Ô/Ð/ð ŒH×3Ò3Ñ5Ô5Ð5à×$Ò$ VÑ,Ô,Ð,à œHÔ/ÐDÐ4DÐØð 		2Ø!%¤Ô!<ÐØ%Ð1Ð1Ð1Ø#'¤8Ô#5×#HÒ#HØ"ñ$ô $Ñ ˆK˜ð ð OØ×%Ò%Ð&@À+ÑNÔNÐNØð 2Ø×(Ò(¨Ñ1Ô1Ð1ØŒ×!Ò!Ñ#Ô#Ð#Ð#Ð#r   c                 ó  — | j         j        }|€J ‚t          ¦   «         | j         _        | j         j                             ||dd¬¦  «         | j         j                             | j         j        ¦  «        \  }}|r|                      d|¦  «         |rpt           	                    d| j         ¦  «         t           	                    dd 
                    t          t          t          |¦  «        ¦  «        ¦  «        ¦  «         d S d S )NÚoverlayzbuild dependencies©Úkindz"PEP 517/518 supported requirementsz4Missing build requirements in pyproject.toml for %s.z`The project does not specify a build backend, and pip cannot fall back to setuptools without %s.z and )r   r&   r   r'   Úinstall_requirementsr(   Úrequirements_to_checkr)   ÚloggerÚwarningÚjoinÚmapÚreprÚsorted)r   r   r&   r.   r/   s        r   r#   z)SourceDistribution._prepare_build_backendE   s  € ð "œXÔ8ÐØ!Ð-Ð-Ð-å-Ñ/Ô/ˆŒÔØŒÔ×/Ò/ØÐ&¨	Ð8Lð 	0ñ 	
ô 	
ð 	
ð  $œxÔ1×DÒDØŒHÔ*ñ 
ô  
Ñˆ�Wð ð 	UØ×!Ò!Ð"FÈÑTÔTÐTØð 		Ý�NŠNØFØ”ñô ð õ �NŠNðAà—’�S¥¥v¨g¡¤Ñ7Ô7Ñ8Ô8ñô ð ð ð ð		ð 		r   c                 ó*  — | j         j        5  t          d¦  «        }| j         j        }|€J ‚|                     |¦  «        5  |                     ¦   «         cd d d ¦  «         cd d d ¦  «         S # 1 swxY w Y   	 d d d ¦  «         d S # 1 swxY w Y   d S )Nz#Getting requirements to build wheel)r   r'   r   Úpep517_backendÚsubprocess_runnerÚget_requires_for_build_wheel©r   ÚrunnerÚbackends      r   Ú_get_build_requires_wheelz,SourceDistribution._get_build_requires_wheel_   s:  € ØŒXÔð 	>ð 	>Ý0Ð1VÑWÔWˆFØ”hÔ-ˆGØÐ&Ð&Ð&Ø×*Ò*¨6Ñ2Ô2ð >ð >Ø×;Ò;Ñ=Ô=ð>ð >ð >ð >ñ >ô >ð >ð		>ð 	>ð 	>ð 	>ñ 	>ô 	>ð 	>ð 	>ð>ð >ð >ð >øøøð >ð >ð >ð >ð >ð		>ð 	>ð 	>ñ 	>ô 	>ð 	>ð 	>ð 	>ð 	>ð 	>ð 	>ð 	>øøøð 	>ð 	>ð 	>ð 	>ð 	>ð 	>ó5   �5BÁA/ÁBÁ/A3	Á3BÁ6A3	Á7BÂBÂBc                 ó*  — | j         j        5  t          d¦  «        }| j         j        }|€J ‚|                     |¦  «        5  |                     ¦   «         cd d d ¦  «         cd d d ¦  «         S # 1 swxY w Y   	 d d d ¦  «         d S # 1 swxY w Y   d S )Nz&Getting requirements to build editable)r   r'   r   r>   r?   Úget_requires_for_build_editablerA   s      r   Ú_get_build_requires_editablez/SourceDistribution._get_build_requires_editableg   sn  € ØŒXÔð 	Að 	AÝ0Ø8ñô ˆFð ”hÔ-ˆGØÐ&Ð&Ð&Ø×*Ò*¨6Ñ2Ô2ð Að AØ×>Ò>Ñ@Ô@ðAð Að Að Añ Aô Að Að	Að 	Að 	Að 	Añ 	Aô 	Að 	Að 	AðAð Að Að Aøøøð Að Að Að Að Að	Að 	Að 	Añ 	Aô 	Að 	Að 	Að 	Að 	Að 	Að 	Að 	Aøøøð 	Að 	Að 	Að 	Að 	Að 	ArE   c                 ót  — | j         j        r:| j         j        r.| j                              ¦   «         r|                      ¦   «         }n|                      ¦   «         }| j         j                             |¦  «        \  }}|r|                      d|¦  «         | j         j         	                    ||dd¬¦  «         d S )Nr    Únormalzbackend dependenciesr3   )
r   ÚeditableÚpermit_editable_wheelsÚsupports_pyproject_editablerH   rD   r'   r(   r)   r5   )r   r   Ú
build_reqsr.   r/   s        r   r%   z&SourceDistribution._install_build_reqsq   sÏ   € ð
 ŒHÔð	:à”Ô/ð	:ð ”×4Ò4Ñ6Ô6ð	:ð
 ×:Ò:Ñ<Ô<ˆJˆJà×7Ò7Ñ9Ô9ˆJØ#œxÔ1×DÒDÀZÑPÔPÑˆ�WØð 	KØ×!Ò!Ð"<¸kÑJÔJÐJØŒÔ×/Ò/Ø�G˜XÐ,Bð 	0ñ 	
ô 	
ð 	
ð 	
ð 	
r   Úconflicting_withÚconflicting_reqsc           
      ó²   — d}|                      | j        |d                     d„ t          |¦  «        D ¦   «         ¦  «        ¬¦  «        }t	          |¦  «        ‚)NzZSome build dependencies for {requirement} conflict with {conflicting_with}: {description}.ú, c              3   ó*   K  — | ]\  }}|› d |› �V — ŒdS )z is incompatible with N© )Ú.0Ú	installedÚwanteds      r   ú	<genexpr>z6SourceDistribution._raise_conflicts.<locals>.<genexpr>Ž   sH   è è € ð "ð "á%�I˜vð Ð<Ð<°FÐ<Ð<ð"ð "ð "ð "ð "ð "r   )ÚrequirementrO   Údescription)Úformatr   r9   r<   r	   )r   rO   rP   Úformat_stringÚerror_messages        r   r)   z#SourceDistribution._raise_conflicts„   sv   € ð?ð 	ð &×,Ò,ØœØ-ØŸ	š	ð "ð "å)/Ð0@Ñ)AÔ)Að"ñ "ô "ñ ô ð -ñ 
ô 
ˆõ   Ñ.Ô.Ð.r   r/   c                 óÂ   — d}|                      | j        d                     t          t          t          |¦  «        ¦  «        ¦  «        ¬¦  «        }t          |¦  «        ‚)NzASome build dependencies for {requirement} are missing: {missing}.rR   )rY   r/   )r[   r   r9   r:   r;   r<   r	   )r   r/   r\   r]   s       r   r*   z&SourceDistribution._raise_missing_reqs•   sY   € àOð 	ð &×,Ò,Øœ¨$¯)ª)µC½½fÀW¹o¼oÑ4NÔ4NÑ*OÔ*Oð -ñ 
ô 
ˆõ   Ñ.Ô.Ð.r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   Ústrr   r   r   r
   Úboolr0   r#   r   rD   rH   r%   r   r   r)   r*   rT   r   r   r   r      s†  € € € € € ðð ð ð2 (¨3¤-ð 2ð 2ð 2ñ „Xð2ð
#Ð+;ð #ð #ð #ð #ð%$àð%$ð ð%$ð ð	%$ð
 
ð%$ð %$ð %$ð %$ðN¨]ð ¸tð ð ð ð ð4>¨8°C¬=ð >ð >ð >ð >ðA¨h°s¬mð Að Að Að Að
¨-ð 
¸Dð 
ð 
ð 
ð 
ð&/Ø #ð/Ø7:¸5ÀÀcÀ¼?Ô7Kð/à	ð/ð /ð /ð /ð"/¨3¨s¬8ð /¸ð /ð /ð /ð /ð /ð /r   r   )ÚloggingÚtypingr   r   r   r   Úpip._internal.build_envr   Ú pip._internal.distributions.baser   Úpip._internal.exceptionsr	   Ú"pip._internal.index.package_finderr
   Úpip._internal.metadatar   Úpip._internal.utils.subprocessr   Ú	getLoggerr_   r7   r   rT   r   r   ú<module>ro      sï   ðØ €€€Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1à 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø AÐ AÐ AÐ AÐ AÐ AØ 6Ð 6Ð 6Ð 6Ð 6Ð 6Ø <Ð <Ð <Ð <Ð <Ð <Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø FÐ FÐ FÐ FÐ FÐ Fà	ˆÔ	˜8Ñ	$Ô	$€ðN/ð N/ð N/ð N/ð N/Ð-ñ N/ô N/ð N/ð N/ð N/r   