notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
After the ports freeze to fix some stuff, the freeze is over. I have some work to do before FreshPorts can start processing commits again before it can start processing again. I've created an issue for that.
Port details on branch 2026Q2
py-gmpy2 GMP/MPIR, MPFR, and MPC interface to Python
2.2.1_1 math on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.2.1_1Version of this port present on the latest quarterly branch.
Maintainer: yuri@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2016-06-14 08:21:19
Last Update: 2025-03-08 04:05:21
Commit Hash: 06a08e6
Also Listed In: python
License: GPLv3
WWW:
https://gmpy2.readthedocs.io/en/latest/
Description:
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}gmpy2>0:math/py-gmpy2@${PY_FLAVOR}
To install the port:
cd /usr/ports/math/py-gmpy2/ && make install clean
To add the package, run one of these commands:
  • pkg install math/py-gmpy2
  • pkg install py311-gmpy2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-gmpy2 listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-gmpy2
Package flavors (<flavor>: <package>)
  • py311: py311-gmpy2
distinfo:
TIMESTAMP = 1724601373 SHA256 (gmpy2-2.2.1.tar.gz) = e83e07567441b78cb87544910cb3cc4fe94e7da987e93ef7622e76fb96650432 SIZE (gmpy2-2.2.1.tar.gz) = 234228

Packages (timestamps in pop-ups are UTC):
py37-gmpy2
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--2.0.8_3--n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest--------
FreeBSD:14:quarterly--------
FreeBSD:15:latest--n/a-n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 

py39-gmpy2
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly--2.1.5_1--n/an/an/a
FreeBSD:14:latest--2.1.2--2.1.5_1-2.1.5_1
FreeBSD:14:quarterly-----2.1.5_12.1.5_12.1.5_1
FreeBSD:15:latest--n/a-n/an/a2.1.5_12.1.5_1
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 

py311-gmpy2
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.2.1_12.2.1_1-2.2.1_12.2.1_1n/an/an/a
FreeBSD:13:quarterly2.2.1_12.2.1_1-2.2.1_12.2.1_1n/an/an/a
FreeBSD:14:latest---2.2.1_1----
FreeBSD:14:quarterly---2.2.1_1----
FreeBSD:15:latest--n/a2.2.1_1n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 

py312-gmpy2
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest2.2.1_12.2.1_1--2.2.1_1---
FreeBSD:14:quarterly2.2.1_12.2.1_1--2.2.1_1---
FreeBSD:15:latest2.2.1_12.2.1_1n/a-n/an/a--
FreeBSD:15:quarterly2.2.1_12.2.1_1n/a-n/an/a--
FreeBSD:16:latest2.2.1_12.2.1_1n/a-n/an/a--
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>=63.1.0 : devel/py-setuptools@py311
  2. python3.11 : lang/python311
Test dependencies:
  1. py311-pytest>=7,1 : devel/py-pytest@py311
  2. python3.11 : lang/python311
Runtime dependencies:
  1. python3.11 : lang/python311
Library dependencies:
  1. libgmp.so : math/gmp
  2. libmpc.so : math/mpc
  3. libmpfr.so : math/mpfr
This port is required by:
for Build
  1. math/py-mpmath
  2. math/py-pplpy

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. math/sage*
  2. Collapse this list of deleted ports.
for Run
  1. math/py-mpmath
  2. math/py-pplpy
  3. security/py-badkeys
  4. security/py-ecdsa

Deleted ports which required this port:

Expand this list of 2 deleted ports
  1. math/py-Diofant*
  2. math/sage*
  3. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
No options to configure
Options name:
math_py-gmpy2
USES:
localbase python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/g/gmpy2/
  2. https://pypi.org/packages/source/g/gmpy2/
Collapse this list.

There are no commits on branch 2026Q2 for this port