I would like to write my own Python build backend that can used in pyproject.toml like
[build-system]
requires = ["setuptools>=42", "wheel", "mybackend"]
build-backend = "mybackend.build_meta"
and that does the same thing as setuptools, except that it preprends the line
# nice code!
to each .py file. What entry points would mybackend have to provide, and is it possible to somehow "inherit" from setuptools?
One way to extend
setuptoolsis to use wrap those in your ownbuild_wheel/build_sdistlikeInstead of immediately returning the output of the setuptools functions (e.g., the tar-file), one can work on those files.