σ οRec@@sοddlmZddlZddlZddlZddlmZddlmZm Z ddl m Z m Z ddl mZddlmZer΅ddlmZmZmZnd „Zd „Zed d d ddgƒZd„ZdS(i(tabsolute_importN(t namedtuple(tsixttoml(tInvalidRequirementt Requirement(tInstallationError(tMYPY_CHECK_RUNNING(tAnytOptionaltListcC@s#t|tƒo"td„|DƒƒS(Ncs@s!|]}t|tjƒVqdS(N(t isinstanceRt string_types(t.0titem((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/pyproject.pys s(R tlisttall(tobj((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/pyproject.pyt_is_list_of_strscC@sLtjj|dƒ}tjrHt|tjƒrH|jtj ƒƒ}n|S(Nspyproject.toml( tostpathtjoinRtPY2R t text_typetencodetsystgetfilesystemencoding(tunpacked_source_directoryR((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/pyproject.pytmake_pyproject_pathstBuildSystemDetailstrequirestbackendtcheckt backend_pathc C@s|tjj|ƒ}tjj|ƒ}|ritj|ddƒ}tj|ƒ}WdQX|jdƒ}nd}|r§| r§|dk rž| ržt dƒ‚nt }n_|rρd|krρ|dk rθ| rθt dj |dƒƒ‚nt }n|dkr|}n|dk st ‚|s"dS|dkrKidd gd 6d d6}n|dk s]t ‚d } d |krt | j d |ddƒƒ‚n|d } t | ƒsΗt | j d |ddƒƒ‚nxW| D]O} yt| ƒWqΞtk rt | j d |ddj | ƒƒƒ‚qΞXqΞW|jdƒ} |jdgƒ} g}| dkrid } dd g}nt| | || ƒS(sBLoad 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. ) tencodingsutf-8Ns build-systemsIDisabling PEP 517 processing is invalid: project does not have a setup.pys build-backendsbDisabling PEP 517 processing is invalid: project specifies a build backend of {} in pyproject.tomlssetuptools>=40.8.0twheelRs setuptools.build_meta:__legacy__sO{package} has a pyproject.toml file that does not comply with PEP 518: {reason}tpackagetreasons]it has a 'build-system' table but not 'build-system.requires' which is mandatory in the tables1'build-system.requires' is not a list of strings.s='build-system.requires' contains an invalid requirement: {!r}s backend-path(RRtisfiletiotopenRtloadtgettNoneRtTruetformattAssertionErrorRRRR(t use_pep517tpyproject_tomltsetup_pytreq_namet has_pyprojectt has_setuptftpp_tomlt build_systemterror_templateRt requirementRR!R ((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/pyproject.pytload_pyproject_toml*sl                 (t __future__RR'RRt collectionsRt pip._vendorRRt"pip._vendor.packaging.requirementsRRtpip._internal.exceptionsRtpip._internal.utils.typingRttypingRR R RRRR:(((s†/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/pyproject.pyts