Using SCons as a build engine for distutils
- by pygabriel
I have a python package with some C code needed to build an extension (with some non-trivial building needs). I have used SCons as my build system because it's really good and flexible.
I'm looking for a way to compile my python extensions with SCons ready to be distributed with distutils. I want that the user simply types setup.py install and get the extension compiled with SCons instead of the default distutils build engine.
An idea that comes to mind is to redefine build_ext command in distutils, but I can't find extensive documentation for it.
Any suggestion?