[Python-modules-team] Bug#586395: Bug#586395: python-numpy: f2py script needs to use python2.6

Sandro Tosi morph at debian.org
Tue Jul 13 17:17:13 UTC 2010


Hello,

On Sat, Jun 19, 2010 at 07:27, Kevin Mitchell <kevmitch at math.sfu.ca> wrote:
> Package: python-numpy
> Version: 1:1.3.0-3+b1
> Severity: normal
>
>
> With the upgrade to python2.6, f2py no longer successfuly compiles a test file
> $f2py -c test.f90
> ...
> In file included from /tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.c:2:
> /tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.h:7:20: error: Python.h: No such file or directory

after investigating a bit more this bug, it turns out it needs
python-dev package installed: it looks for Python.h that's shipped in
that package. (I replicated the problem in a clean chroot, installed a
fortran compiler and then the python-dev package, and it works fine).

I'm going to add both gfortran (f2py needs a fortran compiler) and
python-dev in Suggests in the under-working package (will soon be
upload, hopefully) and a README to clarify this.

In any case, with the current unstable system, python-dev will install
python2.6 developement version, while f2py still points to python2.5
(so change the link by hand or install python2.5-dev). With the
upcoming upload, f2py will point to the 2.6 version (since now it's
the default).

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi





More information about the Python-modules-team mailing list