"best" rational number library for Python?

casevh at comcast.net casevh at comcast.net
Tue Oct 31 23:13:55 CET 2006


> A guy at work asked for functionality commonly found with rational numbers,
> so I said I'd find and install something.  I figured gmpy would be suitable,
> alas I'm having trouble successfully building the underlying GMP 4.2.1
> library on a PC running Solaris 10 (won't compile with the default --host,
> fails "make check" if I go the no-assembly route).  Before I invest a bunch
> of time into this, am I barking up the wrong tree?
>
I've successfully compiled GMP 4.2.1 on Solaris 10 x86 using both the
GCC and Sun Studio compilers on AMD 32-bit platform.

I just compiled GMP 4.2.1 on a P4 using

$ CFLAGS="" CC=gcc ./configure
$ gmake; gmake check

and all tests passed.

casevh




More information about the Python-list mailing list