]WR{ ddlZddlmZddlmZmZmZddlmZddl m Z m Z ddl m Z dedefd Zd edefd Zed gd Zdeededededeef dZdS)N) namedtuple)AnyListOptional)tomli)InvalidRequirement Requirement)InstallationErrorobjreturnc^t|totd|DS)Nc3@K|]}t|tVdS)N) isinstancestr).0items /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/pyproject.py z"_is_list_of_str.. s,(O(O4D#)>)>(O(O(O(O(O(O)rlistall)r s r_is_list_of_strr s. c4 OS(O(O3(O(O(O%O%OOrunpacked_source_directorycBtj|dS)Nzpyproject.toml)ospathjoin)rs rmake_pyproject_pathrs 7<<13C D DDrBuildSystemDetails)requiresbackendcheck backend_path use_pep517pyproject_tomlsetup_pyreq_namec 4tj|}tj|}|s|st|d|rSt |d5}t j|}dddn #1swxYwY|d}nd}|r|s||stdd}n9|r3d|vr/|*|s(td |dd}n||}|J|sdS|d d gd d }|Jd} d|vr$t| |d|d} t| s$t| |d| D]W} t| #t$r8t| |d| wxYw|d} |dg} g}| d } d d g}t| | || S)aBLoad 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.zutf-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.tomlzsetuptools>=40.8.0wheelz setuptools.build_meta:__legacy__)r r*zO{package} has a pyproject.toml file that does not comply with PEP 518: {reason}r z]it has a 'build-system' table but not 'build-system.requires' which is mandatory in the table)packagereasonz1'build-system.requires' is not a list of strings.z='build-system.requires' contains an invalid requirement: {!r}z backend-path) rrisfiler openrloadgetformatrr rr)r$r%r&r' has_pyproject has_setupfpp_toml build_systemerror_templater requirementr!r#r"s rload_pyproject_tomlr:sC0GNN>22Mx((I    > > >    .7 3 3 3 $qjmmG $ $ $ $ $ $ $ $ $ $ $ $ $ $ ${{>22  #Y#  !* !#3   #/\99  !* !#$$*F<+H$I$I    "   ! ! ! t.w7?    # # #  ! %%  ! ! N "     J'H 8 $ $   ! ! J "           $ $ $ $!   #%%$,,2F;,?,? &  //G##NB77LE5%w/ h E EEs(B  B B >FAG)r collectionsrtypingrrr pip._vendorr"pip._vendor.packaging.requirementsrr pip._internal.exceptionsr boolrrrrr:rrrBsP """"""&&&&&&&&&&NNNNNNNN666666PPPPPPE3E3EEEE ZJJJ _F_F03_F?B_FNQ_F  !_F_F_F_F_F_Fr