The build-system table in pyproject.toml tells pip or build to use setuptools
Answer: setuptools reads project metadata from pyproject.toml. The build-system table tells a frontend such as pip or build to use setuptools (and any other required plugins). Setuptools-specific options go in the tool.setuptools table.
Two tables
The guide describes two TOML tables.
Why this replaces setup.py as the config file
setuptools has adopted the pyproject standard and will use the information in that file.
Claims
- id: C1 claim: The build-system table tells the frontend to use setuptools. source: S1 evidence: "The `
build-system` table is used to tell the build frontend"
- id: C2 claim: Setuptools-specific keys go in the tool.setuptools table. source: S1 evidence: "can be set via the `
tool.setuptools` table"
- id: C3 claim: The website documents the same build-system table. source: S2 evidence: "build-system"
- id: C4 claim: The website also documents the tool.setuptools table. source: S2 evidence: "tool.setuptools"
Sources
- [S1] Configuring setuptools with pyproject.toml. pypa/setuptools (GitHub). https://github.com/pypa/setuptools/blob/main/docs/userguide/pyproject_config.rst . License: MIT. Accessed 2026-11-18.
- [S2] Configuring setuptools with pyproject.toml (website). setuptools (setuptools.pypa.io). https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html . License: MIT. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: pypa/setuptools (GitHub), Configuring setuptools with pyproject.toml, MIT (https://raw.githubusercontent.com/pypa/setuptools/main/LICENSE); setuptools (setuptools.pypa.io), Configuring setuptools with pyproject.toml (website), MIT (https://raw.githubusercontent.com/pypa/setuptools/main/LICENSE). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: pypa/setuptools (GitHub), Configuring setuptools with pyproject.toml, MIT (https://raw.githubusercontent.com/pypa/setuptools/main/LICENSE); setuptools (setuptools.pypa.io), Configuring setuptools with pyproject.toml (website), MIT (https://raw.githubusercontent.com/pypa/setuptools/main/LICENSE).
Cite this
iinventedlight. 2026. "The build-system table in pyproject.toml tells pip or build to use setuptools." iinventedlight Library, iil:note:0rhy7r29, version of 2026-11-18. https://iinventedlight.com/library/notes/setuptools-pyproject/. License: CC-BY-4.0.
@misc{iil_note_0rhy7r29,
author = {{iinventedlight}},
title = {{The build-system table in pyproject.toml tells pip or build to use setuptools}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/setuptools-pyproject/},
note = {Permanent ID iil:note:0rhy7r29. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/setuptools-pyproject.md.