
    q"hv                        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   B   #    U  H  n[        U[        5      v   M     g 7f)N)
isinstancestr).0items     I/var/www/html/env/lib/python3.13/site-packages/pip/_internal/pyproject.py	<genexpr>"_is_list_of_str.<locals>.<genexpr>   s     (O34D#)>)>3s   )r   listall)r   s    r   _is_list_of_strr      s    c4 OS(O3(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    77<<13C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 OU(       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[%        XX5      $ ! , (       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 GGNN>2Mx(Ij = >
 	

 .73qmmAFFH-G 4{{>2 Y!*#3  
	/\9!*#$$*F<+H$I 
 
 
	 5>>++L995>>++G44 	 !!!  ..?
 ### %+H== J'H8$$+1
 	
  	K(   /G##NB7LE 5%&hEEi 43x " 	/ =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   