Closed matthiasdiener closed 2 years ago
Sorry, no. distutils is not smart enough to gather dependencies in the way a reasonable build tool might. In addition, this is a half-measure: There are many other headers that really ought to be watched for changes.
setup.py
.To further explain: The only reliable way to build of which I'm aware is to start from scratch every time, i.e.
rm -Rf build; python setup.py develop
Without this, modifications to header files do not trigger a rebuild.
See also https://docs.python.org/3/distutils/setupscript.html#other-options