Skip to content

[RFC] Support pinning PEP 517 build deps in pyproject.toml #1396

@webknjaz

Description

@webknjaz

What's the problem this feature will solve?

PEP 518 defines a [build-system] section with a required = [] field. But there is no way to tell PEP 517 build front-ends to apply constraints to those build requirements while provisioning an env for them. This makes it hard to go perform predictable builds.

Describe the solution you'd like

I was thinking that pip-tools could facilitate this by either learning to manage that setting in pyproject.toml or by sourcing the requirements from that field to produce a constraints file. The former could allow to keep the builds predictable with any build front-end like pip while the latter would be helpful mostly for more flexible build front-ends like pypa/build that allow the users to provision the envs by themselves.

WDYT folks?

Alternative Solutions

N/A

Additional context

N/A

Metadata

Metadata

Labels

featureRequest for a new featureneeds discussionNeed some more discussionpep-517Related to PEP-517 standard APIpyproject.tomlRelated to pyproject.toml supportquestionUser questionwriterRelated to results output writer component

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions