ó BuÆ_c@@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((sH/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/pyproject.pys s(R tlisttall(tobj((sH/opt/alt/python36/lib/python3.6/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((sH/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/pyproject.pytmake_pyproject_pathstBuildSystemDetailstrequirestbackendtcheckt backend_pathc C@sXtjj|ƒ}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|sdS|dkr9idd gd 6d d6}nd } d |krlt | j d |ddƒƒ‚n|d } t | ƒs£t | j d |ddƒƒ‚nxW| D]O} yt | ƒWqªtk røt | j d |ddj | ƒƒƒ‚qªXqªW|jdƒ} |jdgƒ} g}| dkrEd } 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(RRtisfiletiotopenRtloadtgettNoneRtTruetformatRRRR(t use_pep517tpyproject_tomltsetup_pytreq_namet has_pyprojectt has_setuptftpp_tomlt build_systemterror_templateRt requirementRR!R ((sH/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/pyproject.pytload_pyproject_toml*sh                 (t __future__RR'RRt collectionsRt pip._vendorRRt"pip._vendor.packaging.requirementsRRtpip._internal.exceptionsRtpip._internal.utils.typingRttypingRR R RRRR9(((sH/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/pyproject.pyts