Hello Kevin, On Sat, Jun 19, 2010 at 07:27, Kevin Mitchell <kevmi...@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 > In file included from > /usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:61, > from > /usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14, > from /tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.h:13, > from /tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.c:2: > /usr/lib/python2.5/site-packages/numpy/core/include/numpy/npy_common.h:71:2: > error: #error Must use Python with unicode enabled. > ...
I tested with /usr/share/pyshared/numpy/distutils/tests/f2py_f90_ext/include/body.f90 and both f2py2.5 -c /usr/share/pyshared/numpy/distutils/tests/f2py_f90_ext/include/body.f90 and f2py2.6 -c /usr/share/pyshared/numpy/distutils/tests/f2py_f90_ext/include/body.f90 executes fine. > It looks like /usr/bin/f2py needs to be updated so that the first line > is "#!/usr/bin/env python2.6" rather than "#!/usr/bin/env > python2.5". This allows compilation to proceed as expected. This will be handled when I'll be able to upload numpy 1.4.1: $ debc python-numpy_1.4.1-1_amd64.changes | grep '/usr/bin/f2py' -rwxr-xr-x root/root 671 2010-06-19 10:44 ./usr/bin/f2py2.6 -rwxr-xr-x root/root 671 2010-06-19 10:44 ./usr/bin/f2py2.5 lrwxrwxrwx root/root 0 2010-06-19 10:44 ./usr/bin/f2py -> f2py2.6 -rwxr-xr-x root/root 675 2010-06-19 10:44 ./usr/bin/f2py2.5-dbg -rwxr-xr-x root/root 675 2010-06-19 10:44 ./usr/bin/f2py2.6-dbg lrwxrwxrwx root/root 0 2010-06-19 10:44 ./usr/bin/f2py-dbg -> f2py2.6-dbg The upload is currently held due to an error in a macro not found ('import numpy' doesn't work, quite bad indeed ;) ). Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org