public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] [sage-on-gentoo] python 3.2 + numpy-1.5.1 + scipy = hurt
@ 2012-02-20  0:21 fbissey
  0 siblings, 0 replies; only message in thread
From: fbissey @ 2012-02-20  0:21 UTC (permalink / raw
  To: gentoo-science

Ok folks so python 3.2 has hit stable and a few problem that were plaguing
people using ~arch are now hitting us squarely in the face.
Namely you cannot emerge scipy (0.9/0.10) with python 3.2 and numpy-.1.5.1...

Using numpy-.16 is kind of functional... Coercion of sage numerical type to
available numpy numerical type is broken - in a strange way.
Numpy functions coded in C are not broken: numpy.arange for example.
Numpy functions coded in python are broken: numpy.linspace for example.

For a long time I didn't quite grasp the problem in
http://trac.sagemath.org/sage_trac/ticket/11334

But now with these details I think there is something either broken or
undocumented in numpy-1.6.x.

Moving sage to numpy 1.6 will break doctest and will require you to do explicit
casting if you want to do numerical stuff with numpy from sage.

So I propose that we move sage to numpy 1.6 with a warning to users about the
problems encountered.

The other solution is to tell people not use python 3.2 for scipy. This could be
done by adding a file in /etc/portage/env/sci-libs/ called scipy with just the
line:
USE_PYTHON="2.7"

I am using the later right now. Other suggestions welcome.

Francois




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-20  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20  0:21 [gentoo-science] [sage-on-gentoo] python 3.2 + numpy-1.5.1 + scipy = hurt fbissey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox