+
    i                        ^ RI Ht ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
HtHt ^ RIHt ^ RIHt R	 R
 ltR R lt]! R. RO4      tR R ltR# )    )annotationsN)
namedtuple)Any)InvalidRequirement)InstallationErrorInvalidPyProjectBuildRequiresMissingPyProjectBuildRequires)tomllib)get_requirementc                    V ^8  d   QhRRRR/# )   objr   returnbool )formats   "]/Users/ahmad/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_internal/pyproject.py__annotate__r      s     P P P P    c                    \        V \        4      ;'       d5    \        ;QJ d    R  V  4       F  '       d   K   R# 	  R# ! R  V  4       4      # )c              3  B   "   T F  p\        V\        4      x  K  	  R # 5i)N)
isinstancestr).0items   & r   	<genexpr>"_is_list_of_str.<locals>.<genexpr>   s     (O34D#)>)>3s   FT)r   listall)r   s   &r   _is_list_of_strr       s:    c4 OOSS(O3(OSSOSOS(O3(O%OOr   c                    V ^8  d   QhRRRR/# )r   unpacked_source_directoryr   r   r   )r   s   "r   r   r      s     E E3 E3 Er   c                B    \         P                  P                  V R 4      # )zpyproject.toml)ospathjoin)r"   s   &r   make_pyproject_pathr'      s    77<<13CDDr   BuildSystemDetailsc               (    V ^8  d   QhRRRRRRRR/# )r   pyproject_tomlr   setup_pyreq_namer   r(   r   )r   s   "r   r   r      s8     \F \F\F#&\F25\F\Fr   c                   \         P                  P                  V 4      p\         P                  P                  V4      pV'       g   V'       g   \        V R24      hV'       dU   \	        V RR7      ;_uu_ 4       p\
        P                  ! VP                  4       4      pRRR4       XP                  R4      pMRpVf   RR.RR	/pRV9  d   \        VR
7      hVR,          p\        V4      '       g   \        VRR7      hV F  p	 \        V	4       K  	  VP                  R4      pVP                  R. 4      p. pVf   R	pR.p\        WW4      #   + '       g   i     L; i  \         d   p
\        TRT	: 2R7      T
hRp
?
ii ; i)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-systemrequireszsetuptools>=40.8.0zbuild-backendz setuptools.build_meta:__legacy__)packagezIt is not a list of strings.)r0   reasonz$It contains an invalid requirement: zbackend-path)r$   r%   isfiler   openr
   loadsreadgetr	   r    r   r   r   r(   )r*   r+   r,   has_pyproject	has_setupfpp_tomlbuild_systemr/   requirementerrorbackendbackend_pathchecks   &&&           r   load_pyproject_tomlrA      s   , GGNN>2Mx(Ij = >
 	

 .733qmmAFFH-G 4{{>2 -.?
 %+H== J'H8$$+1
 	
  	K(   /G##NB7LE 5%&hEEy 43H " 	/ =k_M 	s$   :%EE"E	"F-E??F)r/   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(   rA   r   r   r   <module>rI      sL    " 	 "  A 
 / 9PE  J 
\Fr   