1 |
commit: 13d21eda13dce88e6914445befdd9c6d2511ad8a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 3 07:20:38 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 3 07:37:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13d21eda |
7 |
|
8 |
dev-python/numpy: Clean old versions up |
9 |
|
10 |
dev-python/numpy/Manifest | 4 - |
11 |
.../numpy/files/numpy-1.10.1-backport-1.patch | 127 ---------------- |
12 |
.../numpy/files/numpy-1.10.1-backport-2.patch | 73 --------- |
13 |
.../files/numpy-1.11.1-no-hardcode-blas.patch | 71 --------- |
14 |
.../files/numpy-1.11.2-import-module-fix.patch | 27 ---- |
15 |
dev-python/numpy/numpy-1.10.1-r1.ebuild | 152 ------------------- |
16 |
dev-python/numpy/numpy-1.10.2-r2.ebuild | 149 ------------------ |
17 |
dev-python/numpy/numpy-1.11.2-r1.ebuild | 166 --------------------- |
18 |
dev-python/numpy/numpy-1.9.3.ebuild | 146 ------------------ |
19 |
9 files changed, 915 deletions(-) |
20 |
|
21 |
diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest |
22 |
index 856d490efce..fb2e3d0f0c8 100644 |
23 |
--- a/dev-python/numpy/Manifest |
24 |
+++ b/dev-python/numpy/Manifest |
25 |
@@ -1,11 +1,7 @@ |
26 |
-DIST numpy-1.10.1.tar.gz 4048478 SHA256 8b9f453f29ce96a14e625100d3dcf8926301d36c5f622623bf8820e748510858 SHA512 ea717bac913a8e63bf93822bddbfe7701a3de00051bf3c7020f5e22756987becb5a2f96a6a52a36fc7c2b856815a782e450099688ce86b21fa94b0076b9ef376 WHIRLPOOL 7671368bec55c7f53ffa78a509946acc998e6f4223da4f3429b82a5a38b5e0277a0f89773ec2335f8e46b5c695620a4119af5ab59734184054c31b11841de44b |
27 |
-DIST numpy-1.10.2.tar.gz 4055005 SHA256 23a3befdf955db4d616f8bb77b324680a80a323e0c42a7e8d7388ef578d8ffa9 SHA512 040db49593f3c53c9b43301eacffc3b5817310f1dbb91fd650efcf5ba65ce7e217549dc5268bc56846f19f1a03dd19470989005aa176531af44d602b3546b007 WHIRLPOOL 30c4b365aac6623241afd72fc30d3a543183205eb23db1366937e39fc50dee862923dd249775fee67cce0199940a57ec1423f1cb0e65ff7c65764c7969d7a76f |
28 |
DIST numpy-1.10.4.tar.gz 4069996 SHA256 7356e98fbcc529e8d540666f5a919912752e569150e9a4f8d869c686f14c720b SHA512 57ace46e357d49be0efd904e5ceb9862c626c916987c8798a12de7ae1e06816ad8483439ac4619792a04889631b5998f2397dc601c78dea33a784b4831c19c79 WHIRLPOOL 76946c2543b1cade06d71f83fd507bd818c1090baa9c3ddda7d1f48d48ed23672c5d9de76db890df990c6d8b7b26b71d3ce733c448943ad4177374a957360d1c |
29 |
-DIST numpy-1.11.2.tar.gz 4178447 SHA256 04db2fbd64e2e7c68e740b14402b25af51418fc43a59d9e54172b38b906b0f69 SHA512 c1818de5c8b92cc2a673149f090cc863b484afd29e8a014ffcf8d0f5e70cf8886c7662dbe45847712dec8ae0412d1cb48b13cceefe3e4ec0e85bb20e4beaa46e WHIRLPOOL 668acc8ada165b57e1b2ab76969affa0098a5746c4ca21ae88cd189c5e6f79bde9d05bf951604d0c0f7400174f1e58f17fa0d662029f0b91cff78118fe3cdb0d |
30 |
DIST numpy-1.12.1.zip 4824784 SHA256 a65266a4ad6ec8936a1bc85ce51f8600634a31a258b722c9274a80ff189d9542 SHA512 156319821e4f0cf8d820e977da704aab274b7a4a4b792f6e40d7c0f2827700c990f55f1ca9650523c62c9e937f0e75f336d091d46ca47aaa9875c68fe32bac2a WHIRLPOOL 1ecd1df77d2a64bc6db1910446f60b477ebf5a1cf33ec2e1fced56dbbf1a7df5fef004c7f84f0dccb0ca20ea7ab73c384e4d247eb9700159a18c9a4a51e4db6d |
31 |
DIST numpy-1.8.2.tar.gz 3792998 SHA256 6d487fc724780d66746bde264ea71f5cd77d3a39e52ee2b073dcaed63bc669db SHA512 996e6b8e2d42f223e44660f56bf73eb8ab124f400d89218f8f5e4d7c9860ada44a4d7c54526137b0695c7a10f36e8834fbf0d42b7cb20bcdb5d5c245d673385c WHIRLPOOL 0d3a05b1e3c0a1ceb0a7b4818406dbb45506e5f25bc2727d4ff44cc0a0520e6556b3c68ae24dbca37ba9d67ae2defbb3ff9c906d4c2635b29ed44452d70e8311 |
32 |
DIST numpy-1.9.2.tar.gz 3986067 SHA256 325e5f2b0b434ecb6e6882c7e1034cc6cdde3eeeea87dbc482575199a6aeef2a SHA512 70470ebb9afef5dfd0c83ceb7a9d5f1b7a072b1a9b54b04f04f5ed50fbaedd5b4906bd500472268d478f94df9e749a88698b1ff30f2d80258e7f3fec040617d9 WHIRLPOOL 59f5dc52cb95c7ce80fec3a7feac6cfda1d149596bf6d95c18bd8314e31a8df494b2b470c4cc3d8c296c9fc11c718d70d5b9b5344337175ca75496504c0fd201 |
33 |
-DIST numpy-1.9.3.tar.gz 3984430 SHA256 c3b74d3b9da4ceb11f66abd21e117da8cf584b63a0efbd01a9b7e91b693fbbd6 SHA512 32531cd8d1480a50812454ef8e3b68c0f84b2a4bc5de0df1457070db7f6fd94cdb50e6479a85fa4d1dc569a10d28f6864d5069fcf2a32fa20fa8803476a3df8c WHIRLPOOL a0235594e793625d5e3cef57956f4710587158885f39d7d1267c9845b12fb1d39fb9987ec095720c2d285c7c726383a15471f3629b739b77186470e2c40ba093 |
34 |
DIST numpy-html-1.10.1.zip 9663942 SHA256 4af48eb5abf2551f01d85aea7e9a99a30096777f02937dc185b16bb72a110366 SHA512 9d1f3619b801c88604a0495290da4ae8cfb4800257d549214363c554c1dc09a736425d594ed88f492afee6ae7c68fe5c166b9b3a8f24637ea41d67fd23b9d9f9 WHIRLPOOL d6c93e31e31c832fb21f117d03719e0375ee3d27fb6f7975bfcd12469df4a2ed0a25a16bd09a0e2113407446efc220e5bff534f7cd76a715c3d7df26c02f07a1 |
35 |
DIST numpy-html-1.11.0.zip 9879611 SHA256 0244bff4b585ab417be963f492e69129e54bb83d630b463591f9e89c62807d85 SHA512 7bf416030c273c767a98d0f23adef0e5fd05f96f6bb911e32ec88821a5bc7c47a2799d33fb0706cb2d391ea6e47b3e0eef0d789eb1c0d81c982cfaa991a09822 WHIRLPOOL d7e81340aa1ec46c2b0d36b76e7a1e11ba7d1b39177a8168efe734936e1622808c8997a8cc22f773b9c3e17b51f5861e11eaf7fa89e9b0c61cae937ee7b5fdba |
36 |
DIST numpy-html-1.8.1.zip 9703711 SHA256 f7fc3af4dba7b40deabd1828a86ea2e2eb5b9fa17c7ebddd73ee4cb8625105b1 SHA512 1d52c657931f4eebb5325159444aedd969b201f5098855058f1ef632dc8677372d632291154ebc3db9869cdb8abf7eb820eade1a9edba2d6be1ae918cb38c071 WHIRLPOOL e502b1416bad4b189773ba98035dfbeed0dc251d8f9b76e336450f14e8425caf92d55d2b1c2cc5ef9eb2d33eb2bf7cd55e720c1b265e45539b195fea1d7f046c |
37 |
|
38 |
diff --git a/dev-python/numpy/files/numpy-1.10.1-backport-1.patch b/dev-python/numpy/files/numpy-1.10.1-backport-1.patch |
39 |
deleted file mode 100644 |
40 |
index 77a3c010371..00000000000 |
41 |
--- a/dev-python/numpy/files/numpy-1.10.1-backport-1.patch |
42 |
+++ /dev/null |
43 |
@@ -1,127 +0,0 @@ |
44 |
-From 3a816a4db9b498eb64eb837fdcca0fa8ddbe063e Mon Sep 17 00:00:00 2001 |
45 |
-From: Allan Haldane <allan.haldane@×××××.com> |
46 |
-Date: Sat, 17 Oct 2015 14:00:36 -0400 |
47 |
-Subject: [PATCH] BUG: recarrays viewed as subarrays don't convert to np.record |
48 |
- type |
49 |
- |
50 |
-Record array views were updated in #5943 to return np.record dtype |
51 |
-where possible, but forgot about the case of sub-arrays. |
52 |
- |
53 |
-That's fixed here, so accessing subarray fields by attribute or index |
54 |
-works sensibly, as well as viewing a record array as a subarray dtype, |
55 |
-and printing subarrays. |
56 |
- |
57 |
-This also happens to fix #6459, since it affects the same lines. |
58 |
- |
59 |
-Fixes #6497 #6459 |
60 |
---- |
61 |
- numpy/core/records.py | 30 +++++++++++++++++++----------- |
62 |
- numpy/core/tests/test_records.py | 23 +++++++++++++++++++++++ |
63 |
- 2 files changed, 42 insertions(+), 11 deletions(-) |
64 |
- |
65 |
-diff --git a/numpy/core/records.py b/numpy/core/records.py |
66 |
-index 4a99553..4ce3fe9 100644 |
67 |
---- a/numpy/core/records.py |
68 |
-+++ b/numpy/core/records.py |
69 |
-@@ -448,12 +448,14 @@ def __getattribute__(self, attr): |
70 |
- |
71 |
- # At this point obj will always be a recarray, since (see |
72 |
- # PyArray_GetField) the type of obj is inherited. Next, if obj.dtype is |
73 |
-- # non-structured, convert it to an ndarray. If obj is structured leave |
74 |
-- # it as a recarray, but make sure to convert to the same dtype.type (eg |
75 |
-- # to preserve numpy.record type if present), since nested structured |
76 |
-- # fields do not inherit type. |
77 |
-+ # non-structured, convert it to an ndarray. Then if obj is structured |
78 |
-+ # with void type convert it to the same dtype.type (eg to preserve |
79 |
-+ # numpy.record type if present), since nested structured fields do not |
80 |
-+ # inherit type. Don't do this for non-void structures though. |
81 |
- if obj.dtype.fields: |
82 |
-- return obj.view(dtype=(self.dtype.type, obj.dtype.fields)) |
83 |
-+ if issubclass(obj.dtype.type, nt.void): |
84 |
-+ return obj.view(dtype=(self.dtype.type, obj.dtype)) |
85 |
-+ return obj |
86 |
- else: |
87 |
- return obj.view(ndarray) |
88 |
- |
89 |
-@@ -463,8 +465,9 @@ def __getattribute__(self, attr): |
90 |
- # Thus, you can't create attributes on-the-fly that are field names. |
91 |
- def __setattr__(self, attr, val): |
92 |
- |
93 |
-- # Automatically convert (void) dtypes to records. |
94 |
-- if attr == 'dtype' and issubclass(val.type, nt.void): |
95 |
-+ # Automatically convert (void) structured types to records |
96 |
-+ # (but not non-void structures, subarrays, or non-structured voids) |
97 |
-+ if attr == 'dtype' and issubclass(val.type, nt.void) and val.fields: |
98 |
- val = sb.dtype((record, val)) |
99 |
- |
100 |
- newattr = attr not in self.__dict__ |
101 |
-@@ -499,7 +502,9 @@ def __getitem__(self, indx): |
102 |
- # we might also be returning a single element |
103 |
- if isinstance(obj, ndarray): |
104 |
- if obj.dtype.fields: |
105 |
-- return obj.view(dtype=(self.dtype.type, obj.dtype.fields)) |
106 |
-+ if issubclass(obj.dtype.type, nt.void): |
107 |
-+ return obj.view(dtype=(self.dtype.type, obj.dtype)) |
108 |
-+ return obj |
109 |
- else: |
110 |
- return obj.view(type=ndarray) |
111 |
- else: |
112 |
-@@ -519,11 +524,14 @@ def __repr__(self): |
113 |
- # If this is a full record array (has numpy.record dtype), |
114 |
- # or if it has a scalar (non-void) dtype with no records, |
115 |
- # represent it using the rec.array function. Since rec.array |
116 |
-- # converts dtype to a numpy.record for us, use only dtype.descr, |
117 |
-- # not repr(dtype). |
118 |
-+ # converts dtype to a numpy.record for us, convert back |
119 |
-+ # to non-record before printing |
120 |
-+ plain_dtype = self.dtype |
121 |
-+ if plain_dtype.type is record: |
122 |
-+ plain_dtype = sb.dtype((nt.void, plain_dtype)) |
123 |
- lf = '\n'+' '*len("rec.array(") |
124 |
- return ('rec.array(%s, %sdtype=%s)' % |
125 |
-- (lst, lf, repr(self.dtype.descr))) |
126 |
-+ (lst, lf, plain_dtype)) |
127 |
- else: |
128 |
- # otherwise represent it using np.array plus a view |
129 |
- # This should only happen if the user is playing |
130 |
-diff --git a/numpy/core/tests/test_records.py b/numpy/core/tests/test_records.py |
131 |
-index 7a18f29..290bc4f 100644 |
132 |
---- a/numpy/core/tests/test_records.py |
133 |
-+++ b/numpy/core/tests/test_records.py |
134 |
-@@ -121,6 +121,23 @@ def test_recarray_views(self): |
135 |
- assert_equal(type(rv), np.recarray) |
136 |
- assert_equal(rv.dtype.type, np.record) |
137 |
- |
138 |
-+ # check that accessing nested structures keep record type, but |
139 |
-+ # not for subarrays, non-void structures, non-structured voids |
140 |
-+ test_dtype = [('a', 'f4,f4'), ('b', 'V8'), ('c', ('f4',2)), |
141 |
-+ ('d', ('i8', 'i4,i4'))] |
142 |
-+ r = np.rec.array([((1,1), b'11111111', [1,1], 1), |
143 |
-+ ((1,1), b'11111111', [1,1], 1)], dtype=test_dtype) |
144 |
-+ assert_equal(r.a.dtype.type, np.record) |
145 |
-+ assert_equal(r.b.dtype.type, np.void) |
146 |
-+ assert_equal(r.c.dtype.type, np.float32) |
147 |
-+ assert_equal(r.d.dtype.type, np.int64) |
148 |
-+ # check the same, but for views |
149 |
-+ r = np.rec.array(np.ones(4, dtype='i4,i4')) |
150 |
-+ assert_equal(r.view('f4,f4').dtype.type, np.record) |
151 |
-+ assert_equal(r.view(('i4',2)).dtype.type, np.int32) |
152 |
-+ assert_equal(r.view('V8').dtype.type, np.void) |
153 |
-+ assert_equal(r.view(('i8', 'i4,i4')).dtype.type, np.int64) |
154 |
-+ |
155 |
- #check that we can undo the view |
156 |
- arrs = [np.ones(4, dtype='f4,i4'), np.ones(4, dtype='f8')] |
157 |
- for arr in arrs: |
158 |
-@@ -135,6 +152,12 @@ def test_recarray_repr(self): |
159 |
- a = np.array(np.ones(4, dtype='f8')) |
160 |
- assert_(repr(np.rec.array(a)).startswith('rec.array')) |
161 |
- |
162 |
-+ # check that the 'np.record' part of the dtype isn't shown |
163 |
-+ a = np.rec.array(np.ones(3, dtype='i4,i4')) |
164 |
-+ assert_equal(repr(a).find('numpy.record'), -1) |
165 |
-+ a = np.rec.array(np.ones(3, dtype='i4')) |
166 |
-+ assert_(repr(a).find('dtype=int32') != -1) |
167 |
-+ |
168 |
- def test_recarray_from_names(self): |
169 |
- ra = np.rec.array([ |
170 |
- (1, 'abc', 3.7000002861022949, 0), |
171 |
|
172 |
diff --git a/dev-python/numpy/files/numpy-1.10.1-backport-2.patch b/dev-python/numpy/files/numpy-1.10.1-backport-2.patch |
173 |
deleted file mode 100644 |
174 |
index 9c33704f8e2..00000000000 |
175 |
--- a/dev-python/numpy/files/numpy-1.10.1-backport-2.patch |
176 |
+++ /dev/null |
177 |
@@ -1,73 +0,0 @@ |
178 |
-From 0d25dc4175e00cdaf9545e8b1b1a5b879cf67248 Mon Sep 17 00:00:00 2001 |
179 |
-From: Ethan Kruse <eakruse@××.edu> |
180 |
-Date: Mon, 19 Oct 2015 13:29:01 -0700 |
181 |
-Subject: [PATCH 1/2] Potential fix for #6462 |
182 |
- |
183 |
---- |
184 |
- numpy/lib/function_base.py | 2 +- |
185 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
186 |
- |
187 |
-diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py |
188 |
-index 555d083..fef69df 100644 |
189 |
---- a/numpy/lib/function_base.py |
190 |
-+++ b/numpy/lib/function_base.py |
191 |
-@@ -3339,7 +3339,7 @@ def _median(a, axis=None, out=None, overwrite_input=False): |
192 |
- indexer[axis] = slice(index-1, index+1) |
193 |
- |
194 |
- # Check if the array contains any nan's |
195 |
-- if np.issubdtype(a.dtype, np.inexact): |
196 |
-+ if np.issubdtype(a.dtype, np.inexact) and sz > 0: |
197 |
- # warn and return nans like mean would |
198 |
- rout = mean(part[indexer], axis=axis, out=out) |
199 |
- part = np.rollaxis(part, axis, part.ndim) |
200 |
- |
201 |
-From 59d859fb2160950ac93267d7461ad952145c8724 Mon Sep 17 00:00:00 2001 |
202 |
-From: Ethan Kruse <eakruse@××.edu> |
203 |
-Date: Tue, 20 Oct 2015 11:40:49 -0700 |
204 |
-Subject: [PATCH 2/2] Added tests for median of empty arrays |
205 |
- |
206 |
---- |
207 |
- numpy/lib/tests/test_function_base.py | 30 ++++++++++++++++++++++++++++++ |
208 |
- 1 file changed, 30 insertions(+) |
209 |
- |
210 |
-diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py |
211 |
-index 4516c92..aa41c1f 100644 |
212 |
---- a/numpy/lib/tests/test_function_base.py |
213 |
-+++ b/numpy/lib/tests/test_function_base.py |
214 |
-@@ -2597,6 +2597,36 @@ def test_nan_behavior(self): |
215 |
- assert_equal(np.median(a, (0, 2)), b) |
216 |
- assert_equal(len(w), 1) |
217 |
- |
218 |
-+ def test_empty(self): |
219 |
-+ # empty arrays |
220 |
-+ a = np.array([], dtype=float) |
221 |
-+ with warnings.catch_warnings(record=True) as w: |
222 |
-+ warnings.filterwarnings('always', '', RuntimeWarning) |
223 |
-+ assert_equal(np.median(a), np.nan) |
224 |
-+ assert_(w[0].category is RuntimeWarning) |
225 |
-+ |
226 |
-+ # multiple dimensions |
227 |
-+ a = np.array([], dtype=float, ndmin=3) |
228 |
-+ # no axis |
229 |
-+ with warnings.catch_warnings(record=True) as w: |
230 |
-+ warnings.filterwarnings('always', '', RuntimeWarning) |
231 |
-+ assert_equal(np.median(a), np.nan) |
232 |
-+ assert_(w[0].category is RuntimeWarning) |
233 |
-+ |
234 |
-+ # axis 0 and 1 |
235 |
-+ b = np.array([], dtype=float, ndmin=2) |
236 |
-+ with warnings.catch_warnings(record=True) as w: |
237 |
-+ warnings.filterwarnings('always', '', RuntimeWarning) |
238 |
-+ assert_equal(np.median(a, axis=0), b) |
239 |
-+ assert_equal(np.median(a, axis=1), b) |
240 |
-+ |
241 |
-+ # axis 2 |
242 |
-+ b = np.array(np.nan, dtype=float, ndmin=2) |
243 |
-+ with warnings.catch_warnings(record=True) as w: |
244 |
-+ warnings.filterwarnings('always', '', RuntimeWarning) |
245 |
-+ assert_equal(np.median(a, axis=2), b) |
246 |
-+ assert_(w[0].category is RuntimeWarning) |
247 |
-+ |
248 |
- def test_object(self): |
249 |
- o = np.arange(7.) |
250 |
- assert_(type(np.median(o.astype(object))), float) |
251 |
|
252 |
diff --git a/dev-python/numpy/files/numpy-1.11.1-no-hardcode-blas.patch b/dev-python/numpy/files/numpy-1.11.1-no-hardcode-blas.patch |
253 |
deleted file mode 100644 |
254 |
index 1f6f9c4c096..00000000000 |
255 |
--- a/dev-python/numpy/files/numpy-1.11.1-no-hardcode-blas.patch |
256 |
+++ /dev/null |
257 |
@@ -1,71 +0,0 @@ |
258 |
---- numpy-1.11.1/numpy/distutils/system_info.py |
259 |
-+++ numpy-1.11.1/numpy/distutils/system_info.py |
260 |
-@@ -312,26 +312,7 @@ |
261 |
- 1 - display warning message |
262 |
- 2 - raise error |
263 |
- """ |
264 |
-- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead |
265 |
-- 'atlas_threads': atlas_threads_info, # ditto |
266 |
-- 'atlas_blas': atlas_blas_info, |
267 |
-- 'atlas_blas_threads': atlas_blas_threads_info, |
268 |
-- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead |
269 |
-- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto |
270 |
-- 'atlas_3_10': atlas_3_10_info, # use lapack_opt or blas_opt instead |
271 |
-- 'atlas_3_10_threads': atlas_3_10_threads_info, # ditto |
272 |
-- 'atlas_3_10_blas': atlas_3_10_blas_info, |
273 |
-- 'atlas_3_10_blas_threads': atlas_3_10_blas_threads_info, |
274 |
-- 'lapack_atlas_3_10': lapack_atlas_3_10_info, # use lapack_opt instead |
275 |
-- 'lapack_atlas_3_10_threads': lapack_atlas_3_10_threads_info, # ditto |
276 |
-- 'mkl': mkl_info, |
277 |
-- # openblas which may or may not have embedded lapack |
278 |
-- 'openblas': openblas_info, # use blas_opt instead |
279 |
-- # openblas with embedded lapack |
280 |
-- 'openblas_lapack': openblas_lapack_info, # use blas_opt instead |
281 |
-- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead |
282 |
-- 'blas_mkl': blas_mkl_info, # use blas_opt instead |
283 |
-- 'x11': x11_info, |
284 |
-+ cl = {'x11': x11_info, |
285 |
- 'fft_opt': fft_opt_info, |
286 |
- 'fftw': fftw_info, |
287 |
- 'fftw2': fftw2_info, |
288 |
-@@ -669,10 +650,7 @@ |
289 |
- return [b for b in [a.strip() for a in libs.split(',')] if b] |
290 |
- |
291 |
- def get_libraries(self, key='libraries'): |
292 |
-- if hasattr(self, '_lib_names'): |
293 |
-- return self.get_libs(key, default=self._lib_names) |
294 |
-- else: |
295 |
-- return self.get_libs(key, '') |
296 |
-+ return self.get_libs(key, '') |
297 |
- |
298 |
- def library_extensions(self): |
299 |
- static_exts = ['.a'] |
300 |
-@@ -1685,7 +1663,7 @@ |
301 |
- lib = self.has_cblas(info) |
302 |
- if lib is not None: |
303 |
- info['language'] = 'c' |
304 |
-- info['libraries'] = [lib] |
305 |
-+ info['libraries'] = lib |
306 |
- info['define_macros'] = [('HAVE_CBLAS', None)] |
307 |
- self.set_info(**info) |
308 |
- |
309 |
-@@ -1718,16 +1696,16 @@ |
310 |
- # check for cblas lib, and if not present check for blas lib. |
311 |
- try: |
312 |
- c.link_executable(obj, os.path.join(tmpdir, "a.out"), |
313 |
-- libraries=["cblas"], |
314 |
-+ libraries=info["libraries"], |
315 |
- library_dirs=info['library_dirs'], |
316 |
- extra_postargs=info.get('extra_link_args', [])) |
317 |
-- res = "cblas" |
318 |
-+ res = info["libraries"] |
319 |
- except distutils.ccompiler.LinkError: |
320 |
- c.link_executable(obj, os.path.join(tmpdir, "a.out"), |
321 |
- libraries=["blas"], |
322 |
- library_dirs=info['library_dirs'], |
323 |
- extra_postargs=info.get('extra_link_args', [])) |
324 |
-- res = "blas" |
325 |
-+ res = ["blas"] |
326 |
- except distutils.ccompiler.CompileError: |
327 |
- res = None |
328 |
- finally: |
329 |
|
330 |
diff --git a/dev-python/numpy/files/numpy-1.11.2-import-module-fix.patch b/dev-python/numpy/files/numpy-1.11.2-import-module-fix.patch |
331 |
deleted file mode 100644 |
332 |
index 80b710b5b53..00000000000 |
333 |
--- a/dev-python/numpy/files/numpy-1.11.2-import-module-fix.patch |
334 |
+++ /dev/null |
335 |
@@ -1,27 +0,0 @@ |
336 |
-From 5d0ce36e5be134bb5ead03cab1edeaa60fa355aa Mon Sep 17 00:00:00 2001 |
337 |
-From: Jonathan Helmus <jjhelmus@×××××.com> |
338 |
-Date: Wed, 12 Oct 2016 13:07:42 -0500 |
339 |
-Subject: [PATCH] BUG: import full module path in npy_load_module |
340 |
- |
341 |
-Use the full module path when importing importlib.machinery for use in the |
342 |
-npy_load_module function. Just importing importlib is not sufficient in certain |
343 |
-cases, for example Python 3.4. |
344 |
- |
345 |
-closes #8147 |
346 |
---- |
347 |
- numpy/compat/py3k.py | 2 +- |
348 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
349 |
- |
350 |
-diff --git a/numpy/compat/py3k.py b/numpy/compat/py3k.py |
351 |
-index 25cc535..d5bb2e4 100644 |
352 |
---- a/numpy/compat/py3k.py |
353 |
-+++ b/numpy/compat/py3k.py |
354 |
-@@ -118,7 +118,7 @@ def npy_load_module(name, fn, info=None): |
355 |
- mod : module |
356 |
- |
357 |
- """ |
358 |
-- import importlib |
359 |
-+ import importlib.machinery |
360 |
- return importlib.machinery.SourceFileLoader(name, fn).load_module() |
361 |
- else: |
362 |
- def npy_load_module(name, fn, info=None): |
363 |
|
364 |
diff --git a/dev-python/numpy/numpy-1.10.1-r1.ebuild b/dev-python/numpy/numpy-1.10.1-r1.ebuild |
365 |
deleted file mode 100644 |
366 |
index 822c5cb22f2..00000000000 |
367 |
--- a/dev-python/numpy/numpy-1.10.1-r1.ebuild |
368 |
+++ /dev/null |
369 |
@@ -1,152 +0,0 @@ |
370 |
-# Copyright 1999-2017 Gentoo Foundation |
371 |
-# Distributed under the terms of the GNU General Public License v2 |
372 |
- |
373 |
-EAPI=5 |
374 |
- |
375 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
376 |
-PYTHON_REQ_USE="threads(+)" |
377 |
- |
378 |
-FORTRAN_NEEDED=lapack |
379 |
- |
380 |
-inherit distutils-r1 eutils flag-o-matic fortran-2 multilib multiprocessing toolchain-funcs versionator |
381 |
- |
382 |
-DOC_PV="1.9.1" |
383 |
-DOC_P="${PN}-${DOC_PV}" |
384 |
- |
385 |
-DESCRIPTION="Fast array and numerical python library" |
386 |
-HOMEPAGE="http://www.numpy.org/" |
387 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
388 |
- doc? ( |
389 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip |
390 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf |
391 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf |
392 |
- )" |
393 |
-# It appears the docs haven't been upgraded, still @ 1.8.1 |
394 |
-LICENSE="BSD" |
395 |
-SLOT="0" |
396 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
397 |
-IUSE="doc lapack test" |
398 |
- |
399 |
-RDEPEND=" |
400 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
401 |
- lapack? ( virtual/cblas virtual/lapack )" |
402 |
-DEPEND="${RDEPEND} |
403 |
- doc? ( app-arch/unzip ) |
404 |
- lapack? ( virtual/pkgconfig ) |
405 |
- test? ( >=dev-python/nose-1.0[${PYTHON_USEDEP}] )" |
406 |
- |
407 |
-# Uses distutils.command.config. |
408 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
409 |
- |
410 |
-PATCHES=( |
411 |
- "${FILESDIR}"/${PN}-1.9.2-no-hardcode-blas.patch |
412 |
- "${FILESDIR}"/${P}-backport-1.patch |
413 |
- "${FILESDIR}"/${P}-backport-2.patch |
414 |
-) |
415 |
- |
416 |
-src_unpack() { |
417 |
- default |
418 |
- if use doc; then |
419 |
- unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die |
420 |
- fi |
421 |
-} |
422 |
- |
423 |
-pc_incdir() { |
424 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
425 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
426 |
-} |
427 |
- |
428 |
-pc_libdir() { |
429 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
430 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
431 |
-} |
432 |
- |
433 |
-pc_libs() { |
434 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
435 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
436 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
437 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
438 |
-} |
439 |
- |
440 |
-python_prepare_all() { |
441 |
- if use lapack; then |
442 |
- append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
443 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
444 |
- cat >> site.cfg <<-EOF |
445 |
- [blas] |
446 |
- include_dirs = $(pc_incdir cblas) |
447 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
448 |
- blas_libs = $(pc_libs cblas blas) |
449 |
- [lapack] |
450 |
- library_dirs = $(pc_libdir lapack):${libdir} |
451 |
- lapack_libs = $(pc_libs lapack) |
452 |
- EOF |
453 |
- else |
454 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
455 |
- fi |
456 |
- |
457 |
- export CC="$(tc-getCC) ${CFLAGS}" |
458 |
- |
459 |
- append-flags -fno-strict-aliasing |
460 |
- |
461 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
462 |
- # with the subtle difference that we don't want to break Darwin where |
463 |
- # -shared is not a valid linker argument |
464 |
- if [[ ${CHOST} != *-darwin* ]]; then |
465 |
- append-ldflags -shared |
466 |
- fi |
467 |
- |
468 |
- # only one fortran to link with: |
469 |
- # linking with cblas and lapack library will force |
470 |
- # autodetecting and linking to all available fortran compilers |
471 |
- append-fflags -fPIC |
472 |
- if use lapack; then |
473 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
474 |
- # workaround bug 335908 |
475 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
476 |
- fi |
477 |
- |
478 |
- # don't version f2py, we will handle it. |
479 |
- sed -i -e '/f2py_exe/s:+os\.path.*$::' numpy/f2py/setup.py || die |
480 |
- |
481 |
- # we don't have f2py-3.3 |
482 |
- sed \ |
483 |
- -e "/f2py_cmd/s:'f2py'.*:'f2py':g" \ |
484 |
- -i numpy/tests/test_scripts.py || die |
485 |
- |
486 |
- distutils-r1_python_prepare_all |
487 |
-} |
488 |
- |
489 |
-python_compile() { |
490 |
- distutils-r1_python_compile -j $(makeopts_jobs) ${NUMPY_FCONFIG} |
491 |
-} |
492 |
- |
493 |
-python_test() { |
494 |
- distutils_install_for_testing ${NUMPY_FCONFIG} |
495 |
- |
496 |
- cd "${TMPDIR}" || die |
497 |
- ${EPYTHON} -c " |
498 |
-import numpy, sys |
499 |
-r = numpy.test(label='full', verbose=3) |
500 |
-sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}" |
501 |
-} |
502 |
- |
503 |
-python_install() { |
504 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
505 |
-} |
506 |
- |
507 |
-python_install_all() { |
508 |
- distutils-r1_python_install_all |
509 |
- |
510 |
- dodoc COMPATIBILITY DEV_README.txt THANKS.txt |
511 |
- |
512 |
- if use doc; then |
513 |
- dohtml -r "${WORKDIR}"/html/* |
514 |
- dodoc "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf |
515 |
- fi |
516 |
- |
517 |
- # absent in 1.9 |
518 |
- #docinto f2py |
519 |
- #dodoc numpy/f2py/docs/*.txt |
520 |
- #doman numpy/f2py/f2py.1 |
521 |
-} |
522 |
|
523 |
diff --git a/dev-python/numpy/numpy-1.10.2-r2.ebuild b/dev-python/numpy/numpy-1.10.2-r2.ebuild |
524 |
deleted file mode 100644 |
525 |
index 9aade7307f8..00000000000 |
526 |
--- a/dev-python/numpy/numpy-1.10.2-r2.ebuild |
527 |
+++ /dev/null |
528 |
@@ -1,149 +0,0 @@ |
529 |
-# Copyright 1999-2017 Gentoo Foundation |
530 |
-# Distributed under the terms of the GNU General Public License v2 |
531 |
- |
532 |
-EAPI=5 |
533 |
- |
534 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
535 |
-PYTHON_REQ_USE="threads(+)" |
536 |
- |
537 |
-FORTRAN_NEEDED=lapack |
538 |
- |
539 |
-inherit distutils-r1 eutils flag-o-matic fortran-2 multilib multiprocessing toolchain-funcs versionator |
540 |
- |
541 |
-DOC_PV="1.10.1" |
542 |
-DOC_P="${PN}-${DOC_PV}" |
543 |
- |
544 |
-DESCRIPTION="Fast array and numerical python library" |
545 |
-HOMEPAGE="http://www.numpy.org/" |
546 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
547 |
- doc? ( |
548 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip |
549 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf |
550 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf |
551 |
- )" |
552 |
-# It appears the docs haven't been upgraded, still @ 1.8.1 |
553 |
-LICENSE="BSD" |
554 |
-SLOT="0" |
555 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
556 |
-IUSE="doc lapack test" |
557 |
- |
558 |
-RDEPEND=" |
559 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
560 |
- lapack? ( virtual/cblas virtual/lapack )" |
561 |
-DEPEND="${RDEPEND} |
562 |
- doc? ( app-arch/unzip ) |
563 |
- lapack? ( virtual/pkgconfig ) |
564 |
- test? ( >=dev-python/nose-1.0[${PYTHON_USEDEP}] )" |
565 |
- |
566 |
-# Uses distutils.command.config. |
567 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
568 |
- |
569 |
-PATCHES=( |
570 |
- "${FILESDIR}"/${P}-no-hardcode-blas.patch |
571 |
-) |
572 |
- |
573 |
-src_unpack() { |
574 |
- default |
575 |
- if use doc; then |
576 |
- unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die |
577 |
- fi |
578 |
-} |
579 |
- |
580 |
-pc_incdir() { |
581 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
582 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
583 |
-} |
584 |
- |
585 |
-pc_libdir() { |
586 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
587 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
588 |
-} |
589 |
- |
590 |
-pc_libs() { |
591 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
592 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
593 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
594 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
595 |
-} |
596 |
- |
597 |
-python_prepare_all() { |
598 |
- if use lapack; then |
599 |
- append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
600 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
601 |
- cat >> site.cfg <<-EOF |
602 |
- [blas] |
603 |
- include_dirs = $(pc_incdir cblas) |
604 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
605 |
- blas_libs = $(pc_libs cblas blas) |
606 |
- [lapack] |
607 |
- library_dirs = $(pc_libdir lapack):${libdir} |
608 |
- lapack_libs = $(pc_libs lapack) |
609 |
- EOF |
610 |
- else |
611 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
612 |
- fi |
613 |
- |
614 |
- export CC="$(tc-getCC) ${CFLAGS}" |
615 |
- |
616 |
- append-flags -fno-strict-aliasing |
617 |
- |
618 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
619 |
- # with the subtle difference that we don't want to break Darwin where |
620 |
- # -shared is not a valid linker argument |
621 |
- if [[ ${CHOST} != *-darwin* ]]; then |
622 |
- append-ldflags -shared |
623 |
- fi |
624 |
- |
625 |
- # only one fortran to link with: |
626 |
- # linking with cblas and lapack library will force |
627 |
- # autodetecting and linking to all available fortran compilers |
628 |
- append-fflags -fPIC |
629 |
- if use lapack; then |
630 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
631 |
- # workaround bug 335908 |
632 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
633 |
- fi |
634 |
- |
635 |
-# # don't version f2py, we will handle it. |
636 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
637 |
- |
638 |
-# # we don't have f2py-3.3 |
639 |
- sed \ |
640 |
- -e 's:test_f2py:_&:g' \ |
641 |
- -i numpy/tests/test_scripts.py || die |
642 |
- |
643 |
- distutils-r1_python_prepare_all |
644 |
-} |
645 |
- |
646 |
-python_compile() { |
647 |
- distutils-r1_python_compile -j $(makeopts_jobs) ${NUMPY_FCONFIG} |
648 |
-} |
649 |
- |
650 |
-python_test() { |
651 |
- distutils_install_for_testing ${NUMPY_FCONFIG} |
652 |
- |
653 |
- cd "${TMPDIR}" || die |
654 |
- ${EPYTHON} -c " |
655 |
-import numpy, sys |
656 |
-r = numpy.test(label='full', verbose=3) |
657 |
-sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}" |
658 |
-} |
659 |
- |
660 |
-python_install() { |
661 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
662 |
-} |
663 |
- |
664 |
-python_install_all() { |
665 |
- DOCS+=( COMPATIBILITY DEV_README.txt THANKS.txt ) |
666 |
- |
667 |
- if use doc; then |
668 |
- HTML_DOCS=( "${WORKDIR}"/html/. ) |
669 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
670 |
- fi |
671 |
- |
672 |
- distutils-r1_python_install_all |
673 |
- |
674 |
- docinto f2py |
675 |
- dodoc doc/f2py/*.txt |
676 |
- doman doc/f2py/f2py.1 |
677 |
-} |
678 |
|
679 |
diff --git a/dev-python/numpy/numpy-1.11.2-r1.ebuild b/dev-python/numpy/numpy-1.11.2-r1.ebuild |
680 |
deleted file mode 100644 |
681 |
index 7d10708997c..00000000000 |
682 |
--- a/dev-python/numpy/numpy-1.11.2-r1.ebuild |
683 |
+++ /dev/null |
684 |
@@ -1,166 +0,0 @@ |
685 |
-# Copyright 1999-2017 Gentoo Foundation |
686 |
-# Distributed under the terms of the GNU General Public License v2 |
687 |
- |
688 |
-EAPI=6 |
689 |
- |
690 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
691 |
-PYTHON_REQ_USE="threads(+)" |
692 |
- |
693 |
-FORTRAN_NEEDED=lapack |
694 |
- |
695 |
-inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs versionator |
696 |
- |
697 |
-DOC_PV="1.11.0" |
698 |
-DOC_P="${PN}-${DOC_PV}" |
699 |
- |
700 |
-DESCRIPTION="Fast array and numerical python library" |
701 |
-HOMEPAGE="http://www.numpy.org/" |
702 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
703 |
- doc? ( |
704 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip |
705 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf |
706 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf |
707 |
- )" |
708 |
-# It appears the docs haven't been upgraded, still @ 1.11.0 |
709 |
-LICENSE="BSD" |
710 |
-SLOT="0" |
711 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
712 |
-IUSE="doc lapack test" |
713 |
- |
714 |
-RDEPEND="lapack? ( virtual/cblas virtual/lapack )" |
715 |
-DEPEND="${RDEPEND} |
716 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
717 |
- doc? ( app-arch/unzip ) |
718 |
- lapack? ( virtual/pkgconfig ) |
719 |
- test? ( >=dev-python/nose-1.0[${PYTHON_USEDEP}] )" |
720 |
- |
721 |
-PATCHES=( |
722 |
- "${FILESDIR}"/${PN}-1.11.1-no-hardcode-blas.patch |
723 |
- "${FILESDIR}"/${PN}-1.11.2-blas_rec_inc_dir.patch |
724 |
- # This has been fixed upstream but no new release yet |
725 |
- # https://github.com/numpy/numpy/commit/5d0ce36e5be134bb5ead03cab1edeaa60fa355aa |
726 |
- "${FILESDIR}"/${P}-import-module-fix.patch |
727 |
-) |
728 |
- |
729 |
-src_unpack() { |
730 |
- default |
731 |
- if use doc; then |
732 |
- unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die |
733 |
- fi |
734 |
-} |
735 |
- |
736 |
-pc_incdir() { |
737 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
738 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
739 |
-} |
740 |
- |
741 |
-pc_libdir() { |
742 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
743 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
744 |
-} |
745 |
- |
746 |
-pc_libs() { |
747 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
748 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
749 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
750 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
751 |
-} |
752 |
- |
753 |
-python_prepare_all() { |
754 |
- if use lapack; then |
755 |
- append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
756 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
757 |
- cat >> site.cfg <<-EOF || die |
758 |
- [blas] |
759 |
- include_dirs = $(pc_incdir cblas) |
760 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
761 |
- blas_libs = $(pc_libs cblas blas) |
762 |
- [lapack] |
763 |
- library_dirs = $(pc_libdir lapack):${libdir} |
764 |
- lapack_libs = $(pc_libs lapack) |
765 |
- EOF |
766 |
- else |
767 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
768 |
- fi |
769 |
- |
770 |
- export CC="$(tc-getCC) ${CFLAGS}" |
771 |
- |
772 |
- append-flags -fno-strict-aliasing |
773 |
- |
774 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
775 |
- # with the subtle difference that we don't want to break Darwin where |
776 |
- # -shared is not a valid linker argument |
777 |
- if [[ ${CHOST} != *-darwin* ]]; then |
778 |
- append-ldflags -shared |
779 |
- fi |
780 |
- |
781 |
- # only one fortran to link with: |
782 |
- # linking with cblas and lapack library will force |
783 |
- # autodetecting and linking to all available fortran compilers |
784 |
- append-fflags -fPIC |
785 |
- if use lapack; then |
786 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
787 |
- # workaround bug 335908 |
788 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
789 |
- fi |
790 |
- |
791 |
- # don't version f2py, we will handle it. |
792 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
793 |
- |
794 |
- # we don't have f2py-3.3 |
795 |
- sed \ |
796 |
- -e 's:test_f2py:_&:g' \ |
797 |
- -i numpy/tests/test_scripts.py || die |
798 |
- |
799 |
- # QA bug 590464 |
800 |
- # The .py files from numpy/core/tests are just added, instead |
801 |
- # of being bytecode compiled as a proper subdir package. |
802 |
- # We trick the buildsystem into accepting it as a bytecode |
803 |
- # package by adding a setup.py and an empty __init__.py |
804 |
- #cp numpy/{compat/setup.py,core/tests} || die |
805 |
- #touch numpy/core/tests/__init__.py || die |
806 |
- #sed \ |
807 |
- # -e 's:compat:tests:' \ |
808 |
- # -i numpy/core/tests/setup.py || die |
809 |
- #sed \ |
810 |
- # -e "s:config\.add_data_dir('tests'):config\.add_subpackage('tests'):" \ |
811 |
- # -i numpy/core/setup.py || die |
812 |
- |
813 |
- distutils-r1_python_prepare_all |
814 |
-} |
815 |
- |
816 |
-python_compile() { |
817 |
- distutils-r1_python_compile \ |
818 |
- $(usex python_targets_python3_5 "" "-j $(makeopts_jobs)") \ |
819 |
- ${NUMPY_FCONFIG} |
820 |
-} |
821 |
- |
822 |
-python_test() { |
823 |
- distutils_install_for_testing --single-version-externally-managed --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
824 |
- |
825 |
- cd "${TMPDIR}" || die |
826 |
- |
827 |
- ${EPYTHON} -c " |
828 |
-import numpy, sys |
829 |
-r = numpy.test(label='full', verbose=3) |
830 |
-sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}" |
831 |
-} |
832 |
- |
833 |
-python_install() { |
834 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
835 |
-} |
836 |
- |
837 |
-python_install_all() { |
838 |
- DOCS+=( THANKS.txt ) |
839 |
- |
840 |
- if use doc; then |
841 |
- HTML_DOCS=( "${WORKDIR}"/html/. ) |
842 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
843 |
- fi |
844 |
- |
845 |
- distutils-r1_python_install_all |
846 |
- |
847 |
- docinto f2py |
848 |
- dodoc doc/f2py/*.txt |
849 |
- doman doc/f2py/f2py.1 |
850 |
-} |
851 |
|
852 |
diff --git a/dev-python/numpy/numpy-1.9.3.ebuild b/dev-python/numpy/numpy-1.9.3.ebuild |
853 |
deleted file mode 100644 |
854 |
index 30c02d23dd6..00000000000 |
855 |
--- a/dev-python/numpy/numpy-1.9.3.ebuild |
856 |
+++ /dev/null |
857 |
@@ -1,146 +0,0 @@ |
858 |
-# Copyright 1999-2017 Gentoo Foundation |
859 |
-# Distributed under the terms of the GNU General Public License v2 |
860 |
- |
861 |
-EAPI=5 |
862 |
- |
863 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
864 |
-PYTHON_REQ_USE="threads(+)" |
865 |
- |
866 |
-FORTRAN_NEEDED=lapack |
867 |
- |
868 |
-inherit distutils-r1 eutils flag-o-matic fortran-2 multilib toolchain-funcs versionator |
869 |
- |
870 |
-DOC_PV="1.9.1" |
871 |
-DOC_P="${PN}-${DOC_PV}" |
872 |
- |
873 |
-DESCRIPTION="Fast array and numerical python library" |
874 |
-HOMEPAGE="http://numpy.scipy.org/" |
875 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
876 |
- doc? ( |
877 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip |
878 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf |
879 |
- http://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf |
880 |
- )" |
881 |
-# It appears the docs haven't been upgraded, still @ 1.8.1 |
882 |
-LICENSE="BSD" |
883 |
-SLOT="0" |
884 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
885 |
-IUSE="doc lapack test" |
886 |
- |
887 |
-RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
888 |
- lapack? ( virtual/cblas virtual/lapack )" |
889 |
-DEPEND="${RDEPEND} |
890 |
- doc? ( app-arch/unzip ) |
891 |
- lapack? ( virtual/pkgconfig ) |
892 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
893 |
- |
894 |
-# Uses distutils.command.config. |
895 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
896 |
- |
897 |
-PATCHES=( |
898 |
- "${FILESDIR}"/${PN}-1.9.2-no-hardcode-blas.patch |
899 |
-) |
900 |
- |
901 |
-src_unpack() { |
902 |
- default |
903 |
- if use doc; then |
904 |
- unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die |
905 |
- fi |
906 |
-} |
907 |
- |
908 |
-pc_incdir() { |
909 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
910 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
911 |
-} |
912 |
- |
913 |
-pc_libdir() { |
914 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
915 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
916 |
-} |
917 |
- |
918 |
-pc_libs() { |
919 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
920 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
921 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
922 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
923 |
-} |
924 |
- |
925 |
-python_prepare_all() { |
926 |
- if use lapack; then |
927 |
- append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
928 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
929 |
- # make sure _dotblas.so gets built |
930 |
- sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die |
931 |
- cat >> site.cfg <<-EOF |
932 |
- [blas] |
933 |
- include_dirs = $(pc_incdir cblas) |
934 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
935 |
- blas_libs = $(pc_libs cblas blas) |
936 |
- [lapack] |
937 |
- library_dirs = $(pc_libdir lapack):${libdir} |
938 |
- lapack_libs = $(pc_libs lapack) |
939 |
- EOF |
940 |
- else |
941 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
942 |
- fi |
943 |
- |
944 |
- export CC="$(tc-getCC) ${CFLAGS}" |
945 |
- |
946 |
- append-flags -fno-strict-aliasing |
947 |
- |
948 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
949 |
- # with the subtle difference that we don't want to break Darwin where |
950 |
- # -shared is not a valid linker argument |
951 |
- if [[ ${CHOST} != *-darwin* ]]; then |
952 |
- append-ldflags -shared |
953 |
- fi |
954 |
- |
955 |
- # only one fortran to link with: |
956 |
- # linking with cblas and lapack library will force |
957 |
- # autodetecting and linking to all available fortran compilers |
958 |
- append-fflags -fPIC |
959 |
- if use lapack; then |
960 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
961 |
- # workaround bug 335908 |
962 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
963 |
- fi |
964 |
- |
965 |
- # don't version f2py, we will handle it. |
966 |
- sed -i -e '/f2py_exe/s:+os\.path.*$::' numpy/f2py/setup.py || die |
967 |
- |
968 |
- distutils-r1_python_prepare_all |
969 |
-} |
970 |
- |
971 |
-python_compile() { |
972 |
- distutils-r1_python_compile ${NUMPY_FCONFIG} |
973 |
-} |
974 |
- |
975 |
-python_test() { |
976 |
- distutils_install_for_testing ${NUMPY_FCONFIG} |
977 |
- |
978 |
- cd "${TMPDIR}" || die |
979 |
- ${EPYTHON} -c " |
980 |
-import numpy, sys |
981 |
-r = numpy.test(label='full', verbose=3) |
982 |
-sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}" |
983 |
-} |
984 |
- |
985 |
-python_install() { |
986 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
987 |
-} |
988 |
- |
989 |
-python_install_all() { |
990 |
- distutils-r1_python_install_all |
991 |
- |
992 |
- dodoc COMPATIBILITY DEV_README.txt THANKS.txt |
993 |
- |
994 |
- if use doc; then |
995 |
- dohtml -r "${WORKDIR}"/html/* |
996 |
- dodoc "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf |
997 |
- fi |
998 |
- |
999 |
- # absent in 1.9 |
1000 |
- #docinto f2py |
1001 |
- #dodoc numpy/f2py/docs/*.txt |
1002 |
- #doman numpy/f2py/f2py.1 |
1003 |
-} |