ó ÿ¾v]c@@s´ddlmZddlZddlZddlZddlmZmZddlm Z ddl m Z e r•ddl m Z mZmZmZnd„Zd„Zd „ZdS( i(tabsolute_importN(tpytomltsix(tInstallationError(tMYPY_CHECK_RUNNING(tAnytTupletOptionaltListcC@s#t|tƒo"td„|DƒƒS(Ncs@s!|]}t|tjƒVqdS(N(t isinstanceRt string_types(t.0titem((s6/tmp/pip-install-vZZv26/pip/pip/_internal/pyproject.pys s(R tlisttall(tobj((s6/tmp/pip-install-vZZv26/pip/pip/_internal/pyproject.pyt_is_list_of_strscC@sLtjj|dƒ}tjrHt|tjƒrH|jtj ƒƒ}n|S(Nspyproject.toml( tostpathtjoinRtPY2R t text_typetencodetsystgetfilesystemencoding(t setup_py_dirR((s6/tmp/pip-install-vZZv26/pip/pip/_internal/pyproject.pytmake_pyproject_pathsc 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 |krt | j d |ddƒƒ‚n|d } t | ƒsÇt | j d |ddƒƒ‚n|jdƒ} g} | dkrýd } dd g} n| | | fS(sÍLoad 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 ) 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.0twheeltrequiress 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.(RRtisfiletiotopenRtloadtgettNoneRtTruetformattAssertionErrorR( t use_pep517tpyproject_tomltsetup_pytreq_namet has_pyprojectt has_setuptftpp_tomlt build_systemterror_templateRtbackendtcheck((s6/tmp/pip-install-vZZv26/pip/pip/_internal/pyproject.pytload_pyproject_toml#sX              (t __future__RR!RRt pip._vendorRRtpip._internal.exceptionsRtpip._internal.utils.typingRttypingRRRRRRR5(((s6/tmp/pip-install-vZZv26/pip/pip/_internal/pyproject.pyts   %