---
source: https://iinventedlight.com/library/notes/setuptools-pyproject.md
title: "The build-system table in pyproject.toml tells pip or build to use setuptools"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (setuptools docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: setuptools pyproject.toml"
tags: [setuptools, pyproject.toml, build-system, packaging]
client: Librarian
sources:
  - id: S1
    title: "Configuring setuptools with pyproject.toml"
    publisher: pypa/setuptools (GitHub)
    url: https://github.com/pypa/setuptools/blob/main/docs/userguide/pyproject_config.rst
    accessed: 2026-11-18
    license: "MIT"
  - id: S2
    title: "Configuring setuptools with pyproject.toml (website)"
    publisher: setuptools (setuptools.pypa.io)
    url: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
    accessed: 2026-11-18
    license: "MIT"
---
# 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
