Header dependencies when building extensions
Is there a way to specify (or even better, have "distutils" automatically deduce) header dependencies when building an extension? If, for example, the "foo" extension is built from "foo.c" which includes "foo.h", how can I make distutils rebuild the extension when "foo.h" changes? Thanks in advance /npat -- A commune is where people join together to share their lack of wealth. -- Richard M. Stallman
On Tue, Dec 10, 2002 at 03:53:38PM +0200, Nick Patavalis wrote:
If, for example, the "foo" extension is built from "foo.c" which includes "foo.h", how can I make distutils rebuild the extension when "foo.h" changes?
Python 2.3 CVS has a 'depends' argument for specifying additional dependencies; something like: Extension('foo', ['foomodule.c'], depends = ['foo.h']) This is a new feature, so it probably won't be back-ported to Python 2.2. --amk
participants (2)
-
Andrew Kuchling -
Nick Patavalis