[SciPy-dev] Cython and large generated .c files

Stéfan van der Walt stefan@sun.ac...
Sun Nov 8 15:56:22 CST 2009


2009/11/8 Matthew Brett <matthew.brett@gmail.com>:
> Something like that sounds as though it could work very well.  I guess
> it does mean that, if you have an old version of cython on your
> system, the pyx code might not compile properly to c?  If so, will
> that overwrite the c source in the release, making the result
> impossible to build?  Or do you somehow disable 'cythonize' for
> building from source code releases?

In scikits.image we take md5sums of the generated and the distributed
.c files (skipping the time-stamp headers).  If those don't match, the
generated version is used:

http://github.com/stefanv/scikits.image/blob/master/scikits/image/_build.py#L43

Cheers
Stéfan


More information about the Scipy-dev mailing list