Re: [Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread Pearu Peterson
On Sun, May 18, 2008 1:14 pm, David Cournapeau wrote: > Hi, > > I would like to be able to build a f2py extension in a subdir with > distutils, that is: > > config.add_extension('foo/bar', source = ['foo/bar.pyf']) A safe approach would be to create a foo/setup.py that contains config.add_ex

Re: [Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread David Cournapeau
Robert Kern wrote: > > config.add_extension('foo.bar', source=['foo/bar.pyf']) > Duh, should have thought about that. thanks, David ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discuss

Re: [Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread Robert Kern
On Sun, May 18, 2008 at 5:14 AM, David Cournapeau <[EMAIL PROTECTED]> wrote: > Hi, > >I would like to be able to build a f2py extension in a subdir with > distutils, that is: > > config.add_extension('foo/bar', source = ['foo/bar.pyf']) > > But it does not work right now because of the way nump

[Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread David Cournapeau
Hi, I would like to be able to build a f2py extension in a subdir with distutils, that is: config.add_extension('foo/bar', source = ['foo/bar.pyf']) But it does not work right now because of the way numpy.distutils finds the name of the extension. Replacing: ext_name = extension.name.spli