Skip to content

Commit ac13541

Browse files
committed
Allow errors for missing [build-system] table with no metadata
Permit installers to present an error if the working directory does not seem like a location that the user intended to install from.
1 parent c3247ac commit ac13541

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/specifications/pyproject-toml.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ table then the default values as specified above should be used.
6161
If the table is specified but is missing required fields then the tool
6262
should consider it an error.
6363

64+
Tools may choose to present an error to the user if the file exists,
65+
``[build-system]`` table is missing, and there is no clear indication
66+
that the project should be built (e.g., no setup.py/setup.cfg or other
67+
build configuration files, and no ``[project]`` table).
6468

6569
To provide a type-specific representation of the resulting data from
6670
the TOML file for illustrative purposes only, the following

0 commit comments

Comments
 (0)