ó
    ¢'Ôiã  ã                  óÀ   • S SK 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  \(       a  S S
KJr  \R$                  " \5      r " S S\
5      rg)é    )ÚannotationsN)ÚIterable)ÚTYPE_CHECKING)ÚBuildEnvironment)ÚAbstractDistribution)ÚInstallationError)ÚBaseDistribution)Úrunner_with_spinner_message)ÚBuildEnvironmentInstallerc                  ó¨   • \ rS rSrSr\SS j5       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S jrSrg)ÚSourceDistributioné   zsRepresents a source distribution.

The preparation step for these needs metadata for the packages to be
generated.
c                ó|   • U R                   R                  (       d   eU R                   R                  R                  $ )z/Identify this requirement uniquely by its link.)ÚreqÚlinkÚurl_without_fragment©Úselfs    Ú`/var/www/surfInsights/venv3-11/lib/python3.13/site-packages/pip/_internal/distributions/sdist.pyÚbuild_tracker_idÚ#SourceDistribution.build_tracker_id   s(   € ð �x‰x�}�}Ðˆ}Ø�x‰x�}‰}×1Ñ1Ð1ó    c                ó6   • U R                   R                  5       $ )N)r   Úget_distr   s    r   Úget_metadata_distributionÚ,SourceDistribution.get_metadata_distribution    s   € Ø�x‰x× Ñ Ó"Ð"r   c                ó  • U R                   R                  5         U(       a=  U R                  U5        U R                   R                  5         U R	                  U5        OU R                   R                  5         U(       as  U R                   R
                  nUc   eU R                   R                  R                  U5      u  pVU(       a  U R                  SU5        U(       a  U R                  U5        U R                   R                  5         g )Núthe backend dependencies)r   Úload_pyproject_tomlÚ_prepare_build_backendÚeditable_sanity_checkÚ_install_build_reqsÚpyproject_requiresÚ	build_envÚcheck_requirementsÚ_raise_conflictsÚ_raise_missing_reqsÚprepare_metadata)r   Úbuild_env_installerÚbuild_isolationÚcheck_build_depsr#   ÚconflictingÚmissings          r   Úprepare_distribution_metadataÚ0SourceDistribution.prepare_distribution_metadata#   sÓ   € ð 	�‰×$Ñ$Ô&ö ð ×'Ñ'Ð(;Ô<ð
 �H‰H×*Ñ*Ô,à×$Ñ$Ð%8Õ9ð �H‰H×*Ñ*Ô,æØ!%§¡×!<Ñ!<ÐØ%Ñ1Ð1Ð1Ø#'§8¡8×#5Ñ#5×#HÑ#HØ"ó$Ñ ˆKö Ø×%Ñ%Ð&@À+ÔNÞØ×(Ñ(¨Ô1Ø�‰×!Ñ!Õ#r   c                ó>  • U R                   R                  nUc   e[        U5      U R                   l        U R                   R                  R	                  USSU R                   S9  U R                   R                  R                  U R                   R                  5      u  p4U(       a  U R                  SU5        U(       a]  [        R                  SU R                   5        [        R                  SSR                  [        [        [        U5      5      5      5        g g )NÚoverlayzbuild dependencies©ÚkindÚfor_reqz"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    Ú)SourceDistribution._prepare_build_backendI   sè   € ð
 "ŸX™X×8Ñ8ÐØ!Ñ-Ð-Ð-ä-Ð.AÓBˆ�‰ÔØ�‰×Ñ×/Ñ/Ø 	Ð0DÈdÏhÉhð 	0ñ 	
ð  $Ÿx™x×1Ñ1×DÑDØ�H‰H×*Ñ*ó 
Ñˆö Ø×!Ñ!Ð"FÈÔTÞÜ�N‰NØFØ—‘ôô �N‰NðAà—‘œS¤¤v¨g£Ó7Ó8õð r   c                ó<  • U R                   R                     [        S5      nU R                   R                  nUc   eUR	                  U5         UR                  5       sS S S 5        sS S S 5        $ ! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)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_wheelÚ,SourceDistribution._get_build_requires_wheele   sw   € Ø�X‰X×ÓÜ0Ð1VÓWˆFØ—h‘h×-Ñ-ˆGØÑ&Ð&Ð&Ø×*Ñ*¨6Õ2Ø×;Ñ;Ó=÷ 3Ð2÷	  Ñ÷ 3Õ2úÐ2÷	  ×Öúó#   —8BÁA2Á	BÁ2
B 	Á<BÂ
Bc                ó<  • U R                   R                     [        S5      nU R                   R                  nUc   eUR	                  U5         UR                  5       sS S S 5        sS S S 5        $ ! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Nz&Getting requirements to build editable)r   r$   r
   r?   r@   Úget_requires_for_build_editablerB   s      r   Ú_get_build_requires_editableÚ/SourceDistribution._get_build_requires_editablem   s{   € Ø�X‰X×ÓÜ0Ø8óˆFð —h‘h×-Ñ-ˆGØÑ&Ð&Ð&Ø×*Ñ*¨6Õ2Ø×>Ñ>Ó@÷ 3Ð2÷  Ñ÷ 3Õ2úÐ2÷  ×ÖúrG   c                óÈ  • U R                   R                  (       aG  U R                   R                  (       a,  U R                   R                  (       a  U R	                  5       nOU R                  5       nU R                   R                  R                  U5      u  p4U(       a  U R                  SU5        U R                   R                  R                  USSU R                   S9  g )Nr   Únormalzbackend dependenciesr2   )
r   ÚeditableÚpermit_editable_wheelsÚsupports_pyproject_editablerJ   rE   r$   r%   r&   r5   )r   r)   Ú
build_reqsr,   r-   s        r   r"   Ú&SourceDistribution._install_build_reqsw   s£   € ð �H‰H××Ø—‘×/×/Ø—‘×4×4à×:Ñ:Ó<‰Jà×7Ñ7Ó9ˆJØ#Ÿx™x×1Ñ1×DÑDÀZÓPÑˆÞØ×!Ñ!Ð"<¸kÔJØ�‰×Ñ×/Ñ/Ø�XÐ$:ÀDÇHÁHð 	0ò 	
r   c           
     ó�   • SnUR                  U R                  USR                  S [        U5       5       5      S9n[	        U5      e)NzZSome build dependencies for {requirement} conflict with {conflicting_with}: {description}.ú, c              3  ó4   #   • U  H  u  pU S U 3v •  M     g7f)z is incompatible with N© )Ú.0Ú	installedÚwanteds      r   Ú	<genexpr>Ú6SourceDistribution._raise_conflicts.<locals>.<genexpr>–   s&   é € ð "â)AÑ%�Ið �+Ð3°F°8Õ<Ú)Aùs   ‚)ÚrequirementÚconflicting_withÚdescription)Úformatr   r9   r<   r   )r   r]   Úconflicting_reqsÚformat_stringÚerror_messages        r   r&   Ú#SourceDistribution._raise_conflictsŒ   sY   € ð?ð 	ð &×,Ñ,ØŸ™Ø-ØŸ	™	ñ "ä)/Ð0@Ô)Aó"ó ð -ð 
ˆô   Ó.Ð.r   c                óœ   • SnUR                  U R                  SR                  [        [        [        U5      5      5      S9n[        U5      e)NzASome build dependencies for {requirement} are missing: {missing}.rT   )r\   r-   )r_   r   r9   r:   r;   r<   r   )r   r-   ra   rb   s       r   r'   Ú&SourceDistribution._raise_missing_reqs�   sK   € àOð 	ð &×,Ñ,ØŸ™¨$¯)©)´C¼¼fÀW»oÓ4NÓ*Oð -ð 
ˆô   Ó.Ð.r   rV   N)Úreturnz
str | None)rf   r	   )r)   r   r*   Úboolr+   rg   rf   ÚNone)r)   r   rf   rh   )rf   zIterable[str])r]   Ústrr`   zset[tuple[str, str]]rf   rh   )r-   zset[str]rf   rh   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úpropertyr   r   r.   r    rE   rJ   r"   r&   r'   Ú__static_attributes__rV   r   r   r   r      s£   † ñð ó2ó ð2ô
#ð$$à6ð$$ð ð$$ð ð	$$ð
 
ô$$ðLØ#<ðà	ôô8>ôAð
Ø#<ð
à	ô
ð*/Ø #ð/Ø7Kð/à	ô/÷"/r   r   )Ú
__future__r   ÚloggingÚcollections.abcr   Útypingr   Úpip._internal.build_envr   Ú pip._internal.distributions.baser   Úpip._internal.exceptionsr   Úpip._internal.metadatar	   Úpip._internal.utils.subprocessr
   r   Ú	getLoggerrj   r7   r   rV   r   r   Ú<module>r{      sE   ðÝ "ã Ý $Ý  å 4Ý AÝ 6Ý 3Ý FæÝAà	×	Ò	˜8Ó	$€ôQ/Ð-õ Q/r   