id ddlZddlZddlmZddlmZmZmZddl m Z ddl m Z m Z ddlmZmZmZdedefd Zd edefd Zed gd Zdeededededeef dZdS)N) namedtuple)AnyListOptional)tomli)InvalidRequirement Requirement)InstallationErrorInvalidPyProjectBuildRequiresMissingPyProjectBuildRequiresobjreturnc^t|totd|DS)Nc3@K|]}t|tVdS)N) isinstancestr).0items L/opt/cloudlinux/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_directorycBtj|dS)Nzpyproject.toml)ospathjoin)rs rmake_pyproject_pathr s 7<<13C D DDrBuildSystemDetails)requiresbackendcheck backend_path use_pep517pyproject_tomlsetup_pyreq_namecHtj|}tj|}|s|st|d|ret |d5}t j|}dddn #1swxYwY|d}nd}|r|s||stdd}ny|r3d|vr/|*|s(td |dd}nD|B|p?tj d  ptj d  }|J|sdS|d d gd d}|Jd|vrt||d} t| st|d| D]9} t!| #t"$r} t|d| | d} ~ wwxYw|d} |dg} g}| 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.toml setuptoolswheelzsetuptools>=40.8.0z setuptools.build_meta:__legacy__)r"r,r")packagezIt is not a list of strings.)r/reasonz$It contains an invalid requirement: z backend-path)rrisfiler openrloadsreadgetformat importlibutil find_specr rr r rr!)r&r'r(r) has_pyproject has_setupfpp_toml build_systemr" requirementerrorr#r%r$s rload_pyproject_tomlrAs40GNN>22Mx((I    > > >    .7 3 3 3 ,qk!&&((++G , , , , , , , , , , , , , , ,{{>22   Y  !* !#3   /\99  !* !#$$*F<+H$I$I       5>++L999 5>++G444   ! ! ! t.w7?    # # # %%+H====J'H 8 $ $ +1         $ $ $ $!   / MkMM   //G##NB77LE5%& h E EEs*('BB"B'F77 GGG)importlib.utilr7r collectionsrtypingrrr pip._vendorr"pip._vendor.packaging.requirementsrr pip._internal.exceptionsr r r boolrrr r!rArrrJs| """"""&&&&&&&&&&NNNNNNNNPPPPPPE3E3EEEE ZJJJ VFVF03VF?BVFNQVF  !VFVFVFVFVFVFr