To be super specific here, for building a wheel with compiled bits you need 2 distinct things: a build backend and an extension module builder.
The build backend is the thing that users configure to ship the desired files in a zip archive which we call a wheel. The extension module builder is the thing in charge of compiling like cmake that will then communicate with the build backend to say what extra files should be included.