There is no GMP wrapper library in the Gentoo standard tree which offers bindings to the GMP library for Python (except the module which comes with the standard distribution, but this doesn't by far offer the functionality which GMP can actually offer).
The module presented herein is a GMP wrapper library written from scratch, currently offering bindings to the mpz_t and gmp_randstate_t types. The implementation is complete, as far as these two types go. The module has been announced on the Python Mailinglist tonight (by me too), and should be ready for production use.
Steps to Reproduce:
1. Try to emerge a GMP wrapper for Python... ;)
None in the standard library (GMPy and mxNumber are both missing).
Find something. ;) And PyGMP may be the answer to all this. ;)
Created attachment 32558 [details]
Ebuild for the current version (may be unpacked directly in the dev-python directory of portage).
Ebuild for the current version of PyGMP (0.9). The ebuild is masked as ~x86
only. A release 1.0 is forthcoming in the following week.
Created attachment 32612 [details]
Ebuild for PyGMP 0.9p2 (will become 1.0 next week)
Obsoletes the old ebuild. This downloads the current 0.9p2 version, and
installs it accordingly. Also updated the LICENSE (which is BSD), and the
headers of the ebuild.
dev-python/gmpy-1.0 is in portage now. This is not PyGMP but also a
python-wrapper for GMP. Try it! ;-)
unless there's a real solid reason why we need two gmp python bindings, i think it is best we close this as
won't fix for now.