jF9@ddlmZddlZddlmZddlmZddlmZddl m Z m Z m Z ddl mZddlmZdd ZddZedgdZddZdS)) annotationsN) namedtuple)Any)InvalidRequirement)InstallationErrorInvalidPyProjectBuildRequiresMissingPyProjectBuildRequires)tomllib)get_requirementobjrreturnboolc^t|totd|DS)Nc3@K|]}t|tVdS)N) isinstancestr).0items i/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/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_strrs. c4 OS(O(O3(O(O(O%O%OOrunpacked_source_directoryrcBtj|dS)Nzpyproject.toml)ospathjoin)rs rmake_pyproject_pathr s 7<<13C D DDrBuildSystemDetails)requiresbackendcheck backend_pathpyproject_tomlsetup_pyreq_namectj|}tj|}|s|st|d|ret |d5}t j|}dddn #1swxYwY|d}nd}|dgdd}d |vrt| |d }t|st|d |D]9} t| #t$r} t|d |  | d} ~ wwxYw|d} |dg} g} | d} dg} t|| | | S)aLoad 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.zutf-8)encodingNz build-systemzsetuptools>=40.8.0z setuptools.build_meta:__legacy__)r" build-backendr")packagezIt is not a list of strings.)r,reasonz$It contains an invalid requirement: r+z backend-path)rrisfileropenr loadsreadgetr rrr rr!)r&r'r( has_pyproject has_setupfpp_toml build_systemr" requirementerrorr#r%r$s rload_pyproject_tomlr:s6,GNN>22Mx((I    > > >    .7 3 3 3 .qmAFFHH--G . . . . . . . . . . . . . . .{{>22  ..?  %%+H====J'H 8 $ $ +1        K ( ( ( (!   / MkMM   //G##NB77LE5%& h E EEs*('BB"BD D;!D66D;)r rr r)rrr r)r&rr'rr(rr r!) __future__rr collectionsrtypingr"pip._vendor.packaging.requirementsrpip._internal.exceptionsrrr pip._internal.utils.compatr pip._internal.utils.packagingr rr r!r:rrrCs("""""" """"""AAAAAA /.....999999PPPPEEEE ZJJJ \F\F\F\F\F\Fr