On Wed, Sep 15, 2010 at 12:54 AM, Lisandro Dalcin <[email protected]> wrote: > On 14 September 2010 12:42, Robert Bradshaw > <[email protected]> wrote: >> On Tue, Sep 14, 2010 at 6:57 AM, Lisandro Dalcin <[email protected]> wrote: >>> On 14 September 2010 02:19, Robert Bradshaw >>> <[email protected]> wrote: >>>> I've pushed an implementation of >>>> http://wiki.cython.org/enhancements/distutils_preprocessing . This >>>> allows one do write, e.g. >>>> >>>> module_list = cythonize("*.pyx") >>>> >>> >>> What happens if you run 'python setup.py --help', for example? Will >>> that trigger cythonization? >> >> Yes. This is still a TODO item. Does anyone know if there an easy way >> to detect this? >> > > AFAICT, the robust way is to implement a new a "build_src" distutils > command, and add insert it to build.subcommands list before build_ext. > IIUC, this is more or less what NumPy does. But this kind of > monkeypatching is not a pleasure to code...
Indeed, and I would not call it robust :) The next version of bento (to be released soon), will have relatively decent support for cython, in particular chaining with other builder (so that you could say chain .pyx.in -> .pyx -> .c -> .o -> .so) will be possible without any monkey patch or other moronic operations. cheers, David _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
