Re: [Numpy-discussion] Recommended way to add Cython extension using numpy.distutils?

2010-04-28 Thread Matthew Brett
Hi, Thanks a lot for the suggestion - I appreciate it. >> Is there a recommended way to plumb Cython into the numpy build >> machinery?  Should I try and patch numpy distutils to use Cython if >> present? >> > > Here is the monkey-patch I'm using in my project: > def evil_numpy_monkey_patch(): >

Re: [Numpy-discussion] Recommended way to add Cython extension using numpy.distutils?

2010-04-28 Thread Kevin Jacobs
On Tue, Apr 27, 2010 at 8:09 PM, Matthew Brett wrote: > Hi, > > We (neuroimaging.scipy.org) are using numpy.distutils, and we have > .pyx files that we build with Cython. > > I wanted to add these in our current setup.py scripts, with something like: > > def configuration(parent_package='',top_pat

Re: [Numpy-discussion] Recommended way to add Cython extension using numpy.distutils?

2010-04-28 Thread Charles R Harris
On Tue, Apr 27, 2010 at 6:09 PM, Matthew Brett wrote: > Hi, > > We (neuroimaging.scipy.org) are using numpy.distutils, and we have > .pyx files that we build with Cython. > > I wanted to add these in our current setup.py scripts, with something like: > > def configuration(parent_package='',top_pat

[Numpy-discussion] Recommended way to add Cython extension using numpy.distutils?

2010-04-28 Thread Matthew Brett
Hi, We (neuroimaging.scipy.org) are using numpy.distutils, and we have .pyx files that we build with Cython. I wanted to add these in our current setup.py scripts, with something like: def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration