← All notes

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

Sources

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

Permanent ID: iil:note:0rhy7r29

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.},
}

Markdown

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.