[Python-Dev] addressing distutils inability to track file dependencies

Greg Ewing greg@cosc.canterbury.ac.nz
Mon, 17 Jun 2002 13:57:51 +1200 (NZST)


>   Extension('foo', ['foo1.c', 'foo2.c'], dependencies={'foo1.c':
> >   ['bar.h'], 'foo2.c': ['bar.h', 'bar2.h']})
>
> But this is wrong: it's not foo1.c that depends on bar.h, it's foo1.o.

It's not wrong if you read the dependency statement
as "anything which depends on foo1.c also depends
on bar.h" etc.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+