[Pyrex] [Cython-dev] setup.py detection of .pxd changes

Robert Bradshaw robertwb at math.washington.edu
Tue Nov 27 20:08:42 CET 2007


On Nov 27, 2007, at 11:06 AM, David McNab wrote:

> On Tue, 2007-11-27 at 20:00 +1300, Greg Ewing wrote:
>> What I eventually want is for the Pyrex
>> compiler itself to track dependencies in a Make-like
>> way
>
> That brings me to a suggestion - would be nice if both Pyrex and  
> Cython
> could detect changes in .pxd files and use that to trigger compilation
> of the associated .pyx files and all other files which cimport from
> the .pxds.
>
> As it is, if I change a .pxd I have to manually touch its .pyx. Worst
> case is I have to nuke the build dir and make from scratch.

We handle dependancies automatically in our setup.py for Sage, but I  
agree that it would be nice to build this into pyrex/cython.




More information about the Pyrex mailing list