On Oct 16, 2009, at 1:15 PM, Craig Citro wrote: >> Is there a dependency finder for Cython sources somewhere? I would >> think >> Sage has something like this developed... >> > > Yep, we've got something in our setup.py -- start looking around like > 432 of $SAGE_ROOT/devel/sage/setup.py. If memory serves, Robert > Bradshaw wrote this (he, Gonzalo Tornaria and I all worked on the Sage > build system a bit back in November).
For the reference, http://hg.sagemath.org/sage-main/file/tip/ setup.py . It just uses regex to find dependancies, the only clever part is it works out the entire dependancy tree at once rather than file-by-file (which would be O(n^2) and got to be really slow for us, even just opening O(n^2) files). Really, we should probably incorporate this into our build_ext. I'm torn about .dep files--they're easier and faster to "parse," but it's another file per .pyx/.pxd laying around in the directory... Another option would be to stick this information in the header of the .c file (in comments). - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
