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
setuptools
is to use wrap those in your ownbuild_wheel
/build_sdist
likeInstead of immediately returning the output of the setuptools functions (e.g., the tar-file), one can work on those files.