I have a C ++ library that I create using Scons, which is ultimately associated with (including) the Python extension.
As soon as I built the library using scons, I wrote a standard setup.py script that I call to build and install the extension.
My main problem is that setup.py does not recognize when the library was rebuilt (only when the extension code was changed), so every time I rebuild the library, I have to βclearβ the extension before creating it again. Also, if I change the directory structure, I would prefer to only edit the Scons files. And finally, itβs just a little more convenient to use only calls, instead of calling scons in addition to setup.py.
Does anyone know how to integrate distutils into Scons so that it can take advantage of the knowledge that Scons has about which files to rebuild?
source share