1 |
commit: 6ae5bfe71ff2b10e6ed07acaf2fa9af1830ac50c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 26 08:36:22 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 26 08:37:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ae5bfe7 |
7 |
|
8 |
dev-python/numpy: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/numpy/Manifest | 16 -- |
13 |
.../numpy/files/numpy-1.21.3-unaligned-array.patch | 45 ------ |
14 |
.../numpy/files/numpy-1.21.4-copy-python-3.9.patch | 52 ------- |
15 |
dev-python/numpy/numpy-1.21.1-r1.ebuild | 144 ------------------ |
16 |
dev-python/numpy/numpy-1.21.2-r1.ebuild | 144 ------------------ |
17 |
dev-python/numpy/numpy-1.21.3-r1.ebuild | 152 ------------------- |
18 |
dev-python/numpy/numpy-1.21.4-r2.ebuild | 162 --------------------- |
19 |
dev-python/numpy/numpy-1.21.4.ebuild | 151 ------------------- |
20 |
8 files changed, 866 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest |
23 |
index 521499f96a7f..a38e2535662e 100644 |
24 |
--- a/dev-python/numpy/Manifest |
25 |
+++ b/dev-python/numpy/Manifest |
26 |
@@ -1,28 +1,12 @@ |
27 |
-DIST numpy-1.21.1.zip 10259878 BLAKE2B ba5d8eb2d294e199c86d8e96026d148098f5716398e730e0fdfee3b710fd01cb6e877973471d7751a2e558c2eaeb626fe9ce5ea4b03a7e4f8e5dc42b852d5b7c SHA512 694100915f4e2917d70a83e7fcdad30c85ffad8f5ad8d164c89287846c1b746c2b577233bacf53e8d8ca5147391f46065a2cabf100957bb8841dee4a042bc1f5 |
28 |
-DIST numpy-1.21.2.zip 10264801 BLAKE2B 2d88506faa5bc767a16c000f201559917d800fd205c75f30c1e61d4b34e214b376da9876e96186914f9fe23bf033a305bf9212f593841407e3bf4e516b5982a6 SHA512 ad08110d9a73a73ef1a546de5fcd6dfe600c17b396f629c3a19ade7b3f226688cf7524fed78c035fd4ddda135e2bcf9facb5e061fb59640b424da2ed070c4184 |
29 |
-DIST numpy-1.21.3.zip 10269351 BLAKE2B 60fc96d91e2c4e0b1c6ee409e02640686fe257f5addbb17229568f591551ea3c415c4aac97b7cdb161b88ce436e42a766b161bd5a82f8cb66fff6771c0097bd3 SHA512 8fbe4e8543b72ad5203d5b122eb3d875e48965682945898e54f4ce82cf790713dfd9185b8b12439aefa86bf25209ea25d04ec3ca2aa2b8d2f32d69358421b792 |
30 |
-DIST numpy-1.21.4.zip 10646392 BLAKE2B 6e2953c6ca8e35c99f5de5faaacfb2b76b351a5c9521ba27449fcdeca5614978ff7d71fc52ce3787d1c7506c4e8eb81b1a92d3bf6825de1cb1d304ea4de83820 SHA512 85575a009bf40a8e5acaaa949d2669545968825df34273e367c42af36fa882ebb0830ff7953b5617d34d3061b3877238524937c42470fac9464479dc33ae60ce |
31 |
DIST numpy-1.21.5.zip 10652289 BLAKE2B c5bded91e5d06670ea3ace51560411c61985dd89ff0455b833838320f1714cf788a21a60aefd7a0ff30ad0abb93c9d296f60e637944000efa090b6c259c1f47c SHA512 03affa9d0bbf42a8d35f5454f1527df28539e306dc2b313fa775625201a5fe9eb7376f443bba5d50e08567546708811beb7201819eeb2af5a0653b7d91249f78 |
32 |
DIST numpy-1.22.0.zip 11291139 BLAKE2B 91cd2188aaa59d7be18761b74865295f400e309e34bf79067493221c5f0eb875a5c726dd8e322db84fa9714800347954b6a9896aadf914e87872497f7e65527c SHA512 dcea1a6cd257f6353caccc30b2adb1cf2e9d52191ec9f968839c85b1f776ebf8c5ac8bbf0751c2c6f292ae671e4006d26eb06691ca1504e4d65baf4cec3f9803 |
33 |
DIST numpy-1.22.1.zip 11443674 BLAKE2B 3f2e5fbd449c078fd97670be14e87fd9bccc8418dc37f87199557642f0f951f5fd21b89eff938c30171eda3174c526db91e470e9e9cdc297b8abd9b4fe364ad5 SHA512 0d8b5ffb6f8377b3d6d6cb62fd7eef083f8a3b787542b7887e0d214c6fa78b63b6f726302bca554c0c11c57e4611926c8d8ff4abf5dd59842b8b58086391434d |
34 |
DIST numpy-html-1.21.0.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc |
35 |
-DIST numpy-html-1.21.1.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc |
36 |
-DIST numpy-html-1.21.2.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc |
37 |
-DIST numpy-html-1.21.3.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc |
38 |
-DIST numpy-html-1.21.4.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc |
39 |
DIST numpy-html-1.21.5.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc |
40 |
DIST numpy-html-1.22.1.zip 23724824 BLAKE2B 44ea3da0a703a024a629c8413dfffaf760458b185d19452da0e7e23c819e19833291e10ebd07bdda794077574b8852a368036dda8335c2753cd481740497502a SHA512 4077d9974bfd7f2c189025c3740350652e6f8e0b5727fbc9711a1c0118c1e4ecc281d4876baf1c6a5dc802d20178d6b04a2922f14e9c321cd3b68228b1e295c3 |
41 |
DIST numpy-ref-1.21.0.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f |
42 |
-DIST numpy-ref-1.21.1.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f |
43 |
-DIST numpy-ref-1.21.2.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f |
44 |
-DIST numpy-ref-1.21.3.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f |
45 |
-DIST numpy-ref-1.21.4.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f |
46 |
DIST numpy-ref-1.21.5.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f |
47 |
DIST numpy-ref-1.22.1.pdf 7537013 BLAKE2B 702398fddde349901f9303f4788a3ae3cc4bb78b4d310e169fcc6193fd62b33947c89ede45ba9aaea55e74f6a6abc755d3d94428adce9a8163678c6718aec2da SHA512 c1617817f94ccdfe2bbdebdc9c6869beefa1369d5ab0897c1573d8fb5cb3de153f90d5588aae84a0f498fba57ad6bc5c0c5c2c3aefb119e2913e4ddf007cc8e1 |
48 |
DIST numpy-user-1.21.0.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace |
49 |
-DIST numpy-user-1.21.1.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace |
50 |
-DIST numpy-user-1.21.2.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace |
51 |
-DIST numpy-user-1.21.3.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace |
52 |
-DIST numpy-user-1.21.4.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace |
53 |
DIST numpy-user-1.21.5.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace |
54 |
DIST numpy-user-1.22.1.pdf 3978348 BLAKE2B 87cc73cb1c406446eb9d86ea6cbaeac6ba13c7d2b2ffd47524483af1698c3efdfaafe61e987624c5ce01939494861413b271e9a96f49abbbe69d634b9be55c95 SHA512 8e04c0c90255038471de6ef0f8f4ed9e356d646b028bb16f667f3c59170eddaa0d86d48226462c5c17b8123b2a28a09982764979e9e76658b4e26cd0a976f3a1 |
55 |
|
56 |
diff --git a/dev-python/numpy/files/numpy-1.21.3-unaligned-array.patch b/dev-python/numpy/files/numpy-1.21.3-unaligned-array.patch |
57 |
deleted file mode 100644 |
58 |
index 8d04cc0968dc..000000000000 |
59 |
--- a/dev-python/numpy/files/numpy-1.21.3-unaligned-array.patch |
60 |
+++ /dev/null |
61 |
@@ -1,45 +0,0 @@ |
62 |
-From d9bbd60d0f2896d1b1f865e6035dccb12db4b1a0 Mon Sep 17 00:00:00 2001 |
63 |
-From: Sebastian Berg <sebastian@××××××××××××.net> |
64 |
-Date: Sat, 23 Oct 2021 22:54:21 -0500 |
65 |
-Subject: [PATCH] BUG: Do not use nonzero fastpath on unaligned arrays |
66 |
- |
67 |
-The fast-path does not handle unalgined access, previously only |
68 |
-bools had a fast path (and bools are by definition always aligned |
69 |
-since they are stored in a single byte/char). |
70 |
- |
71 |
-Closes gh-19592 |
72 |
---- |
73 |
- numpy/core/src/multiarray/item_selection.c | 19 +++++++------------ |
74 |
- 1 file changed, 7 insertions(+), 12 deletions(-) |
75 |
- |
76 |
-diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c |
77 |
-index ee66378a938..33d378c2b58 100644 |
78 |
---- a/numpy/core/src/multiarray/item_selection.c |
79 |
-+++ b/numpy/core/src/multiarray/item_selection.c |
80 |
-@@ -2398,19 +2398,14 @@ PyArray_CountNonzero(PyArrayObject *self) |
81 |
- npy_intp *strideptr, *innersizeptr; |
82 |
- NPY_BEGIN_THREADS_DEF; |
83 |
- |
84 |
-- // Special low-overhead version specific to the boolean/int types |
85 |
- dtype = PyArray_DESCR(self); |
86 |
-- switch(dtype->kind) { |
87 |
-- case 'u': |
88 |
-- case 'i': |
89 |
-- case 'b': |
90 |
-- if (dtype->elsize > 8) { |
91 |
-- break; |
92 |
-- } |
93 |
-- return count_nonzero_int( |
94 |
-- PyArray_NDIM(self), PyArray_BYTES(self), PyArray_DIMS(self), |
95 |
-- PyArray_STRIDES(self), dtype->elsize |
96 |
-- ); |
97 |
-+ /* Special low-overhead version specific to the boolean/int types */ |
98 |
-+ if (PyArray_ISALIGNED(self) && ( |
99 |
-+ PyDataType_ISBOOL(dtype) || PyDataType_ISINTEGER(dtype))) { |
100 |
-+ return count_nonzero_int( |
101 |
-+ PyArray_NDIM(self), PyArray_BYTES(self), PyArray_DIMS(self), |
102 |
-+ PyArray_STRIDES(self), dtype->elsize |
103 |
-+ ); |
104 |
- } |
105 |
- |
106 |
- nonzero = PyArray_DESCR(self)->f->nonzero; |
107 |
|
108 |
diff --git a/dev-python/numpy/files/numpy-1.21.4-copy-python-3.9.patch b/dev-python/numpy/files/numpy-1.21.4-copy-python-3.9.patch |
109 |
deleted file mode 100644 |
110 |
index 81464151e753..000000000000 |
111 |
--- a/dev-python/numpy/files/numpy-1.21.4-copy-python-3.9.patch |
112 |
+++ /dev/null |
113 |
@@ -1,52 +0,0 @@ |
114 |
-https://github.com/numpy/numpy/commit/50823973e857363f7d8052768276c2e86f004d61 |
115 |
-https://github.com/numpy/numpy/pull/20357 |
116 |
- |
117 |
-From: Bas van Beek <b.f.van.beek@××.nl> |
118 |
-Date: Wed, 10 Nov 2021 15:36:00 +0100 |
119 |
-Subject: [PATCH] MAINT: Do not forward `__(deep)copy__` calls of |
120 |
- `_GenericAlias` to the wrapped type |
121 |
- |
122 |
-Adapt to the python 3.9.8 changes made in bpo-45167. |
123 |
---- a/numpy/typing/_generic_alias.py |
124 |
-+++ b/numpy/typing/_generic_alias.py |
125 |
-@@ -178,6 +178,8 @@ def __eq__(self, value: object) -> bool: |
126 |
- "__mro_entries__", |
127 |
- "__reduce__", |
128 |
- "__reduce_ex__", |
129 |
-+ "__copy__", |
130 |
-+ "__deepcopy__", |
131 |
- }) |
132 |
- |
133 |
- def __getattribute__(self, name: str) -> Any: |
134 |
---- a/numpy/typing/tests/test_generic_alias.py |
135 |
-+++ b/numpy/typing/tests/test_generic_alias.py |
136 |
-@@ -1,6 +1,7 @@ |
137 |
- from __future__ import annotations |
138 |
- |
139 |
- import sys |
140 |
-+import copy |
141 |
- import types |
142 |
- import pickle |
143 |
- import weakref |
144 |
-@@ -74,6 +75,21 @@ def test_pass(self, name: str, func: FuncType) -> None: |
145 |
- value_ref = func(NDArray_ref) |
146 |
- assert value == value_ref |
147 |
- |
148 |
-+ @pytest.mark.parametrize("name,func", [ |
149 |
-+ ("__copy__", lambda n: n == copy.copy(n)), |
150 |
-+ ("__deepcopy__", lambda n: n == copy.deepcopy(n)), |
151 |
-+ ]) |
152 |
-+ def test_copy(self, name: str, func: FuncType) -> None: |
153 |
-+ value = func(NDArray) |
154 |
-+ |
155 |
-+ # xref bpo-45167 |
156 |
-+ GE_398 = ( |
157 |
-+ sys.version_info[:2] == (3, 9) and sys.version_info >= (3, 9, 8) |
158 |
-+ ) |
159 |
-+ if GE_398 or sys.version_info >= (3, 10, 1): |
160 |
-+ value_ref = func(NDArray_ref) |
161 |
-+ assert value == value_ref |
162 |
-+ |
163 |
- def test_weakref(self) -> None: |
164 |
- """Test ``__weakref__``.""" |
165 |
- value = weakref.ref(NDArray)() |
166 |
|
167 |
diff --git a/dev-python/numpy/numpy-1.21.1-r1.ebuild b/dev-python/numpy/numpy-1.21.1-r1.ebuild |
168 |
deleted file mode 100644 |
169 |
index b25c2008d413..000000000000 |
170 |
--- a/dev-python/numpy/numpy-1.21.1-r1.ebuild |
171 |
+++ /dev/null |
172 |
@@ -1,144 +0,0 @@ |
173 |
-# Copyright 1999-2021 Gentoo Authors |
174 |
-# Distributed under the terms of the GNU General Public License v2 |
175 |
- |
176 |
-EAPI=7 |
177 |
- |
178 |
-PYTHON_COMPAT=( python3_{8..10} ) |
179 |
-PYTHON_REQ_USE="threads(+)" |
180 |
- |
181 |
-FORTRAN_NEEDED=lapack |
182 |
- |
183 |
-inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs |
184 |
- |
185 |
-DOC_PV=${PV} |
186 |
-DESCRIPTION="Fast array and numerical python library" |
187 |
-HOMEPAGE="https://numpy.org/" |
188 |
-SRC_URI=" |
189 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
190 |
- doc? ( |
191 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
192 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
193 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
194 |
- )" |
195 |
-LICENSE="BSD" |
196 |
-SLOT="0" |
197 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
198 |
-IUSE="doc lapack" |
199 |
- |
200 |
-RDEPEND=" |
201 |
- lapack? ( |
202 |
- >=virtual/cblas-3.8 |
203 |
- >=virtual/lapack-3.8 |
204 |
- ) |
205 |
-" |
206 |
-BDEPEND=" |
207 |
- ${RDEPEND} |
208 |
- app-arch/unzip |
209 |
- >=dev-python/cython-0.29.21[${PYTHON_USEDEP}] |
210 |
- lapack? ( virtual/pkgconfig ) |
211 |
- test? ( |
212 |
- >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}] |
213 |
- >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] |
214 |
- >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}] |
215 |
- ) |
216 |
-" |
217 |
- |
218 |
-PATCHES=( |
219 |
- "${FILESDIR}"/numpy-1.21.0-no-hardcode-blasv2.patch |
220 |
- "${FILESDIR}"/numpy-1.21.3-unaligned-array.patch |
221 |
-) |
222 |
- |
223 |
-distutils_enable_tests pytest |
224 |
- |
225 |
-src_unpack() { |
226 |
- default |
227 |
- if use doc; then |
228 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
229 |
- fi |
230 |
-} |
231 |
- |
232 |
-python_prepare_all() { |
233 |
- if use lapack; then |
234 |
- local incdir="${EPREFIX}"/usr/include |
235 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
236 |
- cat >> site.cfg <<-EOF || die |
237 |
- [blas] |
238 |
- include_dirs = ${incdir} |
239 |
- library_dirs = ${libdir} |
240 |
- blas_libs = cblas,blas |
241 |
- [lapack] |
242 |
- library_dirs = ${libdir} |
243 |
- lapack_libs = lapack |
244 |
- EOF |
245 |
- else |
246 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
247 |
- fi |
248 |
- |
249 |
- export CC="$(tc-getCC) ${CFLAGS}" |
250 |
- |
251 |
- append-flags -fno-strict-aliasing |
252 |
- |
253 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
254 |
- # with the subtle difference that we don't want to break Darwin where |
255 |
- # -shared is not a valid linker argument |
256 |
- if [[ ${CHOST} != *-darwin* ]]; then |
257 |
- append-ldflags -shared |
258 |
- fi |
259 |
- |
260 |
- # only one fortran to link with: |
261 |
- # linking with cblas and lapack library will force |
262 |
- # autodetecting and linking to all available fortran compilers |
263 |
- append-fflags -fPIC |
264 |
- if use lapack; then |
265 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
266 |
- # workaround bug 335908 |
267 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
268 |
- fi |
269 |
- |
270 |
- # don't version f2py, we will handle it. |
271 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
272 |
- |
273 |
- # disable fuzzed tests |
274 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
275 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
276 |
- # very memory- and disk-hungry |
277 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
278 |
- |
279 |
- distutils-r1_python_prepare_all |
280 |
-} |
281 |
- |
282 |
-python_compile() { |
283 |
- export MAKEOPTS=-j1 #660754 |
284 |
- |
285 |
- distutils-r1_python_compile ${NUMPY_FCONFIG} |
286 |
-} |
287 |
- |
288 |
-python_test() { |
289 |
- local deselect=( |
290 |
- numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py] |
291 |
- ) |
292 |
- |
293 |
- distutils_install_for_testing --single-version-externally-managed \ |
294 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
295 |
- |
296 |
- cd "${TEST_DIR}/lib" || die |
297 |
- epytest ${deselect[@]/#/--deselect } |
298 |
-} |
299 |
- |
300 |
-python_install() { |
301 |
- # https://github.com/numpy/numpy/issues/16005 |
302 |
- local mydistutilsargs=( build_src ) |
303 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
304 |
- python_optimize |
305 |
-} |
306 |
- |
307 |
-python_install_all() { |
308 |
- local DOCS=( LICENSE.txt README.md THANKS.txt ) |
309 |
- |
310 |
- if use doc; then |
311 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
312 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
313 |
- fi |
314 |
- |
315 |
- distutils-r1_python_install_all |
316 |
-} |
317 |
|
318 |
diff --git a/dev-python/numpy/numpy-1.21.2-r1.ebuild b/dev-python/numpy/numpy-1.21.2-r1.ebuild |
319 |
deleted file mode 100644 |
320 |
index 6d183c01e49b..000000000000 |
321 |
--- a/dev-python/numpy/numpy-1.21.2-r1.ebuild |
322 |
+++ /dev/null |
323 |
@@ -1,144 +0,0 @@ |
324 |
-# Copyright 1999-2021 Gentoo Authors |
325 |
-# Distributed under the terms of the GNU General Public License v2 |
326 |
- |
327 |
-EAPI=7 |
328 |
- |
329 |
-PYTHON_COMPAT=( python3_{8..10} ) |
330 |
-PYTHON_REQ_USE="threads(+)" |
331 |
- |
332 |
-FORTRAN_NEEDED=lapack |
333 |
- |
334 |
-inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs |
335 |
- |
336 |
-DOC_PV=${PV} |
337 |
-DESCRIPTION="Fast array and numerical python library" |
338 |
-HOMEPAGE="https://numpy.org/" |
339 |
-SRC_URI=" |
340 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
341 |
- doc? ( |
342 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
343 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
344 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
345 |
- )" |
346 |
-LICENSE="BSD" |
347 |
-SLOT="0" |
348 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
349 |
-IUSE="doc lapack" |
350 |
- |
351 |
-RDEPEND=" |
352 |
- lapack? ( |
353 |
- >=virtual/cblas-3.8 |
354 |
- >=virtual/lapack-3.8 |
355 |
- ) |
356 |
-" |
357 |
-BDEPEND=" |
358 |
- ${RDEPEND} |
359 |
- app-arch/unzip |
360 |
- >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] |
361 |
- lapack? ( virtual/pkgconfig ) |
362 |
- test? ( |
363 |
- >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}] |
364 |
- >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] |
365 |
- >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}] |
366 |
- ) |
367 |
-" |
368 |
- |
369 |
-PATCHES=( |
370 |
- "${FILESDIR}"/numpy-1.21.0-no-hardcode-blasv2.patch |
371 |
- "${FILESDIR}"/numpy-1.21.3-unaligned-array.patch |
372 |
-) |
373 |
- |
374 |
-distutils_enable_tests pytest |
375 |
- |
376 |
-src_unpack() { |
377 |
- default |
378 |
- if use doc; then |
379 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
380 |
- fi |
381 |
-} |
382 |
- |
383 |
-python_prepare_all() { |
384 |
- if use lapack; then |
385 |
- local incdir="${EPREFIX}"/usr/include |
386 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
387 |
- cat >> site.cfg <<-EOF || die |
388 |
- [blas] |
389 |
- include_dirs = ${incdir} |
390 |
- library_dirs = ${libdir} |
391 |
- blas_libs = cblas,blas |
392 |
- [lapack] |
393 |
- library_dirs = ${libdir} |
394 |
- lapack_libs = lapack |
395 |
- EOF |
396 |
- else |
397 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
398 |
- fi |
399 |
- |
400 |
- export CC="$(tc-getCC) ${CFLAGS}" |
401 |
- |
402 |
- append-flags -fno-strict-aliasing |
403 |
- |
404 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
405 |
- # with the subtle difference that we don't want to break Darwin where |
406 |
- # -shared is not a valid linker argument |
407 |
- if [[ ${CHOST} != *-darwin* ]]; then |
408 |
- append-ldflags -shared |
409 |
- fi |
410 |
- |
411 |
- # only one fortran to link with: |
412 |
- # linking with cblas and lapack library will force |
413 |
- # autodetecting and linking to all available fortran compilers |
414 |
- append-fflags -fPIC |
415 |
- if use lapack; then |
416 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
417 |
- # workaround bug 335908 |
418 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
419 |
- fi |
420 |
- |
421 |
- # don't version f2py, we will handle it. |
422 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
423 |
- |
424 |
- # disable fuzzed tests |
425 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
426 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
427 |
- # very memory- and disk-hungry |
428 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
429 |
- |
430 |
- distutils-r1_python_prepare_all |
431 |
-} |
432 |
- |
433 |
-python_compile() { |
434 |
- export MAKEOPTS=-j1 #660754 |
435 |
- |
436 |
- distutils-r1_python_compile ${NUMPY_FCONFIG} |
437 |
-} |
438 |
- |
439 |
-python_test() { |
440 |
- local deselect=( |
441 |
- numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py] |
442 |
- ) |
443 |
- |
444 |
- distutils_install_for_testing --single-version-externally-managed \ |
445 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
446 |
- |
447 |
- cd "${TEST_DIR}/lib" || die |
448 |
- epytest ${deselect[@]/#/--deselect } |
449 |
-} |
450 |
- |
451 |
-python_install() { |
452 |
- # https://github.com/numpy/numpy/issues/16005 |
453 |
- local mydistutilsargs=( build_src ) |
454 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
455 |
- python_optimize |
456 |
-} |
457 |
- |
458 |
-python_install_all() { |
459 |
- local DOCS=( LICENSE.txt README.md THANKS.txt ) |
460 |
- |
461 |
- if use doc; then |
462 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
463 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
464 |
- fi |
465 |
- |
466 |
- distutils-r1_python_install_all |
467 |
-} |
468 |
|
469 |
diff --git a/dev-python/numpy/numpy-1.21.3-r1.ebuild b/dev-python/numpy/numpy-1.21.3-r1.ebuild |
470 |
deleted file mode 100644 |
471 |
index 514a34b8e87a..000000000000 |
472 |
--- a/dev-python/numpy/numpy-1.21.3-r1.ebuild |
473 |
+++ /dev/null |
474 |
@@ -1,152 +0,0 @@ |
475 |
-# Copyright 1999-2021 Gentoo Authors |
476 |
-# Distributed under the terms of the GNU General Public License v2 |
477 |
- |
478 |
-EAPI=7 |
479 |
- |
480 |
-PYTHON_COMPAT=( python3_{8..10} ) |
481 |
-PYTHON_REQ_USE="threads(+)" |
482 |
- |
483 |
-FORTRAN_NEEDED=lapack |
484 |
- |
485 |
-inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs |
486 |
- |
487 |
-DOC_PV=${PV} |
488 |
-DESCRIPTION="Fast array and numerical python library" |
489 |
-HOMEPAGE="https://numpy.org/" |
490 |
-SRC_URI=" |
491 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
492 |
- doc? ( |
493 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
494 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
495 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
496 |
- )" |
497 |
-LICENSE="BSD" |
498 |
-SLOT="0" |
499 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
500 |
-IUSE="doc lapack" |
501 |
- |
502 |
-RDEPEND=" |
503 |
- lapack? ( |
504 |
- >=virtual/cblas-3.8 |
505 |
- >=virtual/lapack-3.8 |
506 |
- ) |
507 |
-" |
508 |
-BDEPEND=" |
509 |
- ${RDEPEND} |
510 |
- app-arch/unzip |
511 |
- >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] |
512 |
- lapack? ( virtual/pkgconfig ) |
513 |
- test? ( |
514 |
- >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}] |
515 |
- >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] |
516 |
- >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}] |
517 |
- ) |
518 |
-" |
519 |
- |
520 |
-PATCHES=( |
521 |
- "${FILESDIR}"/numpy-1.21.0-no-hardcode-blasv2.patch |
522 |
- "${FILESDIR}"/${P}-unaligned-array.patch |
523 |
-) |
524 |
- |
525 |
-distutils_enable_tests pytest |
526 |
- |
527 |
-src_unpack() { |
528 |
- default |
529 |
- if use doc; then |
530 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
531 |
- fi |
532 |
-} |
533 |
- |
534 |
-python_prepare_all() { |
535 |
- if use lapack; then |
536 |
- local incdir="${EPREFIX}"/usr/include |
537 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
538 |
- cat >> site.cfg <<-EOF || die |
539 |
- [blas] |
540 |
- include_dirs = ${incdir} |
541 |
- library_dirs = ${libdir} |
542 |
- blas_libs = cblas,blas |
543 |
- [lapack] |
544 |
- library_dirs = ${libdir} |
545 |
- lapack_libs = lapack |
546 |
- EOF |
547 |
- else |
548 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
549 |
- fi |
550 |
- |
551 |
- export CC="$(tc-getCC) ${CFLAGS}" |
552 |
- |
553 |
- append-flags -fno-strict-aliasing |
554 |
- |
555 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
556 |
- # with the subtle difference that we don't want to break Darwin where |
557 |
- # -shared is not a valid linker argument |
558 |
- if [[ ${CHOST} != *-darwin* ]]; then |
559 |
- append-ldflags -shared |
560 |
- fi |
561 |
- |
562 |
- # only one fortran to link with: |
563 |
- # linking with cblas and lapack library will force |
564 |
- # autodetecting and linking to all available fortran compilers |
565 |
- append-fflags -fPIC |
566 |
- if use lapack; then |
567 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
568 |
- # workaround bug 335908 |
569 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
570 |
- fi |
571 |
- |
572 |
- # don't version f2py, we will handle it. |
573 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
574 |
- |
575 |
- # disable fuzzed tests |
576 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
577 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
578 |
- # very memory- and disk-hungry |
579 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
580 |
- |
581 |
- distutils-r1_python_prepare_all |
582 |
-} |
583 |
- |
584 |
-python_compile() { |
585 |
- export MAKEOPTS=-j1 #660754 |
586 |
- |
587 |
- distutils-r1_python_compile ${NUMPY_FCONFIG} |
588 |
-} |
589 |
- |
590 |
-python_test() { |
591 |
- local deselect=( |
592 |
- numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py] |
593 |
- ) |
594 |
- |
595 |
- if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then |
596 |
- # Degenerate case. arm32 chroot on arm64. |
597 |
- # bug #774108 |
598 |
- deselect+=( |
599 |
- numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features |
600 |
- ) |
601 |
- fi |
602 |
- |
603 |
- distutils_install_for_testing --single-version-externally-managed \ |
604 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
605 |
- |
606 |
- cd "${TEST_DIR}/lib" || die |
607 |
- epytest ${deselect[@]/#/--deselect } |
608 |
-} |
609 |
- |
610 |
-python_install() { |
611 |
- # https://github.com/numpy/numpy/issues/16005 |
612 |
- local mydistutilsargs=( build_src ) |
613 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
614 |
- python_optimize |
615 |
-} |
616 |
- |
617 |
-python_install_all() { |
618 |
- local DOCS=( LICENSE.txt README.md THANKS.txt ) |
619 |
- |
620 |
- if use doc; then |
621 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
622 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
623 |
- fi |
624 |
- |
625 |
- distutils-r1_python_install_all |
626 |
-} |
627 |
|
628 |
diff --git a/dev-python/numpy/numpy-1.21.4-r2.ebuild b/dev-python/numpy/numpy-1.21.4-r2.ebuild |
629 |
deleted file mode 100644 |
630 |
index c692fa77e87c..000000000000 |
631 |
--- a/dev-python/numpy/numpy-1.21.4-r2.ebuild |
632 |
+++ /dev/null |
633 |
@@ -1,162 +0,0 @@ |
634 |
-# Copyright 1999-2021 Gentoo Authors |
635 |
-# Distributed under the terms of the GNU General Public License v2 |
636 |
- |
637 |
-EAPI=7 |
638 |
- |
639 |
-PYTHON_COMPAT=( python3_{8..10} ) |
640 |
-PYTHON_REQ_USE="threads(+)" |
641 |
- |
642 |
-FORTRAN_NEEDED=lapack |
643 |
- |
644 |
-inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs |
645 |
- |
646 |
-DOC_PV=${PV} |
647 |
-DESCRIPTION="Fast array and numerical python library" |
648 |
-HOMEPAGE="https://numpy.org/" |
649 |
-SRC_URI=" |
650 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
651 |
- doc? ( |
652 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
653 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
654 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
655 |
- )" |
656 |
-LICENSE="BSD" |
657 |
-SLOT="0" |
658 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
659 |
-IUSE="doc lapack" |
660 |
- |
661 |
-RDEPEND=" |
662 |
- lapack? ( |
663 |
- >=virtual/cblas-3.8 |
664 |
- >=virtual/lapack-3.8 |
665 |
- ) |
666 |
-" |
667 |
-BDEPEND=" |
668 |
- ${RDEPEND} |
669 |
- app-arch/unzip |
670 |
- >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] |
671 |
- lapack? ( virtual/pkgconfig ) |
672 |
- test? ( |
673 |
- >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}] |
674 |
- >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] |
675 |
- >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}] |
676 |
- ) |
677 |
-" |
678 |
- |
679 |
-PATCHES=( |
680 |
- "${FILESDIR}"/numpy-1.21.0-no-hardcode-blasv2.patch |
681 |
- "${FILESDIR}"/numpy-1.21.4-build-compiler-args-ceph.patch |
682 |
- "${FILESDIR}"/numpy-1.21.4-copy-python-3.9.patch |
683 |
-) |
684 |
- |
685 |
-distutils_enable_tests pytest |
686 |
- |
687 |
-src_unpack() { |
688 |
- default |
689 |
- if use doc; then |
690 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
691 |
- fi |
692 |
-} |
693 |
- |
694 |
-python_prepare_all() { |
695 |
- if use lapack; then |
696 |
- local incdir="${EPREFIX}"/usr/include |
697 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
698 |
- cat >> site.cfg <<-EOF || die |
699 |
- [blas] |
700 |
- include_dirs = ${incdir} |
701 |
- library_dirs = ${libdir} |
702 |
- blas_libs = cblas,blas |
703 |
- [lapack] |
704 |
- library_dirs = ${libdir} |
705 |
- lapack_libs = lapack |
706 |
- EOF |
707 |
- else |
708 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
709 |
- fi |
710 |
- |
711 |
- export CC="$(tc-getCC) ${CFLAGS}" |
712 |
- |
713 |
- append-flags -fno-strict-aliasing |
714 |
- |
715 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
716 |
- # with the subtle difference that we don't want to break Darwin where |
717 |
- # -shared is not a valid linker argument |
718 |
- if [[ ${CHOST} != *-darwin* ]]; then |
719 |
- append-ldflags -shared |
720 |
- fi |
721 |
- |
722 |
- # only one fortran to link with: |
723 |
- # linking with cblas and lapack library will force |
724 |
- # autodetecting and linking to all available fortran compilers |
725 |
- append-fflags -fPIC |
726 |
- if use lapack; then |
727 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
728 |
- # workaround bug 335908 |
729 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
730 |
- fi |
731 |
- |
732 |
- # don't version f2py, we will handle it. |
733 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
734 |
- |
735 |
- # disable fuzzed tests |
736 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
737 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
738 |
- # very memory- and disk-hungry |
739 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
740 |
- |
741 |
- distutils-r1_python_prepare_all |
742 |
-} |
743 |
- |
744 |
-python_compile() { |
745 |
- export MAKEOPTS=-j1 #660754 |
746 |
- |
747 |
- distutils-r1_python_compile ${NUMPY_FCONFIG} |
748 |
-} |
749 |
- |
750 |
-python_test() { |
751 |
- local deselect=( |
752 |
- numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py] |
753 |
- ) |
754 |
- |
755 |
- if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then |
756 |
- # Degenerate case. arm32 chroot on arm64. |
757 |
- # bug #774108 |
758 |
- deselect+=( |
759 |
- numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features |
760 |
- ) |
761 |
- fi |
762 |
- |
763 |
- if use x86 ; then |
764 |
- deselect+=( |
765 |
- # https://github.com/numpy/numpy/issues/18388 |
766 |
- numpy/core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow |
767 |
- # https://github.com/numpy/numpy/issues/18387 |
768 |
- numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto |
769 |
- ) |
770 |
- fi |
771 |
- |
772 |
- distutils_install_for_testing --single-version-externally-managed \ |
773 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
774 |
- |
775 |
- cd "${TEST_DIR}/lib" || die |
776 |
- epytest ${deselect[@]/#/--deselect } |
777 |
-} |
778 |
- |
779 |
-python_install() { |
780 |
- # https://github.com/numpy/numpy/issues/16005 |
781 |
- local mydistutilsargs=( build_src ) |
782 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
783 |
- python_optimize |
784 |
-} |
785 |
- |
786 |
-python_install_all() { |
787 |
- local DOCS=( LICENSE.txt README.md THANKS.txt ) |
788 |
- |
789 |
- if use doc; then |
790 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
791 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
792 |
- fi |
793 |
- |
794 |
- distutils-r1_python_install_all |
795 |
-} |
796 |
|
797 |
diff --git a/dev-python/numpy/numpy-1.21.4.ebuild b/dev-python/numpy/numpy-1.21.4.ebuild |
798 |
deleted file mode 100644 |
799 |
index 114e5f17f876..000000000000 |
800 |
--- a/dev-python/numpy/numpy-1.21.4.ebuild |
801 |
+++ /dev/null |
802 |
@@ -1,151 +0,0 @@ |
803 |
-# Copyright 1999-2021 Gentoo Authors |
804 |
-# Distributed under the terms of the GNU General Public License v2 |
805 |
- |
806 |
-EAPI=7 |
807 |
- |
808 |
-PYTHON_COMPAT=( python3_{8..10} ) |
809 |
-PYTHON_REQ_USE="threads(+)" |
810 |
- |
811 |
-FORTRAN_NEEDED=lapack |
812 |
- |
813 |
-inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs |
814 |
- |
815 |
-DOC_PV=${PV} |
816 |
-DESCRIPTION="Fast array and numerical python library" |
817 |
-HOMEPAGE="https://numpy.org/" |
818 |
-SRC_URI=" |
819 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
820 |
- doc? ( |
821 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
822 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
823 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
824 |
- )" |
825 |
-LICENSE="BSD" |
826 |
-SLOT="0" |
827 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
828 |
-IUSE="doc lapack" |
829 |
- |
830 |
-RDEPEND=" |
831 |
- lapack? ( |
832 |
- >=virtual/cblas-3.8 |
833 |
- >=virtual/lapack-3.8 |
834 |
- ) |
835 |
-" |
836 |
-BDEPEND=" |
837 |
- ${RDEPEND} |
838 |
- app-arch/unzip |
839 |
- >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] |
840 |
- lapack? ( virtual/pkgconfig ) |
841 |
- test? ( |
842 |
- >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}] |
843 |
- >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] |
844 |
- >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}] |
845 |
- ) |
846 |
-" |
847 |
- |
848 |
-PATCHES=( |
849 |
- "${FILESDIR}"/numpy-1.21.0-no-hardcode-blasv2.patch |
850 |
-) |
851 |
- |
852 |
-distutils_enable_tests pytest |
853 |
- |
854 |
-src_unpack() { |
855 |
- default |
856 |
- if use doc; then |
857 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
858 |
- fi |
859 |
-} |
860 |
- |
861 |
-python_prepare_all() { |
862 |
- if use lapack; then |
863 |
- local incdir="${EPREFIX}"/usr/include |
864 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
865 |
- cat >> site.cfg <<-EOF || die |
866 |
- [blas] |
867 |
- include_dirs = ${incdir} |
868 |
- library_dirs = ${libdir} |
869 |
- blas_libs = cblas,blas |
870 |
- [lapack] |
871 |
- library_dirs = ${libdir} |
872 |
- lapack_libs = lapack |
873 |
- EOF |
874 |
- else |
875 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
876 |
- fi |
877 |
- |
878 |
- export CC="$(tc-getCC) ${CFLAGS}" |
879 |
- |
880 |
- append-flags -fno-strict-aliasing |
881 |
- |
882 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
883 |
- # with the subtle difference that we don't want to break Darwin where |
884 |
- # -shared is not a valid linker argument |
885 |
- if [[ ${CHOST} != *-darwin* ]]; then |
886 |
- append-ldflags -shared |
887 |
- fi |
888 |
- |
889 |
- # only one fortran to link with: |
890 |
- # linking with cblas and lapack library will force |
891 |
- # autodetecting and linking to all available fortran compilers |
892 |
- append-fflags -fPIC |
893 |
- if use lapack; then |
894 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
895 |
- # workaround bug 335908 |
896 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
897 |
- fi |
898 |
- |
899 |
- # don't version f2py, we will handle it. |
900 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
901 |
- |
902 |
- # disable fuzzed tests |
903 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
904 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
905 |
- # very memory- and disk-hungry |
906 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
907 |
- |
908 |
- distutils-r1_python_prepare_all |
909 |
-} |
910 |
- |
911 |
-python_compile() { |
912 |
- export MAKEOPTS=-j1 #660754 |
913 |
- |
914 |
- distutils-r1_python_compile ${NUMPY_FCONFIG} |
915 |
-} |
916 |
- |
917 |
-python_test() { |
918 |
- local deselect=( |
919 |
- numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py] |
920 |
- ) |
921 |
- |
922 |
- if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then |
923 |
- # Degenerate case. arm32 chroot on arm64. |
924 |
- # bug #774108 |
925 |
- deselect+=( |
926 |
- numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features |
927 |
- ) |
928 |
- fi |
929 |
- |
930 |
- distutils_install_for_testing --single-version-externally-managed \ |
931 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
932 |
- |
933 |
- cd "${TEST_DIR}/lib" || die |
934 |
- epytest ${deselect[@]/#/--deselect } |
935 |
-} |
936 |
- |
937 |
-python_install() { |
938 |
- # https://github.com/numpy/numpy/issues/16005 |
939 |
- local mydistutilsargs=( build_src ) |
940 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
941 |
- python_optimize |
942 |
-} |
943 |
- |
944 |
-python_install_all() { |
945 |
- local DOCS=( LICENSE.txt README.md THANKS.txt ) |
946 |
- |
947 |
- if use doc; then |
948 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
949 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
950 |
- fi |
951 |
- |
952 |
- distutils-r1_python_install_all |
953 |
-} |