[Pyrex] array setting and math function annoyance

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Mar 17 00:06:29 CET 2008


Arc Riley wrote:

> That 100 lines in our setup.py is a workaround for Pyrex.Distutils 
> failure of detecting source changes and rebuilding .c files only when 
> necessary.  That part would be better generalized and in Distutils 
> rather than in our setup.py since any project could take advantage of it

In the long term, I'd like to make Pyrex do its own
dependency discovery, and not use a distutils extension
at all. That is, you call the Pyrex compiler from your
setup.py file prior to calling setup(), and distutils
is only used to compile and link the .c files.

It would be nice if distutils could be easily extended
to handle new kinds of preprocessing and its attendant
dependencies, but it appears to be structured the wrong
way for that. So I'm working towards getting out of
the distutils extension business altogether.

-- 
Greg



More information about the Pyrex mailing list