Greg Ewing wrote:
> Robert wrote:
> 
>> just with "gcc -MM modname.c" (create dependencies) it makes 
>> problems. he errors on missing ""-includes, but not on 
>> <>-includes, when -I is omitted.
> 
> The generated C file seems like the wrong level to
> be tracking dependencies at, to me.
> 

it establishes, like in normal c projects, correctly tracking the 
possibly many complex dependencies at the c compilation stage. E.g 
when you mix many normal .c/.h modules with a .pyx as "python 
head", and one of the indirectly included .h files changes ...
And thats an issue for me.

And those dep's are effective after the .pyx -> .c rule. Its a 
separate thing. So for the Cython compilation stage one just has 
to add manually the typically few Cython-only specific dependies - 
not the complex .h file stack etc:

pyxmod.c : pyxmod.pyx xy.pxd abc.pxi ...


maybe even a kind of "cython -MM mymod.pyx >> .depend"  or so 
could in the future auto-produce the additional cython level 
dependencies, and the whole deps chain could become automatic. But 
that may be pedantic, because there are just very few things 
typically on that level - which one can easily put manually..


Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to