gmpy2: Python interface to GMP/MPIR, MPFR, and MPC#

Description#

GMP/MPIR, MPFR, and MPC interface to Python

gmpy2 is a C-coded Python extension module that supports multiple-precision arithmetic. In addition to supporting GMP or MPIR for multiple-precision integer and rational arithmetic, gmpy2 adds support for the MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly rounded complex floating-point arithmetic) libraries.

License#

LGPL-3.0+

Upstream Contact#

https://pypi.org/project/gmpy2/

Type#

standard

Dependencies#

Version Information#

package-version.txt:

2.2.0a1

src/pyproject.toml:

gmpy2 ~=2.1.b999

version_requirements.txt:

gmpy2 ~=2.1.b999

Equivalent System Packages#

$ sudo pacman -S python-gmpy2
$ conda install gmpy2
$ sudo apt-get install python3-gmpy2
$ sudo yum install python-gmpy2
$ sudo pkg install math/py-gmpy2
$ sudo emerge dev-python/gmpy
$ sudo port install py-gmpy2
$ sudo zypper install python3\$\{PYTHON_MINOR\}-gmpy2
$ sudo xbps-install python3-gmpy2

See https://repology.org/project/python:gmpy2/versions, https://repology.org/project/python:gmpy2-devel/versions

If the system package is installed and if the (experimental) option --enable-system-site-packages is passed to ./configure, then ./configure will check if the system package can be used.