From 1f27d9659ec8b1342be798e93edb44d54a387ee4 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Fri, 26 Apr 2019 20:18:27 -0700 Subject: [PATCH] Revert "Fix "build_system value" to "build-system table" in pyproject.toml messages." This reverts commit ee80bf98ffeac98f07b216625df81fd90d761e77. --- news/6434.feature | 2 +- src/pip/_internal/pyproject.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/news/6434.feature b/news/6434.feature index 5a9caf8bf..958d75165 100644 --- a/news/6434.feature +++ b/news/6434.feature @@ -3,5 +3,5 @@ project in editable mode, even when `PEP 517 `_ mandates ``pyproject.toml``-style processing (i.e. when the project has a ``pyproject.toml`` file as well as a ``"build-backend"`` key for the -``[build-system]`` table). Since this option conflicts with the PEP 517 spec, +``"build_system"`` value). Since this option conflicts with the PEP 517 spec, this mode of operation is officially unsupported. diff --git a/src/pip/_internal/pyproject.py b/src/pip/_internal/pyproject.py index b012cb67e..2e76c399a 100644 --- a/src/pip/_internal/pyproject.py +++ b/src/pip/_internal/pyproject.py @@ -115,7 +115,7 @@ def resolve_pyproject_toml( :param build_system: the "build_system" value specified in a project's pyproject.toml file, or None if the project either doesn't have the - file or does but the file doesn't have a [build-system] table. + file or does but the file doesn't have a "build_system" value. :param has_pyproject: whether the project has a pyproject.toml file. :param has_setup: whether the project has a setup.py file. :param use_pep517: whether the user requested PEP 517 processing. None @@ -160,7 +160,7 @@ def resolve_pyproject_toml( 'for pyproject.toml-style projects. ' 'This project is pyproject.toml-style because it has a ' 'pyproject.toml file and a "build-backend" key for the ' - '[build-system] table, but editable mode is undefined ' + '"build_system" value, but editable mode is undefined ' 'for pyproject.toml-style projects. ' 'Since the project has a setup.py, you may pass ' '--no-use-pep517 to opt out of pyproject.toml-style ' @@ -177,7 +177,7 @@ def resolve_pyproject_toml( 'for pyproject.toml-style projects: ' 'this project is pyproject.toml-style because it has a ' 'pyproject.toml file and a "build-backend" key for the ' - '[build-system] table, but editable mode is undefined ' + '"build_system" value, but editable mode is undefined ' 'for pyproject.toml-style projects. ' 'See PEP 517 for details on pyproject.toml-style projects.' ).format(req_name) @@ -204,7 +204,7 @@ def resolve_pyproject_toml( 'project as pyproject.toml-style because it has a ' 'pyproject.toml file. Since the project has a setup.py and ' 'the pyproject.toml has no "build-backend" key for the ' - '[build-system] table, you may pass --no-use-pep517 to opt ' + '"build_system" value, you may pass --no-use-pep517 to opt ' 'out of pyproject.toml-style processing. ' 'See PEP 517 for details on pyproject.toml-style projects.' ).format(req_name)