On Thu, Jul 22, 2010 at 3:27 PM, Chuck Blake <[email protected]> wrote: > It would be nice to be able to support the new command line > compiler directives in distutils-based setup.py build scripts. > E.g., something like this > > extens = [ Extension(...), Extension(...), ... ] > for x in extens: > x.pyrex_directives = { "infer_types.verbose": True, > "embedsignature": True } > > The attached hg export format patch (against the current > cython-closures tip) accomplishes this. I've run this > and tested it on my own setup.py's and it has worked fine. > Thoughts?
Looks good to me, thanks! I'm not sure pyrex_directive is the right attribute to use here, as pyrex itself doesn't have (as far as I know) the notion of directives, but that's not a big deal and I'm sure it'll be very useful. I've pushed it. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
