public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/, dev-python/gmpy/
@ 2018-04-06  5:23 Matt Turner
  0 siblings, 0 replies; 5+ messages in thread
From: Matt Turner @ 2018-04-06  5:23 UTC (permalink / raw
  To: gentoo-commits

commit:     0d16531e438828335a8e7616c0ee33b9a32bc1cf
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  6 05:13:50 2018 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri Apr  6 05:22:48 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d16531e

dev-python/gmpy: Add patch to fix mpir types on mips/n32

Committed with floppym's blessing.

Closes: https://bugs.gentoo.org/608496

 dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch | 17 +++++++++++++++++
 dev-python/gmpy/gmpy-2.0.8.ebuild                     |  4 ++++
 2 files changed, 21 insertions(+)

diff --git a/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch b/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch
new file mode 100644
index 00000000000..d21e5a55510
--- /dev/null
+++ b/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch
@@ -0,0 +1,17 @@
+diff -ur gmpy2-2.0.8.orig/src/gmpy.h gmpy2-2.0.8/src/gmpy.h
+--- gmpy2-2.0.8.orig/src/gmpy.h	2018-04-03 22:44:35.494621951 -0700
++++ gmpy2-2.0.8/src/gmpy.h	2018-04-03 22:45:33.580835296 -0700
+@@ -129,8 +129,13 @@
+ #ifndef BITS_PER_UI
+ /* Assume we are NOT using MPIR > 2.5. */
+ #define BITS_PER_UI         BITS_PER_ULONG
++#if defined(__mips__) && (_MIPS_SIM == _ABIN32)
++typedef unsigned long long  mpir_ui;
++typedef long long           mpir_si;
++#else
+ typedef unsigned long       mpir_ui;
+ typedef long                mpir_si;
++#endif
+ #define mpz_fits_si_p       mpz_fits_slong_p
+ #define mpz_fits_ui_p       mpz_fits_ulong_p
+ #endif

diff --git a/dev-python/gmpy/gmpy-2.0.8.ebuild b/dev-python/gmpy/gmpy-2.0.8.ebuild
index 1d39738f918..41e247051af 100644
--- a/dev-python/gmpy/gmpy-2.0.8.ebuild
+++ b/dev-python/gmpy/gmpy-2.0.8.ebuild
@@ -30,6 +30,10 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}"/${MY_P}
 
+PATCHES=(
+	"${FILESDIR}"/${P}-fix-mpir-types.patch
+)
+
 python_prepare_all() {
 	# rm non std test file
 	rm test*/gmpy_test_thr.py || die


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/, dev-python/gmpy/
@ 2021-05-15 11:51 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2021-05-15 11:51 UTC (permalink / raw
  To: gentoo-commits

commit:     7bd30f9950b53bc733b5ec74f2d8cd2b7ab2c54a
Author:     Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch>
AuthorDate: Fri May 14 14:53:14 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 15 11:51:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bd30f99

dev-python/gmpy: Bump to 2.1.0_beta5 and python 3.10

Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gmpy/Manifest                           |   1 +
 .../gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch | 132 +++++++++++++++++++++
 .../gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch   |  17 +++
 .../gmpy/files/gmpy-2.1.0_beta5-test-input.patch   |  12 ++
 dev-python/gmpy/gmpy-2.1.0_beta5.ebuild            |  53 +++++++++
 5 files changed, 215 insertions(+)

diff --git a/dev-python/gmpy/Manifest b/dev-python/gmpy/Manifest
index 16c5bf2552d..9c471701495 100644
--- a/dev-python/gmpy/Manifest
+++ b/dev-python/gmpy/Manifest
@@ -1 +1,2 @@
 DIST gmpy2-2.0.8.zip 280551 BLAKE2B b73c48b739ae6972231672ad28598c09e00db6348cd281d190c6dfcf49b0e977563baabe84825658d78bf1e2ac4927ad1882787b6d4efd19f28a4f7fd6a061b4 SHA512 090f449641f378c73eb166831b1d956c6cee3da83e42fde8741f18aa0fa687e37927fc3b045d4b35e3a3b75570e6b1074150d8bc29d16119ab5c717bcfcf9fb4
+DIST gmpy2-2.1.0b5.tar.gz 264742 BLAKE2B 1dd6dc66f9ec8cb2738f449112aa44feb40ba983f6da5f7a0760016e79ffed19037d77d47c0c0b816f9088725207e50ba3bd423349ed4c744ff03059c4c6a19a SHA512 7dc647642d7b61af77258881a7b91ab967dd11a86ba88ff5b7fd41cd4c999d2bb4cfe586511e79cc5f21f0f00d0823bbd2620d69df051c8cead15090423a657a

diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch
new file mode 100644
index 00000000000..38a98579409
--- /dev/null
+++ b/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch
@@ -0,0 +1,132 @@
+diff --git a/src/gmpy2_mpz.c b/src/gmpy2_mpz.c
+index e5087fa..66a297a 100644
+--- a/src/gmpy2_mpz.c
++++ b/src/gmpy2_mpz.c
+@@ -69,7 +69,7 @@ static PyNumberMethods GMPy_MPZ_number_methods =
+     (binaryfunc) GMPy_MPZ_ISub_Slot,       /* nb_inplace_subtract     */
+     (binaryfunc) GMPy_MPZ_IMul_Slot,       /* nb_inplace_multiply     */
+     (binaryfunc) GMPy_MPZ_IRem_Slot,       /* nb_inplace_remainder    */
+-    (ternaryfunc) GMPy_MPZ_IPow_Slot,      /* nb_inplace_power        */
++    0,      /* nb_inplace_power        */
+     (binaryfunc) GMPy_MPZ_ILshift_Slot,    /* nb_inplace_lshift       */
+     (binaryfunc) GMPy_MPZ_IRshift_Slot,    /* nb_inplace_rshift       */
+         0,                                 /* nb_inplace_and          */
+@@ -113,7 +113,7 @@ static PyNumberMethods GMPy_MPZ_number_methods =
+     (binaryfunc) GMPy_MPZ_IMul_Slot,       /* nb_inplace_multiply     */
+         0,                                 /* nb_inplace_divide       */
+     (binaryfunc) GMPy_MPZ_IRem_Slot,       /* nb_inplace_remainder    */
+-    (ternaryfunc) GMPy_MPZ_IPow_Slot,      /* nb_inplace_power        */
++    0,      /* nb_inplace_power        */
+     (binaryfunc) GMPy_MPZ_ILshift_Slot,    /* nb_inplace_lshift       */
+     (binaryfunc) GMPy_MPZ_IRshift_Slot,    /* nb_inplace_rshift       */
+         0,                                 /* nb_inplace_and          */
+@@ -229,4 +229,3 @@ static PyTypeObject MPZ_Type =
+     GMPy_MPZ_NewInit,                       /* tp_new           */
+         0,                                  /* tp_free          */
+ };
+-
+diff --git a/src/gmpy2_pow.c b/src/gmpy2_pow.c
+index ddcb43a..cf96470 100644
+--- a/src/gmpy2_pow.c
++++ b/src/gmpy2_pow.c
+@@ -98,8 +98,11 @@ GMPy_Integer_Pow(PyObject *b, PyObject *e, PyObject *m, CTXT_Object *context)
+         unsigned long el;
+ 
+         if (mpz_sgn(tempe->z) < 0) {
+-            VALUE_ERROR("pow() exponent cannot be negative");
+-            goto err;
++            Py_DECREF((PyObject*)result);
++            Py_DECREF((PyObject*)tempb);
++            Py_DECREF((PyObject*)tempe);
++
++            return GMPy_Real_Pow(b, e, m, context);
+         }
+ 
+         /* Catch -1, 0, 1 getting raised to large exponents. */
+diff --git a/src/gmpy2_xmpz_inplace.c b/src/gmpy2_xmpz_inplace.c
+index bbcd977..e5bbf09 100644
+--- a/src/gmpy2_xmpz_inplace.c
++++ b/src/gmpy2_xmpz_inplace.c
+@@ -271,14 +271,14 @@ GMPy_XMPZ_IPow_Slot(PyObject *self, PyObject *other, PyObject *mod)
+     mp_bitcnt_t exp;
+ 
+     exp = mp_bitcnt_t_From_Integer(other);
+-    if (exp == (mp_bitcnt_t)(-1) && PyErr_Occurred()) {
+-        PyErr_Clear();
+-        Py_RETURN_NOTIMPLEMENTED;
+-    }
++    if (exp == (mp_bitcnt_t)(-1) && PyErr_Occurred())
++        return NULL;
+ 
+     mpz_pow_ui(MPZ(self), MPZ(self), exp);
+     Py_INCREF((PyObject*)self);
+     return (PyObject*)self;
++
++    Py_RETURN_NOTIMPLEMENTED;
+ }
+ 
+ /* Inplace xmpz and.
+@@ -346,4 +346,3 @@ GMPy_XMPZ_IIor_Slot(PyObject *self, PyObject *other)
+ 
+     Py_RETURN_NOTIMPLEMENTED;
+ }
+-
+diff --git a/test/test_gmpy2_mpz_inplace.txt b/test/test_gmpy2_mpz_inplace.txt
+index e7a8b96..147118c 100644
+--- a/test/test_gmpy2_mpz_inplace.txt
++++ b/test/test_gmpy2_mpz_inplace.txt
+@@ -147,18 +147,16 @@ Test ipow operator
+ mpz(25)
+ >>> x **= xmpz(2); x
+ mpz(625)
+->>> x **= -2
+-Traceback (most recent call last):
+-  File "<stdin>", line 1, in <module>
+-TypeError: unsupported operand type(s) for ** or pow(): 'mpz' and 'int'
++>>> x **= -2; x
++mpfr('2.5600000000000001e-06')
++>>> x = mpz(625)
+ >>> x **= 2; x
+ mpz(390625)
+->>> x **= mpfr(2)
+-Traceback (most recent call last):
+-  File "<stdin>", line 1, in <module>
+-TypeError: unsupported operand type(s) for ** or pow(): 'mpz' and 'mpfr'
+->>> 1
+-1
++>>> x **= mpfr(2); x
++mpfr('152587890625.0')
++>>> x = mpz(390625)
++>>> x **= mpfr(-2); x
++mpfr('6.5535999999999999e-12')
+ 
+ Test iand operator
+ ------------------
+diff --git a/test/test_gmpy2_pow.txt b/test/test_gmpy2_pow.txt
+index 89bd876..d5b1f45 100644
+--- a/test/test_gmpy2_pow.txt
++++ b/test/test_gmpy2_pow.txt
+@@ -15,9 +15,7 @@ mpz(25)
+ >>> ctx.pow(z1, z2)
+ mpz(25)
+ >>> z1 ** -z2
+-Traceback (most recent call last):
+-  File "<stdin>", line 1, in <module>
+-ValueError: pow() exponent cannot be negative
++mpfr('0.040000000000000001')
+ >>> z1 ** 0
+ mpz(1)
+ >>> mpz(0) ** 32
+diff --git a/test/test_gmpy2_xmpz_inplace.txt b/test/test_gmpy2_xmpz_inplace.txt
+index 94f86b7..c02f966 100644
+--- a/test/test_gmpy2_xmpz_inplace.txt
++++ b/test/test_gmpy2_xmpz_inplace.txt
+@@ -135,7 +135,7 @@ xmpz(625)
+ >>> x **= -2
+ Traceback (most recent call last):
+   File "<stdin>", line 1, in <module>
+-TypeError: unsupported operand type(s) for ** or pow(): 'xmpz' and 'int'
++ValueError: a non-negative value is required
+ >>> x **= 2; x
+ xmpz(390625)
+ >>> x **= mpfr(2)

diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch
new file mode 100644
index 00000000000..9f59a6096fc
--- /dev/null
+++ b/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch
@@ -0,0 +1,17 @@
+diff --git a/src/gmpy2_hash.c b/src/gmpy2_hash.c
+index f276a42..1d2bfd1 100644
+--- a/src/gmpy2_hash.c
++++ b/src/gmpy2_hash.c
+@@ -147,7 +147,12 @@ _mpfr_hash(mpfr_t f)
+             }
+         }
+         else {
++#if PY_VERSION_HEX >= 0x030A00A0
++            // Python 3.10
++            return _Py_HashPointer(f);
++#else
+             return _PyHASH_NAN;
++#endif
+         }
+     }
+ 

diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-test-input.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-test-input.patch
new file mode 100644
index 00000000000..16705d917c9
--- /dev/null
+++ b/dev-python/gmpy/files/gmpy-2.1.0_beta5-test-input.patch
@@ -0,0 +1,12 @@
+diff --git a/test/runtests.py b/test/runtests.py
+index 5e5842d..7d64e52 100644
+--- a/test/runtests.py
++++ b/test/runtests.py
+@@ -81,7 +81,6 @@ if sys.version.startswith('3.1.'):
+     print("with Python 3.1. The doctest module in Python 3.2 and later does not")
+     print("have this issue.")
+     print()
+-    input("Press ENTER to continue.. ")
+     print()
+ 
+ mpz_doctests = ["test_mpz_create.txt", "test_mpz.txt", "test_mpz_io.txt",

diff --git a/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild b/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild
new file mode 100644
index 00000000000..739475e74e0
--- /dev/null
+++ b/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..10} )
+inherit distutils-r1
+
+MY_PN="${PN}2"
+MY_P="${MY_PN}-${PV/_beta/b}"
+
+DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries"
+HOMEPAGE="https://github.com/aleaxit/gmpy"
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="LGPL-3+"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="mpir"
+
+RDEPEND="
+	>=dev-libs/mpc-1.0.2:=
+	>=dev-libs/mpfr-3.1.2:=
+	!mpir? ( dev-libs/gmp:0= )
+	mpir? ( sci-libs/mpir:= )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+	# In python 3.10 _PyHASH_NAN was removed and its usage replaced with _Py_HashPointer
+	# see https://github.com/python/cpython/blob/3.10/Python/pyhash.c
+	# https://github.com/aleaxit/gmpy/pull/297
+	"${FILESDIR}"/${P}-pyhash-nan.patch
+	# The tests program asks for input when running, disable that
+	"${FILESDIR}"/${P}-test-input.patch
+	# Based on this commit:
+	# https://github.com/aleaxit/gmpy/commit/db7ce2ef46fab84e7b9c32b05725e9b02e8cf206
+	"${FILESDIR}"/${P}-failed-tests.patch
+)
+
+distutils_enable_sphinx docs
+
+python_configure_all() {
+	mydistutilsargs=(
+		# GMP is the default, add mpir if the USE flag is set
+		$(usex mpir --mpir "")
+	)
+}
+
+python_test() {
+	cd test || die
+	"${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/, dev-python/gmpy/
@ 2021-07-12  9:11 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2021-07-12  9:11 UTC (permalink / raw
  To: gentoo-commits

commit:     02549ea26529d3ab3cf1d2722d2408d638b59ea9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 12 06:45:03 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 12 09:11:40 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02549ea2

dev-python/gmpy: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gmpy/Manifest                           |  1 -
 .../gmpy/files/gmpy-2.0.8-fix-mpir-types.patch     | 17 -----
 .../gmpy/files/gmpy-2.0.8-test-exit-status.patch   | 41 ------------
 dev-python/gmpy/gmpy-2.0.8-r2.ebuild               | 72 ----------------------
 dev-python/gmpy/metadata.xml                       |  3 -
 5 files changed, 134 deletions(-)

diff --git a/dev-python/gmpy/Manifest b/dev-python/gmpy/Manifest
index 9c471701495..45c5011b8ff 100644
--- a/dev-python/gmpy/Manifest
+++ b/dev-python/gmpy/Manifest
@@ -1,2 +1 @@
-DIST gmpy2-2.0.8.zip 280551 BLAKE2B b73c48b739ae6972231672ad28598c09e00db6348cd281d190c6dfcf49b0e977563baabe84825658d78bf1e2ac4927ad1882787b6d4efd19f28a4f7fd6a061b4 SHA512 090f449641f378c73eb166831b1d956c6cee3da83e42fde8741f18aa0fa687e37927fc3b045d4b35e3a3b75570e6b1074150d8bc29d16119ab5c717bcfcf9fb4
 DIST gmpy2-2.1.0b5.tar.gz 264742 BLAKE2B 1dd6dc66f9ec8cb2738f449112aa44feb40ba983f6da5f7a0760016e79ffed19037d77d47c0c0b816f9088725207e50ba3bd423349ed4c744ff03059c4c6a19a SHA512 7dc647642d7b61af77258881a7b91ab967dd11a86ba88ff5b7fd41cd4c999d2bb4cfe586511e79cc5f21f0f00d0823bbd2620d69df051c8cead15090423a657a

diff --git a/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch b/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch
deleted file mode 100644
index d21e5a55510..00000000000
--- a/dev-python/gmpy/files/gmpy-2.0.8-fix-mpir-types.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff -ur gmpy2-2.0.8.orig/src/gmpy.h gmpy2-2.0.8/src/gmpy.h
---- gmpy2-2.0.8.orig/src/gmpy.h	2018-04-03 22:44:35.494621951 -0700
-+++ gmpy2-2.0.8/src/gmpy.h	2018-04-03 22:45:33.580835296 -0700
-@@ -129,8 +129,13 @@
- #ifndef BITS_PER_UI
- /* Assume we are NOT using MPIR > 2.5. */
- #define BITS_PER_UI         BITS_PER_ULONG
-+#if defined(__mips__) && (_MIPS_SIM == _ABIN32)
-+typedef unsigned long long  mpir_ui;
-+typedef long long           mpir_si;
-+#else
- typedef unsigned long       mpir_ui;
- typedef long                mpir_si;
-+#endif
- #define mpz_fits_si_p       mpz_fits_slong_p
- #define mpz_fits_ui_p       mpz_fits_ulong_p
- #endif

diff --git a/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch b/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch
deleted file mode 100644
index ab4128ff55c..00000000000
--- a/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-diff -dupr a/test2/gmpy_test.py b/test2/gmpy_test.py
---- a/test2/gmpy_test.py	2019-11-22 09:21:42.313037873 +0100
-+++ b/test2/gmpy_test.py	2013-08-20 22:17:52.000000000 +0200
-@@ -34,11 +34,15 @@ writeln("  Caching Values: (Number)
- writeln("  Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1]))
- 
- pf, pt = 0, 0
-+ret = 0
- for x in test_modules:
-     testit = x._test()
-     failures, tests = testit
-     if tests == 0: continue
-+    if failures > 0: ret = 1
-     writeln("%s %3d tests, %d failures" % (x.__name__, tests-pt, failures-pf))
-     pf, pt = failures, tests
- 
- doctest.master.summarize(1)
-+
-+sys.exit(ret)
-diff -dupr a/test3/gmpy_test.py b/test3/gmpy_test.py
---- a/test3/gmpy_test.py	2019-11-22 09:21:30.421908749 +0100
-+++ b/test3/gmpy_test.py	2013-08-20 22:17:52.000000000 +0200
-@@ -28,10 +28,12 @@ print("  Caching Values: (Number)      {
- print("  Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1]))
- 
- pf, pt = 0, 0
-+ret = 0
- for x in test_modules:
-     testit = x._test()
-     failures, tests = testit
-     if tests == 0: continue
-+    if failures > 0: ret = 1
-     print("%s %3d tests, %d failures" % (x.__name__, tests-pt, failures-pf))
-     pf, pt = failures, tests
- 
-@@ -41,3 +43,5 @@ if sys.version_info < (3,1,1):
-     print("There is a known bug with Fraction == mpq for versions of Python")
-     print("less than 3.1.1. Please upgrade if you rely on comparisons between")
-     print("Python's Fraction and gmpy2's mpq.")
-+
-+sys.exit(ret)

diff --git a/dev-python/gmpy/gmpy-2.0.8-r2.ebuild b/dev-python/gmpy/gmpy-2.0.8-r2.ebuild
deleted file mode 100644
index dc45e33a9a1..00000000000
--- a/dev-python/gmpy/gmpy-2.0.8-r2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DISTUTILS_USE_SETUPTOOLS=no
-PYTHON_COMPAT=( python3_{7,8,9} )
-
-inherit distutils-r1
-
-MY_PN="${PN}2"
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries"
-HOMEPAGE="https://github.com/aleaxit/gmpy"
-SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.zip"
-S="${WORKDIR}"/${MY_P}
-
-LICENSE="LGPL-3+"
-SLOT="2"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="mpir"
-
-RDEPEND="
-	>=dev-libs/mpc-1.0.2:=
-	>=dev-libs/mpfr-3.1.2:=
-	!mpir? ( dev-libs/gmp:0= )
-	mpir? ( sci-libs/mpir:= )"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	app-arch/unzip"
-
-PATCHES=(
-	"${FILESDIR}"/${P}-fix-mpir-types.patch
-	"${FILESDIR}"/gmpy-2.0.8-test-exit-status.patch
-)
-
-distutils_enable_sphinx docs
-
-python_prepare_all() {
-	# rm non std test file
-	rm test*/gmpy_test_thr.py || die
-	# testing for contents of __dir__ is really silly, and fails
-	sed -i -e '/__dir__/,+1d' test3/*.py || die
-	# fix sphinx-1.8+ compat
-	# https://github.com/aleaxit/gmpy/commit/c35c1f3319fcf95e894a59a6d523851bad4abf66
-	sed -i -e 's:pngmath:imgmath:' docs/conf.py || die
-
-	distutils-r1_python_prepare_all
-}
-
-python_configure_all() {
-	mydistutilsargs=(
-		$(usex mpir --mpir --gmp)
-	)
-}
-
-python_compile() {
-	python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
-	distutils-r1_python_compile
-}
-
-python_test() {
-	cd test || die
-	"${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
-	if python_is_python3; then
-		cd ../test3 || die
-	else
-		cd ../test2 || die
-	fi
-	"${EPYTHON}" gmpy_test.py || die "tests failed under ${EPYTHON}"
-}

diff --git a/dev-python/gmpy/metadata.xml b/dev-python/gmpy/metadata.xml
index fd738a835d7..2b02c6f120d 100644
--- a/dev-python/gmpy/metadata.xml
+++ b/dev-python/gmpy/metadata.xml
@@ -11,9 +11,6 @@
 		library, the MPFR (correctly rounded real floating-point arithmetic) and MPC
 		(correctly rounded complex floating-point arithmetic) libraries.
 	</longdescription>
-	<use>
-		<flag name="mpir">Use <pkg>sci-libs/mpir</pkg> as gmp implementation</flag>
-	</use>
 	<upstream>
 		<remote-id type="pypi">gmpy2</remote-id>
 		<remote-id type="github">aleaxit/gmpy</remote-id>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/, dev-python/gmpy/
@ 2022-01-12 11:42 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2022-01-12 11:42 UTC (permalink / raw
  To: gentoo-commits

commit:     aed9ab620944c1e558f0048d8a12a72fed7904df
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 12 11:41:05 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 12 11:42:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aed9ab62

dev-python/gmpy: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gmpy/Manifest                           |   1 -
 .../gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch | 132 ---------------------
 .../gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch   |  17 ---
 dev-python/gmpy/gmpy-2.1.0_beta5.ebuild            |  45 -------
 4 files changed, 195 deletions(-)

diff --git a/dev-python/gmpy/Manifest b/dev-python/gmpy/Manifest
index 011257bc41ed..19a0ff522567 100644
--- a/dev-python/gmpy/Manifest
+++ b/dev-python/gmpy/Manifest
@@ -1,4 +1,3 @@
 DIST gmpy2-2.1.0.tar.gz 258571 BLAKE2B 942786c9a2e1220ecad15e97c26cbea0b93c7719e5081f6defe7b71d43be0c4ce259355eb34fa013a0b90679022535a271f26425c615e65103d3a2705b27ec8e SHA512 0d62354a1446708548b8dfdc6d7f8000151eb5901251f87f935144f615fd586726617c7a2bd05b91dc3e2a0cfc8797cd81d60afb8c705da153b537345eaddb34
-DIST gmpy2-2.1.0b5.tar.gz 264742 BLAKE2B 1dd6dc66f9ec8cb2738f449112aa44feb40ba983f6da5f7a0760016e79ffed19037d77d47c0c0b816f9088725207e50ba3bd423349ed4c744ff03059c4c6a19a SHA512 7dc647642d7b61af77258881a7b91ab967dd11a86ba88ff5b7fd41cd4c999d2bb4cfe586511e79cc5f21f0f00d0823bbd2620d69df051c8cead15090423a657a
 DIST gmpy2-2.1.1.tar.gz 258607 BLAKE2B 3c070d101066fb0ba5da61b8c1eacf6bbd334aed987161091f31bccc1e836430cb844e0fdcb5017718341761f54c0fc3290e37ace28a5c4fc07930a194e77256 SHA512 37a08b546476f1b49cdfdb04b3a6d4da266615f789eb03896d5e2dd326c91f0fb9523504414b0de30e7265840e2ef77362a5ff011906952100c8b1da4d88d709
 DIST gmpy2-2.1.2.tar.gz 258445 BLAKE2B 5fd89478bb7c48c317a7af74fd872e5a9c1141f8f23c110aba7298d1a325caa13e24f1a2e601d6b3c6f6af30d60505f9161a03def16df59dddabe611fb600ef4 SHA512 abfeb0d8a155235e3aa797ca7b34ab6947f0714273e9d381167a9f6273bad34689e1985c139080b146e072b5bfbb4fa2b937566a14f4b94cc09ed21b3f2082b7

diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch
deleted file mode 100644
index 38a98579409a..000000000000
--- a/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch
+++ /dev/null
@@ -1,132 +0,0 @@
-diff --git a/src/gmpy2_mpz.c b/src/gmpy2_mpz.c
-index e5087fa..66a297a 100644
---- a/src/gmpy2_mpz.c
-+++ b/src/gmpy2_mpz.c
-@@ -69,7 +69,7 @@ static PyNumberMethods GMPy_MPZ_number_methods =
-     (binaryfunc) GMPy_MPZ_ISub_Slot,       /* nb_inplace_subtract     */
-     (binaryfunc) GMPy_MPZ_IMul_Slot,       /* nb_inplace_multiply     */
-     (binaryfunc) GMPy_MPZ_IRem_Slot,       /* nb_inplace_remainder    */
--    (ternaryfunc) GMPy_MPZ_IPow_Slot,      /* nb_inplace_power        */
-+    0,      /* nb_inplace_power        */
-     (binaryfunc) GMPy_MPZ_ILshift_Slot,    /* nb_inplace_lshift       */
-     (binaryfunc) GMPy_MPZ_IRshift_Slot,    /* nb_inplace_rshift       */
-         0,                                 /* nb_inplace_and          */
-@@ -113,7 +113,7 @@ static PyNumberMethods GMPy_MPZ_number_methods =
-     (binaryfunc) GMPy_MPZ_IMul_Slot,       /* nb_inplace_multiply     */
-         0,                                 /* nb_inplace_divide       */
-     (binaryfunc) GMPy_MPZ_IRem_Slot,       /* nb_inplace_remainder    */
--    (ternaryfunc) GMPy_MPZ_IPow_Slot,      /* nb_inplace_power        */
-+    0,      /* nb_inplace_power        */
-     (binaryfunc) GMPy_MPZ_ILshift_Slot,    /* nb_inplace_lshift       */
-     (binaryfunc) GMPy_MPZ_IRshift_Slot,    /* nb_inplace_rshift       */
-         0,                                 /* nb_inplace_and          */
-@@ -229,4 +229,3 @@ static PyTypeObject MPZ_Type =
-     GMPy_MPZ_NewInit,                       /* tp_new           */
-         0,                                  /* tp_free          */
- };
--
-diff --git a/src/gmpy2_pow.c b/src/gmpy2_pow.c
-index ddcb43a..cf96470 100644
---- a/src/gmpy2_pow.c
-+++ b/src/gmpy2_pow.c
-@@ -98,8 +98,11 @@ GMPy_Integer_Pow(PyObject *b, PyObject *e, PyObject *m, CTXT_Object *context)
-         unsigned long el;
- 
-         if (mpz_sgn(tempe->z) < 0) {
--            VALUE_ERROR("pow() exponent cannot be negative");
--            goto err;
-+            Py_DECREF((PyObject*)result);
-+            Py_DECREF((PyObject*)tempb);
-+            Py_DECREF((PyObject*)tempe);
-+
-+            return GMPy_Real_Pow(b, e, m, context);
-         }
- 
-         /* Catch -1, 0, 1 getting raised to large exponents. */
-diff --git a/src/gmpy2_xmpz_inplace.c b/src/gmpy2_xmpz_inplace.c
-index bbcd977..e5bbf09 100644
---- a/src/gmpy2_xmpz_inplace.c
-+++ b/src/gmpy2_xmpz_inplace.c
-@@ -271,14 +271,14 @@ GMPy_XMPZ_IPow_Slot(PyObject *self, PyObject *other, PyObject *mod)
-     mp_bitcnt_t exp;
- 
-     exp = mp_bitcnt_t_From_Integer(other);
--    if (exp == (mp_bitcnt_t)(-1) && PyErr_Occurred()) {
--        PyErr_Clear();
--        Py_RETURN_NOTIMPLEMENTED;
--    }
-+    if (exp == (mp_bitcnt_t)(-1) && PyErr_Occurred())
-+        return NULL;
- 
-     mpz_pow_ui(MPZ(self), MPZ(self), exp);
-     Py_INCREF((PyObject*)self);
-     return (PyObject*)self;
-+
-+    Py_RETURN_NOTIMPLEMENTED;
- }
- 
- /* Inplace xmpz and.
-@@ -346,4 +346,3 @@ GMPy_XMPZ_IIor_Slot(PyObject *self, PyObject *other)
- 
-     Py_RETURN_NOTIMPLEMENTED;
- }
--
-diff --git a/test/test_gmpy2_mpz_inplace.txt b/test/test_gmpy2_mpz_inplace.txt
-index e7a8b96..147118c 100644
---- a/test/test_gmpy2_mpz_inplace.txt
-+++ b/test/test_gmpy2_mpz_inplace.txt
-@@ -147,18 +147,16 @@ Test ipow operator
- mpz(25)
- >>> x **= xmpz(2); x
- mpz(625)
-->>> x **= -2
--Traceback (most recent call last):
--  File "<stdin>", line 1, in <module>
--TypeError: unsupported operand type(s) for ** or pow(): 'mpz' and 'int'
-+>>> x **= -2; x
-+mpfr('2.5600000000000001e-06')
-+>>> x = mpz(625)
- >>> x **= 2; x
- mpz(390625)
-->>> x **= mpfr(2)
--Traceback (most recent call last):
--  File "<stdin>", line 1, in <module>
--TypeError: unsupported operand type(s) for ** or pow(): 'mpz' and 'mpfr'
-->>> 1
--1
-+>>> x **= mpfr(2); x
-+mpfr('152587890625.0')
-+>>> x = mpz(390625)
-+>>> x **= mpfr(-2); x
-+mpfr('6.5535999999999999e-12')
- 
- Test iand operator
- ------------------
-diff --git a/test/test_gmpy2_pow.txt b/test/test_gmpy2_pow.txt
-index 89bd876..d5b1f45 100644
---- a/test/test_gmpy2_pow.txt
-+++ b/test/test_gmpy2_pow.txt
-@@ -15,9 +15,7 @@ mpz(25)
- >>> ctx.pow(z1, z2)
- mpz(25)
- >>> z1 ** -z2
--Traceback (most recent call last):
--  File "<stdin>", line 1, in <module>
--ValueError: pow() exponent cannot be negative
-+mpfr('0.040000000000000001')
- >>> z1 ** 0
- mpz(1)
- >>> mpz(0) ** 32
-diff --git a/test/test_gmpy2_xmpz_inplace.txt b/test/test_gmpy2_xmpz_inplace.txt
-index 94f86b7..c02f966 100644
---- a/test/test_gmpy2_xmpz_inplace.txt
-+++ b/test/test_gmpy2_xmpz_inplace.txt
-@@ -135,7 +135,7 @@ xmpz(625)
- >>> x **= -2
- Traceback (most recent call last):
-   File "<stdin>", line 1, in <module>
--TypeError: unsupported operand type(s) for ** or pow(): 'xmpz' and 'int'
-+ValueError: a non-negative value is required
- >>> x **= 2; x
- xmpz(390625)
- >>> x **= mpfr(2)

diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch
deleted file mode 100644
index 9f59a6096fcd..000000000000
--- a/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/src/gmpy2_hash.c b/src/gmpy2_hash.c
-index f276a42..1d2bfd1 100644
---- a/src/gmpy2_hash.c
-+++ b/src/gmpy2_hash.c
-@@ -147,7 +147,12 @@ _mpfr_hash(mpfr_t f)
-             }
-         }
-         else {
-+#if PY_VERSION_HEX >= 0x030A00A0
-+            // Python 3.10
-+            return _Py_HashPointer(f);
-+#else
-             return _PyHASH_NAN;
-+#endif
-         }
-     }
- 

diff --git a/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild b/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild
deleted file mode 100644
index 4768bf50c719..000000000000
--- a/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1
-
-MY_PN="${PN}2"
-MY_P="${MY_PN}-${PV/_beta/b}"
-
-DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries"
-HOMEPAGE="https://github.com/aleaxit/gmpy"
-SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
-S="${WORKDIR}"/${MY_P}
-
-LICENSE="LGPL-3+"
-SLOT="2"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-
-RDEPEND="
-	>=dev-libs/mpc-1.0.2:=
-	>=dev-libs/mpfr-3.1.2:=
-	dev-libs/gmp:0=
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
-	# In python 3.10 _PyHASH_NAN was removed and its usage replaced with _Py_HashPointer
-	# see https://github.com/python/cpython/blob/3.10/Python/pyhash.c
-	# https://github.com/aleaxit/gmpy/pull/297
-	"${FILESDIR}"/${P}-pyhash-nan.patch
-	# The tests program asks for input when running, disable that
-	"${FILESDIR}"/${P}-test-input.patch
-	# Based on this commit:
-	# https://github.com/aleaxit/gmpy/commit/db7ce2ef46fab84e7b9c32b05725e9b02e8cf206
-	"${FILESDIR}"/${P}-failed-tests.patch
-)
-
-distutils_enable_sphinx docs
-
-python_test() {
-	cd test || die
-	"${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/, dev-python/gmpy/
@ 2024-10-31  5:00 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2024-10-31  5:00 UTC (permalink / raw
  To: gentoo-commits

commit:     0fa422704294e82bd03b9e9e4a8f3a2081598ad3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 31 04:37:47 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 31 04:37:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fa42270

dev-python/gmpy: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gmpy/Manifest                          |  3 --
 dev-python/gmpy/files/gmpy-2.1.5-mpfr-4.2.1.patch | 31 --------------
 dev-python/gmpy/gmpy-2.1.5-r2.ebuild              | 51 -----------------------
 3 files changed, 85 deletions(-)

diff --git a/dev-python/gmpy/Manifest b/dev-python/gmpy/Manifest
index 01ce77a4a165..0438447f5105 100644
--- a/dev-python/gmpy/Manifest
+++ b/dev-python/gmpy/Manifest
@@ -1,4 +1 @@
-DIST gmpy-2.1.5-cache.patch 19769 BLAKE2B 72d61ea00fda608ae92c5319828cb5c0003a69cd4be4bf3cde62574a93987b2316df5334d290eca7d48e44e423227d0b5a22c142c4a95b42aebb4560c3bf7ea6 SHA512 f16dbd78a99f27c6f588b814bb9b307429927eae9828fcea04225f163c1cd28968c2994689c4802dc0b619cdfd7c50401d1ec06c220756268af17499613fda1b
-DIST gmpy-2.1.5-py3.12.patch.gz 1817 BLAKE2B cbea3a9c662d52c5bfddb82ab5e920474a52c1dd715b3b9fecf55e5ee097297168ddb7961b6156e4c1f902e911890c77252d119c3651f345f01cad144ed44127 SHA512 26195e8e9a87147a05fd07fa325f262c2004fcba2b8857dbc87ca7a1e9e5e64b4a47d35be77edc263829e5df1db6a0acda6904307d01529eba832feb4f0f3f71
-DIST gmpy2-2.1.5.tar.gz 261709 BLAKE2B 50958868866fadc49c97534780fa491fadfaaea902f3fd4bd51f4e76a94602a6d030a1ee6685aac742e25b5fbe4865e1419307f7215c8fb553b166761d63607a SHA512 92e16359ee1df63faaeae4a3cbefe8cdbbc576d8eda377f08d59f12b70dfe9337a299686e85d1efee6c2f5b41fc4583643fecc68ea38a500c7f876c56fc169e7
 DIST gmpy2-2.2.1.tar.gz 234228 BLAKE2B 80188c6abd30ee5b5ebc4d233d3d97dd78be7f9d21d0649429e87b23d3e6d8b5b9269c792d481f24bd3b43d28e012bdd64ee6bb5d0137e3ac759742c845186c1 SHA512 2a3dc011295a373e10455e1f133aa3063cff24cdac0151cee9f29ce5855c3e44c3e3aab61bf13c11c9df1147b9183c6c387db1cb4dcb270b9dce1a9cb521f5dc

diff --git a/dev-python/gmpy/files/gmpy-2.1.5-mpfr-4.2.1.patch b/dev-python/gmpy/files/gmpy-2.1.5-mpfr-4.2.1.patch
deleted file mode 100644
index 4bbc9097824e..000000000000
--- a/dev-python/gmpy/files/gmpy-2.1.5-mpfr-4.2.1.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 68a6b489c3d8d95b2658a1ed884fb99f4bd955c1 Mon Sep 17 00:00:00 2001
-From: Sergey B Kirpichev <skirpichev@gmail.com>
-Date: Sun, 3 Sep 2023 02:35:19 +0300
-Subject: [PATCH] Exclude MPFR workaround for MPFR >= 4.2.1
-
-Co-authored-by: Vincent Lefevre <vincent@vinc17.net>
-
-Closes #418
----
- src/gmpy2_format.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/gmpy2_format.c b/src/gmpy2_format.c
-index 3e450c96..303bb7bf 100644
---- a/src/gmpy2_format.c
-+++ b/src/gmpy2_format.c
-@@ -592,12 +592,14 @@ GMPy_MPC_Format(PyObject *self, PyObject *args)
-     if (mpcstyle)
-         strcat(tempbuf, " ");
-     else {
-+#if MPFR_VERSION < MPFR_VERSION_NUM(4,2,1)
-         /* Need to insert + if imag is nan or +inf. */
-         if (mpfr_nan_p(mpc_imagref(MPC(self))) ||
-             (mpfr_inf_p(mpc_imagref(MPC(self))) &&
-              mpfr_sgn(mpc_imagref(MPC(self))) > 0)) {
-             strcat(tempbuf, "+");
-         }
-+#endif
-     }
-     strcat(tempbuf, imagbuf);
-     if (strlen(imagbuf) < 50 &&

diff --git a/dev-python/gmpy/gmpy-2.1.5-r2.ebuild b/dev-python/gmpy/gmpy-2.1.5-r2.ebuild
deleted file mode 100644
index dd824a5359e1..000000000000
--- a/dev-python/gmpy/gmpy-2.1.5-r2.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYPI_PN="gmpy2"
-PYTHON_COMPAT=( python3_{10..13} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries"
-HOMEPAGE="
-	https://github.com/aleaxit/gmpy/
-	https://pypi.org/project/gmpy2/
-"
-SRC_URI+="
-	https://dev.gentoo.org/~grozin/${P}-py3.12.patch.gz
-	https://github.com/tornaria/void-packages/raw/722b32aa405804b79a74256708de6a511e255b4b/srcpkgs/python3-gmpy2/patches/cleanup-object-caching.patch
-		-> ${P}-cache.patch
-"
-
-LICENSE="LGPL-3+"
-SLOT="2"
-KEYWORDS="amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-
-DEPEND="
-	>=dev-libs/mpc-1.0.2:=
-	>=dev-libs/mpfr-3.1.2:=
-	dev-libs/gmp:0=
-"
-RDEPEND="
-	${DEPEND}
-"
-
-distutils_enable_sphinx docs
-
-PATCHES=(
-	"${WORKDIR}/${P}-py3.12.patch"
-	# https://github.com/aleaxit/gmpy/commit/7351e2eb1abf4b37a47a822eb3f3f29f90c7f854
-	# rebased by Void; needed for mpfr 4.2.1
-	"${DISTDIR}/${P}-cache.patch"
-	# https://github.com/aleaxit/gmpy/commit/68a6b489c3d8d95b2658a1ed884fb99f4bd955c1
-	"${FILESDIR}/${P}-mpfr-4.2.1.patch"
-)
-
-python_test() {
-	cd test || die
-	"${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-31  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-06  5:23 [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/, dev-python/gmpy/ Matt Turner
  -- strict thread matches above, loose matches on Subject: below --
2021-05-15 11:51 Michał Górny
2021-07-12  9:11 Michał Górny
2022-01-12 11:42 Michał Górny
2024-10-31  5:00 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox