[Numpy-discussion] How to test f2py?
Charles R Harris
charlesr.harris@gmail....
Tue Feb 23 22:51:18 CST 2010
On Tue, Feb 23, 2010 at 9:19 PM, Robert Kern <robert.kern@gmail.com> wrote:
> On Tue, Feb 23, 2010 at 22:12, Charles R Harris
> <charlesr.harris@gmail.com> wrote:
> >
> > On Tue, Feb 23, 2010 at 8:54 PM, Robert Kern <robert.kern@gmail.com>
> wrote:
> >>
> >> On Tue, Feb 23, 2010 at 21:51, Charles R Harris
> >> <charlesr.harris@gmail.com> wrote:
> >> >
> >> > On Tue, Feb 23, 2010 at 8:31 PM, Robert Kern <robert.kern@gmail.com>
> >> > wrote:
> >> >>
> >> >> On Tue, Feb 23, 2010 at 21:14, Charles R Harris
> >> >> <charlesr.harris@gmail.com> wrote:
> >> >> > Hi All,
> >> >> >
> >> >> > I've made PyCObject -> PyCapsule changes to f2py for python3.1. How
> >> >> > can
> >> >> > I
> >> >> > check that f2py still works as advertised before making a commit?
> >> >>
> >> >> numpy/f2py/tests/run_all.py
> >> >
> >> > It's not py3k compatible...
> >>
> >> So make it py3k compatible.
> >
> > It's autoconverted in build/py3k. It is, however, not installed anywhere.
> >
> >>
> >> > also it doesn't find the f2py2e module even
> >> > though it has been installed with numpy. ?
> >>
> >> I don't understand this. Error message?
> >>
> >
> > Running /usr/bin/python
> >
> /home/charris/Workspace/numpy.git/numpy/f2py/tests/f77/return_character.py
> > 10 --quiet
> > Traceback (most recent call last):
> > File
> >
> "/home/charris/Workspace/numpy.git/numpy/f2py/tests/f77/return_character.py",
> > line 10, in <module>
> > import f2py2e
> > ImportError: No module named f2py2e
> > TEST FAILURE (status=1)
> >
> > So the import is wrong. The question is: did this used to work?
>
> From the independent f2py2e days, yes. Just change those import lines
> to "from numpy import f2py as f2py2e"
>
Boy, that code is *old*, it still uses Numeric ;) I don't think it can
really be considered a test suite, it needs lotsa love and it needs to get
installed. Anyway, f2py with py3k turns out to have string problems, and I
expect other type problems, so there is considerable work that needs to be
done to bring it up to snuff. Sounds like gsoc material. I'm not going to
worry about it any more until later.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100223/201b1512/attachment.html
More information about the NumPy-Discussion
mailing list