7fw ddlZddlZddlZddlmZddlmZmZm Z ej dkrddl Z nddl m Z ddlmZddlmZmZmZddlmZd ed efd Zd ed efd ZedgdZde edededed e ef dZdS)N) namedtuple)AnyListOptional) )tomli)InvalidRequirement)InstallationErrorInvalidPyProjectBuildRequiresMissingPyProjectBuildRequires)get_requirementobjreturnc^t|totd|DS)Nc3@K|]}t|tVdS)N) isinstancestr).0items w/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/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)rs 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_namecFtj|}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 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.)r1reasonz$It contains an invalid requirement: z backend-path)rr isfiler opentomllibloadsreadgetformat importlibutil find_specr rr rr r#)r(r)r*r+ has_pyproject has_setupfpp_toml build_systemr$ requirementerrorr%r'r&s rload_pyproject_tomlrD#s20GNN>22Mx((I    > > >    .7 3 3 3 .qmAFFHH--G . . . . . . . . . . . . . . .{{>22   Y  !* !#3   /\99  !* !#$$*F<+H$I$I       5>++L999 5>++G444   ! ! ! t..?    # # # %%+H====J'H 8 $ $ +1        K ( ( ( (!   / MkMM   //G##NB77LE5%& h E EEs*('BB"B&F66 GGG)importlib.utilr:rsys collectionsrtypingrrr version_infor5 pip._vendorr "pip._vendor.packaging.requirementsr pip._internal.exceptionsr r r pip._internal.utils.packagingrboolrrr"r#rDrrrPs """"""&&&&&&&&&&wNNNN,,,,,,AAAAAA :99999PPPPPPE3E3EEEE ZJJJ VFVF03VF?BVFNQVF  !VFVFVFVFVFVFr