override pyproject.toml settings on command line

519 Views Asked by At

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.

0

There are 0 best solutions below