ó
    Þ jw  ã                   ó  • S SK rS SKrS SKrS SKJr  S SKJrJrJ	r	  \R                  S:¼  a  S SKrO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
\4S jrS\S
\4S jr\" S/ SQ5      rS\	\   S\S\S\S
\	\   4
S jrg)é    N)Ú
namedtuple)ÚAnyÚListÚOptional)é   é   )Útomli)ÚInvalidRequirement)ÚInstallationErrorÚInvalidPyProjectBuildRequiresÚMissingPyProjectBuildRequires)Úget_requirementÚobjÚreturnc                 óT   • [        U [        5      =(       a    [        S U  5       5      $ )Nc              3   ó@   #   • U H  n[        U[        5      v •  M     g 7f)N)Ú
isinstanceÚstr)Ú.0Úitems     ÚQ/var/www/html/gaurav/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)r   s    r   Ú_is_list_of_strr      s   € Ü�cœ4Ó ×O¤SÑ(OÉ3Ó(OÓ%OÐOó    Úunpacked_source_directoryc                 óB   • [         R                  R                  U S5      $ )Nzpyproject.toml)ÚosÚpathÚjoin)r   s    r   Úmake_pyproject_pathr#      s   € Ü�7‰7�<‰<Ð1Ð3CÓDÐDr   ÚBuildSystemDetails)ÚrequiresÚbackendÚcheckÚbackend_pathÚ
use_pep517Úpyproject_tomlÚsetup_pyÚreq_namec                 ó^  • [         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(       a  U(       d  U b  U (       d  [        S5      eSn O’U(       a0  SU;   a*  U b$  U (       d  [        S	R                  US   5      5      eSn O[U cX  U=(       dO    [        R                  R                  S
5      (       + =(       d$    [        R                  R                  S5      (       + n U c   eU (       d  gUc  S/SS.nUc   e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       GNr= f! ["         a  n[        USU
< 3S9UeSnAff = f)aú  Load the pyproject.toml file.

Parameters:
    use_pep517 - Has the user requested PEP 517 processing? None
                 means the user hasn't explicitly specified.
    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-systemzIDisabling PEP 517 processing is invalid: project does not have a setup.pyTúbuild-backendzbDisabling PEP 517 processing is invalid: project specifies a build backend of {} in pyproject.tomlÚ
setuptoolsÚwheelzsetuptools>=40.8.0z setuptools.build_meta:__legacy__)r%   r/   r%   )ÚpackagezIt is not a list of strings.)r2   Úreasonz$It contains an invalid requirement: zbackend-path)r    r!   Úisfiler   ÚopenÚtomllibÚloadsÚreadÚgetÚformatÚ	importlibÚutilÚ	find_specr   r   r   r   r
   r$   )r)   r*   r+   r,   Úhas_pyprojectÚ	has_setupÚfÚpp_tomlÚbuild_systemr%   ÚrequirementÚerrorr&   r(   r'   s                  r   Úload_pyproject_tomlrE   #   sE  € ô0 —G‘G—N‘N >Ó2€MÜ—‘—‘˜xÓ(€Iæ¦ÜØˆjð =ð >ó
ð 	
ö
 Ü�.¨7Ò3°qÜ—m’m A§F¡F£HÓ-ˆG÷ 4à—{‘{ >Ó2‰àˆö žYØÑ!®*Ü#ð3óð ð ‰
Þ	˜/¨\Ó9ØÑ!®*Ü#ð$ç$*¡F¨<¸Ñ+HÓ$Ióð ð
 ‰
ð 
Ñ	à÷ 5Ü—>‘>×+Ñ+¨LÓ9Ô9÷5ä—>‘>×+Ñ+¨GÓ4Ô4ð 	ð Ñ!Ð!Ð!ö ØàÑð .Ð.Ø?ñ
ˆð Ñ#Ð#Ð#ð ˜Ó%Ü+°HÑ=Ð=ð ˜JÑ'€HÜ˜8×$Ñ$Ü+ØØ1ñ
ð 	
ó  ˆð	Ü˜KÖ(ñ  ð ×Ñ˜Ó/€GØ×#Ñ# N°BÓ7€LØ€EØ�ð 5ˆØ%Ð&ˆä˜h°ÓEÐE÷i 4Ö3ûôx "ó 	Ü/Ø Ø=¸k¹_ÐMñð ðûð	ús$   Á,%G<Æ4HÇ<
HÈ
H,ÈH'È'H,)Úimportlib.utilr;   r    ÚsysÚcollectionsr   Útypingr   r   r   Úversion_infor6   Úpip._vendorr	   Ú"pip._vendor.packaging.requirementsr
   Úpip._internal.exceptionsr   r   r   Úpip._internal.utils.packagingr   Úboolr   r   r#   r$   rE   © r   r   Ú<module>rQ      s¿   ðÛ Û 	Û 
Ý "ß &Ñ &à×Ñ�wÓÜå,å A÷ñ õ
 :ðP˜ð P ô PðE°3ð E¸3ô Eñ  ØÒJóÐ ð
VFØ˜‘ðVFØ03ðVFØ?BðVFØNQðVFàÐ Ñ!õVFr   