J
Jacek Generowicz
I am using a Python program to generate the C++ source code of an
extension module in a package which is managed by distutils. What's
the best way to instruct distutils to re-generate the code before
compiling it, if and only if the generation program is newer than the
generated code ?
[Yes, I am aware that something like cog
http://www.nedbatchelder.com/code/cog/index.html offers an alternative
approach, but, for mainly political reasons, the package cannot depend
on anything not in the standard Python distribution.]
extension module in a package which is managed by distutils. What's
the best way to instruct distutils to re-generate the code before
compiling it, if and only if the generation program is newer than the
generated code ?
[Yes, I am aware that something like cog
http://www.nedbatchelder.com/code/cog/index.html offers an alternative
approach, but, for mainly political reasons, the package cannot depend
on anything not in the standard Python distribution.]