Skip to content

Commit ee80bf9

Browse files
committed
Fix "build_system value" to "build-system table" in pyproject.toml messages.
1 parent 9861dc7 commit ee80bf9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

news/6434.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ project in editable mode, even when `PEP 517
33
<https://www.python.org/dev/peps/pep-0517/>`_ mandates
44
``pyproject.toml``-style processing (i.e. when the project has a
55
``pyproject.toml`` file as well as a ``"build-backend"`` key for the
6-
``"build_system"`` value). Since this option conflicts with the PEP 517 spec,
6+
``[build-system]`` table). Since this option conflicts with the PEP 517 spec,
77
this mode of operation is officially unsupported.

src/pip/_internal/pyproject.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def resolve_pyproject_toml(
115115
116116
:param build_system: the "build_system" value specified in a project's
117117
pyproject.toml file, or None if the project either doesn't have the
118-
file or does but the file doesn't have a "build_system" value.
118+
file or does but the file doesn't have a [build-system] table.
119119
:param has_pyproject: whether the project has a pyproject.toml file.
120120
:param has_setup: whether the project has a setup.py file.
121121
:param use_pep517: whether the user requested PEP 517 processing. None
@@ -160,7 +160,7 @@ def resolve_pyproject_toml(
160160
'for pyproject.toml-style projects. '
161161
'This project is pyproject.toml-style because it has a '
162162
'pyproject.toml file and a "build-backend" key for the '
163-
'"build_system" value, but editable mode is undefined '
163+
'[build-system] table, but editable mode is undefined '
164164
'for pyproject.toml-style projects. '
165165
'Since the project has a setup.py, you may pass '
166166
'--no-use-pep517 to opt out of pyproject.toml-style '
@@ -177,7 +177,7 @@ def resolve_pyproject_toml(
177177
'for pyproject.toml-style projects: '
178178
'this project is pyproject.toml-style because it has a '
179179
'pyproject.toml file and a "build-backend" key for the '
180-
'"build_system" value, but editable mode is undefined '
180+
'[build-system] table, but editable mode is undefined '
181181
'for pyproject.toml-style projects. '
182182
'See PEP 517 for details on pyproject.toml-style projects.'
183183
).format(req_name)
@@ -204,7 +204,7 @@ def resolve_pyproject_toml(
204204
'project as pyproject.toml-style because it has a '
205205
'pyproject.toml file. Since the project has a setup.py and '
206206
'the pyproject.toml has no "build-backend" key for the '
207-
'"build_system" value, you may pass --no-use-pep517 to opt '
207+
'[build-system] table, you may pass --no-use-pep517 to opt '
208208
'out of pyproject.toml-style processing. '
209209
'See PEP 517 for details on pyproject.toml-style projects.'
210210
).format(req_name)

0 commit comments

Comments
 (0)