1 |
commit: d1291d92a0979e9227bbd81d4db6076ea08dddef |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 5 05:43:30 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 5 05:56:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1291d92 |
7 |
|
8 |
dev-python/scipy: add upstream fix for 32-bit test failures (pythran) |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../files/scipy-1.7.1-pythran-tests-32-bit.patch | 31 ++++++++++++++++++++++ |
13 |
.../{scipy-1.7.1.ebuild => scipy-1.7.1-r1.ebuild} | 4 +++ |
14 |
2 files changed, 35 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/scipy/files/scipy-1.7.1-pythran-tests-32-bit.patch b/dev-python/scipy/files/scipy-1.7.1-pythran-tests-32-bit.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..206d1d9fa3b |
19 |
--- /dev/null |
20 |
+++ b/dev-python/scipy/files/scipy-1.7.1-pythran-tests-32-bit.patch |
21 |
@@ -0,0 +1,31 @@ |
22 |
+https://github.com/scipy/scipy/commit/5b3a3b440525aa5038e2cead1f9b4f23a610cd9f |
23 |
+ |
24 |
+From: serge-sans-paille <serge.guelton@××××××××××××××××.eu> |
25 |
+Date: Sun, 18 Jul 2021 11:14:29 +0200 |
26 |
+Subject: [PATCH] Extra pythran annotation for i686 support |
27 |
+ |
28 |
+Bug spotted on Fedora, see https://src.fedoraproject.org/rpms/scipy/pull-request/22 |
29 |
+ |
30 |
+The `int[::]` annotation is used to accept non-contiguous views. |
31 |
+--- a/scipy/optimize/_group_columns.py |
32 |
++++ b/scipy/optimize/_group_columns.py |
33 |
+@@ -54,6 +54,8 @@ def group_dense(m, n, A): |
34 |
+ |
35 |
+ #pythran export group_sparse(int, int, intc[], intc[]) |
36 |
+ #pythran export group_sparse(int, int, int[], int[]) |
37 |
++#pythran export group_sparse(int, int, intc[::], intc[::]) |
38 |
++#pythran export group_sparse(int, int, int[::], int[::]) |
39 |
+ def group_sparse(m, n, indices, indptr): |
40 |
+ groups = -np.ones(n, dtype=np.intp) |
41 |
+ current_group = 0 |
42 |
+--- a/scipy/signal/_max_len_seq_inner.py |
43 |
++++ b/scipy/signal/_max_len_seq_inner.py |
44 |
+@@ -4,6 +4,7 @@ |
45 |
+ import numpy as np |
46 |
+ |
47 |
+ #pythran export _max_len_seq_inner(intp[], int8[], int, int, int8[]) |
48 |
++#pythran export _max_len_seq_inner(int[], int8[], int, int, int8[]) |
49 |
+ |
50 |
+ # Fast inner loop of max_len_seq. |
51 |
+ def _max_len_seq_inner(taps, state, nbits, length, seq): |
52 |
+ |
53 |
|
54 |
diff --git a/dev-python/scipy/scipy-1.7.1.ebuild b/dev-python/scipy/scipy-1.7.1-r1.ebuild |
55 |
similarity index 98% |
56 |
rename from dev-python/scipy/scipy-1.7.1.ebuild |
57 |
rename to dev-python/scipy/scipy-1.7.1-r1.ebuild |
58 |
index ed5e007e4e2..0ef732f5b19 100644 |
59 |
--- a/dev-python/scipy/scipy-1.7.1.ebuild |
60 |
+++ b/dev-python/scipy/scipy-1.7.1-r1.ebuild |
61 |
@@ -47,6 +47,10 @@ DISTUTILS_IN_SOURCE_BUILD=1 |
62 |
|
63 |
distutils_enable_tests pytest |
64 |
|
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-pythran-tests-32-bit.patch |
67 |
+) |
68 |
+ |
69 |
src_unpack() { |
70 |
default |
71 |
if use doc; then |