ó
    T=ŒjË  ã                  ó¬   • 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
JrJr  S SKJr  S SKJr  SS	 jrSS
 jr\" S/ SQ5      r        SS jrg)é    )ÚannotationsN)Ú
namedtuple)ÚAny)ÚInvalidRequirement)ÚInstallationErrorÚInvalidPyProjectBuildRequiresÚMissingPyProjectBuildRequires)Útomllib)Úget_requirementc                óT   • [        U [        5      =(       a    [        S U  5       5      $ )Nc              3  óB   #   • U  H  n[        U[        5      v •  M     g 7f)N)Ú
isinstanceÚstr)Ú.0Úitems     Ú[/Users/stevendouglas/BidBrain/.venv/lib/python3.13/site-packages/pip/_internal/pyproject.pyÚ	<genexpr>Ú"_is_list_of_str.<locals>.<genexpr>   s   é € Ð(OÊ3À4¬°D¼#×)>Ð)>Ê3ùs   ‚)r   ÚlistÚall)Úobjs    r   Ú_is_list_of_strr      s   € Ü�cœ4Ó ×O¤SÑ(OÉ3Ó(OÓ%OÐOó    c                óB   • [         R                  R                  U S5      $ )Nzpyproject.toml)ÚosÚpathÚjoin)Úunpacked_source_directorys    r   Úmake_pyproject_pathr      s   € Ü�7‰7�<‰<Ð1Ð3CÓDÐDr   ÚBuildSystemDetails)ÚrequiresÚbackendÚcheckÚbackend_pathc                óÈ  • [         R                  R                  U 5      n[         R                  R                  U5      nU(       d  U(       d  [        U S35      eU(       aI  [	        U SS9 n[
        R                  " UR                  5       5      nSSS5        WR                  S5      nOSnUc  S/SS.nS	U;  a	  [        US
9eUS	   n[        U5      (       d
  [        USS9eU H  n	 [        U	5        M     UR                  S5      nUR                  S/ 5      n/ nUc  SnS/n[        X‹XÜ5      $ ! , (       d  f       N§= f! [         a  n
[        USU	< 3S9U
eSn
A
ff = f)a|  Load the pyproject.toml file.

Parameters:
    pyproject_toml - Location of the project's pyproject.toml file
    setup_py - Location of the project's setup.py file
    req_name - The name of the requirement we're processing (for
               error reporting)

Returns:
    None if we should use the legacy code path, otherwise a tuple
    (
        requirements from pyproject.toml,
        name of PEP 517 backend,
        requirements we should check are installed after setting
            up the build environment
        directory paths to import the backend from (backend-path),
            relative to the project root.
    )
zW does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.zutf-8)ÚencodingNzbuild-systemzsetuptools>=40.8.0z setuptools.build_meta:__legacy__)r!   úbuild-backendr!   )ÚpackagezIt is not a list of strings.)r(   Úreasonz$It contains an invalid requirement: r'   zbackend-path)r   r   Úisfiler   Úopenr
   ÚloadsÚreadÚgetr	   r   r   r   r   r    )Úpyproject_tomlÚsetup_pyÚreq_nameÚhas_pyprojectÚ	has_setupÚfÚpp_tomlÚbuild_systemr!   ÚrequirementÚerrorr"   r$   r#   s                 r   Úload_pyproject_tomlr9      s{  € ô, —G‘G—N‘N >Ó2€MÜ—‘—‘˜xÓ(€Iæ¦ÜØˆjð =ð >ó
ð 	
ö
 Ü�.¨7Ò3°qÜ—m’m A§F¡F£HÓ-ˆG÷ 4à—{‘{ >Ó2‰àˆàÑð .Ð.Ø?ñ
ˆð ˜Ó%Ü+°HÑ=Ð=ð ˜JÑ'€HÜ˜8×$Ñ$Ü+ØØ1ñ
ð 	
ó  ˆð	Ü˜KÖ(ñ  ð ×Ñ˜Ó/€GØ×#Ñ# N°BÓ7€LØ€EØ�ð 5ˆØ%Ð&ˆä˜h°ÓEÐE÷y 4Õ3ûôH "ó 	Ü/Ø Ø=¸k¹_ÐMñð ðûð	ús$   Á,%D2Ã*EÄ2
E Å
E!ÅEÅE!)r   r   ÚreturnÚbool)r   r   r:   r   )r/   r   r0   r   r1   r   r:   r    )Ú
__future__r   r   Úcollectionsr   Útypingr   Ú"pip._vendor.packaging.requirementsr   Úpip._internal.exceptionsr   r   r	   Úpip._internal.utils.compatr
   Úpip._internal.utils.packagingr   r   r   r    r9   © r   r   Ú<module>rD      st   ðÝ "ã 	Ý "Ý å A÷ñ õ
 /Ý 9ôPôEñ  ØÒJóÐ ð
\FØð\FØ#&ð\FØ25ð\Fàõ\Fr   