On 3. 10. 2010 Vineet Jain wrote:
> Not a big deal, but thought I would just mention it. If a pxd file
> changes and you run setup.py build it will not rebuild the package.
> You have to change the corresponding pyx file for the module to be
> rebuilt.
+1
The reason behind this is that cython.Distutils' build_ext does it's own "is-
source-newer-than-target" checks. It doesn't parse pyx file for dependencies,
but it relies on you specifying all dependencies in Extension source files
declaration, e.g:
setup(... ext_modules(Extension('module', ['module.pyx', 'module.pxd',
'dependency.pxd'])))
But I also find it suboptimal. Cython distutils can be changed to use cython
compiler to do dependency mtime checking, I may post a patch in a couple
of days.
Matěj
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev