From 6289273484548622b64c01878a96c36d199a3e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Tue, 12 Oct 2021 20:38:13 -0300 Subject: [PATCH] python3-mpmath: depend on python3-gmpy2 By default mpmath uses python's builtin long integers which are very slow. Installing python3-gmpy2 makes it use gmp, mpfr, mpc for that, which is asymptotically faster. After a discussion in #33481 it was decided to add it to depends. Also: - remove INSTALL.msg; for plotting, mpmath itself gives a warning. - Adopt. --- srcpkgs/python3-mpmath/INSTALL.msg | 4 ---- srcpkgs/python3-mpmath/template | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 srcpkgs/python3-mpmath/INSTALL.msg diff --git a/srcpkgs/python3-mpmath/INSTALL.msg b/srcpkgs/python3-mpmath/INSTALL.msg deleted file mode 100644 index d38bcd6674..0000000000 --- a/srcpkgs/python3-mpmath/INSTALL.msg +++ /dev/null @@ -1,4 +0,0 @@ -If you require plotting capabilities, install python3-matplotlib. - -mpmath internally uses Python's builtin long integers by default. -For much faster high-precision arithmetic, install python3-gmpy2. diff --git a/srcpkgs/python3-mpmath/template b/srcpkgs/python3-mpmath/template index 4087ac1293..edd45ee5b6 100644 --- a/srcpkgs/python3-mpmath/template +++ b/srcpkgs/python3-mpmath/template @@ -1,14 +1,14 @@ # Template file for 'python3-mpmath' pkgname=python3-mpmath version=1.2.1 -revision=2 +revision=3 wrksrc="mpmath-${version}" build_style=python3-module hostmakedepends="python3-setuptools_scm" -depends="python3" +depends="python3 python3-gmpy2" checkdepends="python3-pytest" short_desc="Python3 library for arbitrary-precision floating-point arithmetic" -maintainer="Orphaned " +maintainer="Gonzalo TornarĂ­a " license="BSD-3-Clause" homepage="http://mpmath.org/" distfiles="${PYPI_SITE}/m/mpmath/mpmath-${version}.tar.gz"