Juan
Juan

Reputation: 1371

override pyproject.toml settings on command line

When building a python project using the python build module, is there a way to override settings in pyproject.toml on the command line?

For instance, suppose pyproject.toml contains:

[build-system]
build-backend = "foo"

I would like to know if it is possible to override foo (say with myfoo) on the command line python -m build. This is just an example.

My question is more general than that example. Whatever upstream defined in a pyproject.toml, a downstream user/packager may want or need to override something that upstream defined for any number of reasons.

Upvotes: 5

Views: 1095

Answers (0)

Related Questions