Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/numpy/, dev-python/numpy/files/
Date: Wed, 26 Feb 2020 19:46:40
Message-Id: 1582746381.4ca6f412eb725fe077fd6ccc35d08fba782c9421.soap@gentoo
1 commit: 4ca6f412eb725fe077fd6ccc35d08fba782c9421
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 26 19:46:21 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 26 19:46:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca6f412
7
8 dev-python/numpy: Remove old
9
10 Closes: https://github.com/gentoo/gentoo/pull/14780
11 Package-Manager: Portage-2.3.89, Repoman-2.3.20
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 dev-python/numpy/Manifest | 12 --
15 .../files/numpy-1.14.5-no-hardcode-blas.patch | 75 ----------
16 dev-python/numpy/files/numpy-1.14.5-py37.patch | 135 ------------------
17 .../files/numpy-1.17.4-no-hardcode-blas.patch | 55 --------
18 dev-python/numpy/numpy-1.14.5.ebuild | 152 ---------------------
19 dev-python/numpy/numpy-1.15.4.ebuild | 147 --------------------
20 dev-python/numpy/numpy-1.16.1.ebuild | 150 --------------------
21 7 files changed, 726 deletions(-)
22
23 diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest
24 index fc66e4413ae..d2674141d47 100644
25 --- a/dev-python/numpy/Manifest
26 +++ b/dev-python/numpy/Manifest
27 @@ -1,17 +1,5 @@
28 -DIST numpy-1.14.5.zip 4904624 BLAKE2B 14d266bf1139b9539e39d08a6537e2b772e80bf46a0769cbb06b63ba54858c9284f6d0e8a19627a4d99f2c2638e9a4031bf4d4aaf773eaf34b7203d131636dc0 SHA512 e131f9fa815084e334b59c5d9abd8de0088ad1dfefecf8615ad7deca0b54b0dfa0446c8de99c90670ea9fcabea9980bd171618a5b9032c1937b597a5ce363c5b
29 -DIST numpy-1.15.4.zip 4473522 BLAKE2B c030ef4a06c84091eec11b6602422468bd0674489a2c7fea1230132cd3a3ca1b10ec87eeb6788f2f263943f9ac43026dc1e7f0f5f1d52e9d1cc6934a5d361090 SHA512 9e0516da04368f0353fb7e3cc2c72e1ec936042908309732a298405bd7111e712899627b82f3674295b611e0ebfd74ef91d693f065fe9cb03dc7de23d1e72676
30 -DIST numpy-1.16.1.zip 5070040 BLAKE2B 0429d27d88ec97e207822c9c7fa759453bbef97d1d5fdf3e68dab21ca098a6321e2e57d85561dd99084d190b8ed6fce20f00b421c8d14a249fc45dc1ea09569e SHA512 e4adce4f40a3cb6ac482f82db9fcd079179b03b0e878920cfc7d98b9f622adab997c68af892b209f417d5f31b4123a1c5ff5c07cf5b0aaa496d8be6c8354bde8
31 DIST numpy-1.16.5.zip 5138208 BLAKE2B f5511650e66939a6ce21cfad7874aecdeb6c07a70b32419a808956e42c7819d82bb364f1632da91b4d8a5237001c8ae3cbdcac10651fa0acca9558bdeafb5437 SHA512 6dd790ff57fdb7e7b0bddb47ea2b70b2667edefe632548ec68934e12a16af4a51bed9726e495c4993aad4c448dc4a204d0a087577d43dcfc9fa0164eb1d4b898
32 DIST numpy-1.17.4.zip 6366657 BLAKE2B 89f729bb0740fa721dfe8d1165094a96302fde1e8c272689c11cb4a9bb39d11afaf6eda3ded8a370333b47b9d1ee25e8cb0a602c8cf44964612342c50ea5824f SHA512 f3264be7152437d71718da4728222962013ebd7fe02288d5063f1c763d1c4eee26485c27e8088f4dff79a4d491bc9f191849748c6007d093d22e89c6bff317f3
33 -DIST numpy-html-1.14.5.zip 11197881 BLAKE2B 00cac3c5be07f644328acd9ed155a6fc07ed7d7380584732bb3ac03562c8705cd152612f461d5dc251dabe0be4ba45593165a961496e351110e1aa7598c37370 SHA512 578d31660de4e1f57310b3a2137cefea17228f40046eef1689fb6d9302f0fe0fda5aaf473c3b8c69ae781049950022321593ec891a5640e3c36c886ab3bf4383
34 -DIST numpy-html-1.15.4.zip 11158615 BLAKE2B eb264cd51fd61b389e858300d96be63f8e2eeaa0b7346beac571b62d96867d6820c19d5043a6f81088dc52b1e4d7f3f295e02ff5ff90351b0feccf657ce90001 SHA512 1cad60013f374f456bbb1fb6161545a94e252205c28054f9b33cde65330772ab243339289517a8825957a21e210455d33bcc0b9c588052c49c88257b1b04facb
35 -DIST numpy-html-1.16.1.zip 12132467 BLAKE2B 050a8cba160e36a4c547f1b67b8ab2b9220c9841a9f8343dce6f3221313505530a1687efa2116384a03d3bc9172a0298b4ea5ece2f423841d595e45f565ccbc2 SHA512 5af356313363e00f05db560902cc7578162c7d2ab9c1ef0f3713854682b63d76297d55eb9aac0dfc7f4b687ccea93a53462e2082ef1270e29e19680e1222b34d
36 DIST numpy-html-1.16.4.zip 12097069 BLAKE2B db1f897342fbc80a761fbaee7b0eee3761dbfa04ef6c46a137bb2392caaec8256580467ce06498cceeada2639151a1ec75dafab484d64cb897c008727d6d32a5 SHA512 c44c5e1e0cb22f9dd46fe9e302030292d85e567456178fee296746a414271634e906509fb6665ac63fbfebdd13c5383574f0aa47b4fbc639063da31addc3316a
37 -DIST numpy-ref-1.14.5.pdf 4855150 BLAKE2B aa924542346bd06b1aa8b11ceb8eb5de936cfdccc10a8339720a297e27b5b34961044eb8db8dd7b9a19ba93b3cbf76ec278a9a50724653aafd2b9d57a00007f2 SHA512 717f58fcb1aa66ecc5f5d4c11c9923d2beb21a1b1a0ca1e46f3622c69f1122fd0547b7f7abaf6de008e2aa988b2453af3c2590877f5596fb6642479ece651746
38 -DIST numpy-ref-1.15.4.pdf 4843444 BLAKE2B 26154930a8c881f49e7eb7d9540d1deba27baed1acb15dbacd42a659c05f50605cd44b63b2474e66d1d22851145cc65b3e3f26302f8966e141cbd2afc666c654 SHA512 aebff74389e785bd588ccc287329aea4dbc3ef51b46fbffdf088853342fea724f79f712733e453877949e756a52e89de3b257e5feba86e830df84ed8f9bb0e30
39 -DIST numpy-ref-1.16.1.pdf 5175448 BLAKE2B 5cd692a0fc825216560dbbf48738a49b794973d4539bd778f0f9a2f7f72b32d3061675f9a76db4cbfbb38eec0793c70046180fcb07e23ffc6177dee76b16bb92 SHA512 6cad03e30d7c2204fb899f4e4d1167fefade60d20dedf0ea87ac15c70139fbcca8789cdf17af5a2d221ba06eb78e9376b4b542621f9d78772041c83ab2405d1a
40 DIST numpy-ref-1.16.4.pdf 5176571 BLAKE2B 9a875ebd1473b241d463d810a6d191581aef961158f2f82959671b554ace3ad482795e4f3e1cb7dd4632cff926c1e864c675a7624fb0f4e4f297948bf50f0564 SHA512 983ba0f34a70c011886bdbc9fd8f3f75a3a967ca29217acc76fa46e7da391296a5628c9a557ac76efb393271abfb8ee4f376d401c1cc1e5c30622e54b9325d09
41 -DIST numpy-user-1.14.5.pdf 574418 BLAKE2B 80738f1760932fa74b07334d1a355ba3ce319e0b03fe1428d0b3497466fa1164ccbad84969cb7bc8daebb5525094f0d0c7710e1d661b1c6bbaca0669bfcbf875 SHA512 fb00305408c56ee203ed71ac042474592e7e933f14a639f6dce0f6dc80206c13b844c2425a919f9072a114c7af2c2f9f85b78a07ba3874259e5d173290e51a13
42 -DIST numpy-user-1.15.4.pdf 596191 BLAKE2B 1387b7aac9cccba4b7ce259391f56372959db35c4ddce111afb9949347ebcf3290e7d3fb5b1b2d2e7850911259cddb07edfe104c1396ae8e31a58a81e9293f16 SHA512 2089753b48412f094b279c378be1d221ec9b171957171a4e26b4589d594e00b4f66b6f8a88a7eb665e8c3fa3e6ed505d63da80d4d01ced041544b97ea56fe212
43 -DIST numpy-user-1.16.1.pdf 592508 BLAKE2B 88ef7aac2998fd8eeebc3ab92df9ad9ba139b67ab0442cd4ed91cdc7b1cd72acf7905468118df25634640b709106758455c7d316539b941d7760010b8135fafa SHA512 d089b4c663f92c38aa075c37974df757bdc457f75980737477a4477f67311d28149bc4c20f5d1cd0877221a78e5a9ff10702b1ebcc8ab062d328cdda4087d0f7
44 DIST numpy-user-1.16.4.pdf 596203 BLAKE2B da3ad1f0ec1c965d20656f73a970911cbb58efa73a5df89e2e6485e0dd763f483e35eea1395ac919bf35d496fb216cee954fc5d31edebc1796a24a2a7a2d12b9 SHA512 3083008547213bfa98ffa5cd8e2cea13f6947f42d83aef61502a2a852b0d5f27d727c76b42d281d7a2f4f76c78e88b12ee3d9b164b39fe1f0213ace7097357d6
45
46 diff --git a/dev-python/numpy/files/numpy-1.14.5-no-hardcode-blas.patch b/dev-python/numpy/files/numpy-1.14.5-no-hardcode-blas.patch
47 deleted file mode 100644
48 index 39777ec55af..00000000000
49 --- a/dev-python/numpy/files/numpy-1.14.5-no-hardcode-blas.patch
50 +++ /dev/null
51 @@ -1,75 +0,0 @@
52 -diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
53 -index 93a8e6f..df3f3f8 100644
54 ---- a/numpy/distutils/system_info.py
55 -+++ b/numpy/distutils/system_info.py
56 -@@ -364,28 +364,7 @@ def get_info(name, notfound_action=0):
57 - 1 - display warning message
58 - 2 - raise error
59 - """
60 -- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead
61 -- 'atlas_threads': atlas_threads_info, # ditto
62 -- 'atlas_blas': atlas_blas_info,
63 -- 'atlas_blas_threads': atlas_blas_threads_info,
64 -- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead
65 -- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto
66 -- 'atlas_3_10': atlas_3_10_info, # use lapack_opt or blas_opt instead
67 -- 'atlas_3_10_threads': atlas_3_10_threads_info, # ditto
68 -- 'atlas_3_10_blas': atlas_3_10_blas_info,
69 -- 'atlas_3_10_blas_threads': atlas_3_10_blas_threads_info,
70 -- 'lapack_atlas_3_10': lapack_atlas_3_10_info, # use lapack_opt instead
71 -- 'lapack_atlas_3_10_threads': lapack_atlas_3_10_threads_info, # ditto
72 -- 'mkl': mkl_info,
73 -- # openblas which may or may not have embedded lapack
74 -- 'openblas': openblas_info, # use blas_opt instead
75 -- # openblas with embedded lapack
76 -- 'openblas_lapack': openblas_lapack_info, # use blas_opt instead
77 -- 'openblas_clapack': openblas_clapack_info, # use blas_opt instead
78 -- 'blis': blis_info, # use blas_opt instead
79 -- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead
80 -- 'blas_mkl': blas_mkl_info, # use blas_opt instead
81 -- 'x11': x11_info,
82 -+ cl = {'x11': x11_info,
83 - 'fft_opt': fft_opt_info,
84 - 'fftw': fftw_info,
85 - 'fftw2': fftw2_info,
86 -@@ -730,10 +709,7 @@ class system_info(object):
87 - return [b for b in [a.strip() for a in libs.split(',')] if b]
88 -
89 - def get_libraries(self, key='libraries'):
90 -- if hasattr(self, '_lib_names'):
91 -- return self.get_libs(key, default=self._lib_names)
92 -- else:
93 -- return self.get_libs(key, '')
94 -+ return self.get_libs(key, '')
95 -
96 - def library_extensions(self):
97 - c = customized_ccompiler()
98 -@@ -1740,7 +1716,7 @@ class blas_info(system_info):
99 - lib = self.has_cblas(info)
100 - if lib is not None:
101 - info['language'] = 'c'
102 -- info['libraries'] = [lib]
103 -+ info['libraries'] = lib
104 - info['define_macros'] = [('HAVE_CBLAS', None)]
105 - self.set_info(**info)
106 -
107 -@@ -1772,16 +1748,16 @@ class blas_info(system_info):
108 - # check for cblas lib, and if not present check for blas lib.
109 - try:
110 - c.link_executable(obj, os.path.join(tmpdir, "a.out"),
111 -- libraries=["cblas"],
112 -+ libraries=info["libraries"],
113 - library_dirs=info['library_dirs'],
114 - extra_postargs=info.get('extra_link_args', []))
115 -- res = "cblas"
116 -+ res = info["libraries"]
117 - except distutils.ccompiler.LinkError:
118 - c.link_executable(obj, os.path.join(tmpdir, "a.out"),
119 - libraries=["blas"],
120 - library_dirs=info['library_dirs'],
121 - extra_postargs=info.get('extra_link_args', []))
122 -- res = "blas"
123 -+ res = ["blas"]
124 - except distutils.ccompiler.CompileError:
125 - res = None
126 - finally:
127
128 diff --git a/dev-python/numpy/files/numpy-1.14.5-py37.patch b/dev-python/numpy/files/numpy-1.14.5-py37.patch
129 deleted file mode 100644
130 index c53b3acf696..00000000000
131 --- a/dev-python/numpy/files/numpy-1.14.5-py37.patch
132 +++ /dev/null
133 @@ -1,135 +0,0 @@
134 -From dce7f20e95e6bd3fc07517c0b2daf3942a34ddf7 Mon Sep 17 00:00:00 2001
135 -From: Charles Harris <charlesr.harris@×××××.com>
136 -Date: Wed, 14 Mar 2018 12:52:26 -0600
137 -Subject: [PATCH] MAINT: Fix test_utils.py for Python 3.7.
138 -
139 -The contents of the module warnings registries was made more module
140 -specific in Python 3.7 and consequently the tests of the context
141 -managers clear_and_catch_warnings and suppress_warnings need updating.
142 ----
143 - numpy/testing/tests/test_utils.py | 43 +++++++++++++++++++++----------
144 - 1 file changed, 29 insertions(+), 14 deletions(-)
145 -
146 -diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
147 -index a97b627f9..33b3555b0 100644
148 ---- a/numpy/testing/tests/test_utils.py
149 -+++ b/numpy/testing/tests/test_utils.py
150 -@@ -1114,18 +1114,28 @@ class TestStringEqual(unittest.TestCase):
151 - lambda: assert_string_equal("foo", "hello"))
152 -
153 -
154 --def assert_warn_len_equal(mod, n_in_context, py3_n_in_context=None):
155 -+def assert_warn_len_equal(mod, n_in_context, py34=None, py37=None):
156 - mod_warns = mod.__warningregistry__
157 -+ num_warns = len(mod_warns)
158 - # Python 3.4 appears to clear any pre-existing warnings of the same type,
159 - # when raising warnings inside a catch_warnings block. So, there is a
160 - # warning generated by the tests within the context manager, but no
161 - # previous warnings.
162 - if 'version' in mod_warns:
163 -- if py3_n_in_context is None:
164 -- py3_n_in_context = n_in_context
165 -- assert_equal(len(mod_warns) - 1, py3_n_in_context)
166 -- else:
167 -- assert_equal(len(mod_warns), n_in_context)
168 -+ # Python 3 adds a 'version' entry to the registry,
169 -+ # do not count it.
170 -+ num_warns -= 1
171 -+
172 -+ # Behavior of warnings is Python version dependent. Adjust the
173 -+ # expected result to compensate. In particular, Python 3.7 does
174 -+ # not make an entry for ignored warnings.
175 -+ if sys.version_info[:2] >= (3, 7):
176 -+ if py37 is not None:
177 -+ n_in_context = py37
178 -+ elif sys.version_info[:2] >= (3, 4):
179 -+ if py34 is not None:
180 -+ n_in_context = py34
181 -+ assert_equal(num_warns, n_in_context)
182 -
183 -
184 - def _get_fresh_mod():
185 -@@ -1134,6 +1144,8 @@ def _get_fresh_mod():
186 - try:
187 - my_mod.__warningregistry__.clear()
188 - except AttributeError:
189 -+ # will not have a __warningregistry__ unless warning has been
190 -+ # raised in the module at some point
191 - pass
192 - return my_mod
193 -
194 -@@ -1147,21 +1159,23 @@ def test_clear_and_catch_warnings():
195 - warnings.warn('Some warning')
196 - assert_equal(my_mod.__warningregistry__, {})
197 - # Without specified modules, don't clear warnings during context
198 -+ # Python 3.7 catch_warnings doesn't make an entry for 'ignore'.
199 - with clear_and_catch_warnings():
200 - warnings.simplefilter('ignore')
201 - warnings.warn('Some warning')
202 -- assert_warn_len_equal(my_mod, 1)
203 -+ assert_warn_len_equal(my_mod, 1, py37=0)
204 - # Confirm that specifying module keeps old warning, does not add new
205 - with clear_and_catch_warnings(modules=[my_mod]):
206 - warnings.simplefilter('ignore')
207 - warnings.warn('Another warning')
208 -- assert_warn_len_equal(my_mod, 1)
209 -+ assert_warn_len_equal(my_mod, 1, py37=0)
210 - # Another warning, no module spec does add to warnings dict, except on
211 - # Python 3.4 (see comments in `assert_warn_len_equal`)
212 -+ # Python 3.7 catch_warnings doesn't make an entry for 'ignore'.
213 - with clear_and_catch_warnings():
214 - warnings.simplefilter('ignore')
215 - warnings.warn('Another warning')
216 -- assert_warn_len_equal(my_mod, 2, 1)
217 -+ assert_warn_len_equal(my_mod, 2, py34=1, py37=0)
218 -
219 -
220 - def test_suppress_warnings_module():
221 -@@ -1178,6 +1192,7 @@ def test_suppress_warnings_module():
222 - np.apply_along_axis(warn, 0, [0])
223 -
224 - # Test module based warning suppression:
225 -+ assert_warn_len_equal(my_mod, 0)
226 - with suppress_warnings() as sup:
227 - sup.record(UserWarning)
228 - # suppress warning from other module (may have .pyc ending),
229 -@@ -1189,8 +1204,7 @@ def test_suppress_warnings_module():
230 - # got filtered)
231 - assert_(len(sup.log) == 1)
232 - assert_(sup.log[0].message.args[0] == "Some warning")
233 --
234 -- assert_warn_len_equal(my_mod, 0)
235 -+ assert_warn_len_equal(my_mod, 0, py37=0)
236 - sup = suppress_warnings()
237 - # Will have to be changed if apply_along_axis is moved:
238 - sup.filter(module=my_mod)
239 -@@ -1204,11 +1218,11 @@ def test_suppress_warnings_module():
240 - assert_warn_len_equal(my_mod, 0)
241 -
242 - # Without specified modules, don't clear warnings during context
243 -+ # Python 3.7 does not add ignored warnings.
244 - with suppress_warnings():
245 - warnings.simplefilter('ignore')
246 - warnings.warn('Some warning')
247 -- assert_warn_len_equal(my_mod, 1)
248 --
249 -+ assert_warn_len_equal(my_mod, 1, py37=0)
250 -
251 - def test_suppress_warnings_type():
252 - # Initial state of module, no warnings
253 -@@ -1232,10 +1246,11 @@ def test_suppress_warnings_type():
254 - assert_warn_len_equal(my_mod, 0)
255 -
256 - # Without specified modules, don't clear warnings during context
257 -+ # Python 3.7 does not add ignored warnings.
258 - with suppress_warnings():
259 - warnings.simplefilter('ignore')
260 - warnings.warn('Some warning')
261 -- assert_warn_len_equal(my_mod, 1)
262 -+ assert_warn_len_equal(my_mod, 1, py37=0)
263 -
264 -
265 - def test_suppress_warnings_decorate_no_record():
266 ---
267 -2.18.0
268 -
269
270 diff --git a/dev-python/numpy/files/numpy-1.17.4-no-hardcode-blas.patch b/dev-python/numpy/files/numpy-1.17.4-no-hardcode-blas.patch
271 deleted file mode 100644
272 index 8c2a58a1940..00000000000
273 --- a/dev-python/numpy/files/numpy-1.17.4-no-hardcode-blas.patch
274 +++ /dev/null
275 @@ -1,55 +0,0 @@
276 -diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
277 -index ba2b1f46c..09db18e69 100644
278 ---- a/numpy/distutils/system_info.py
279 -+++ b/numpy/distutils/system_info.py
280 -@@ -374,28 +374,7 @@ def get_info(name, notfound_action=0):
281 - 1 - display warning message
282 - 2 - raise error
283 - """
284 -- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead
285 -- 'atlas_threads': atlas_threads_info, # ditto
286 -- 'atlas_blas': atlas_blas_info,
287 -- 'atlas_blas_threads': atlas_blas_threads_info,
288 -- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead
289 -- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto
290 -- 'atlas_3_10': atlas_3_10_info, # use lapack_opt or blas_opt instead
291 -- 'atlas_3_10_threads': atlas_3_10_threads_info, # ditto
292 -- 'atlas_3_10_blas': atlas_3_10_blas_info,
293 -- 'atlas_3_10_blas_threads': atlas_3_10_blas_threads_info,
294 -- 'lapack_atlas_3_10': lapack_atlas_3_10_info, # use lapack_opt instead
295 -- 'lapack_atlas_3_10_threads': lapack_atlas_3_10_threads_info, # ditto
296 -- 'flame': flame_info, # use lapack_opt instead
297 -- 'mkl': mkl_info,
298 -- # openblas which may or may not have embedded lapack
299 -- 'openblas': openblas_info, # use blas_opt instead
300 -- # openblas with embedded lapack
301 -- 'openblas_lapack': openblas_lapack_info, # use blas_opt instead
302 -- 'openblas_clapack': openblas_clapack_info, # use blas_opt instead
303 -- 'blis': blis_info, # use blas_opt instead
304 -- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead
305 -- 'blas_mkl': blas_mkl_info, # use blas_opt instead
306 -+ cl = {'flame': flame_info, # use lapack_opt instead
307 - 'accelerate': accelerate_info, # use blas_opt instead
308 - 'x11': x11_info,
309 - 'fft_opt': fft_opt_info,
310 -@@ -796,10 +775,7 @@ class system_info(object):
311 - return [b for b in [a.strip() for a in libs.split(',')] if b]
312 -
313 - def get_libraries(self, key='libraries'):
314 -- if hasattr(self, '_lib_names'):
315 -- return self.get_libs(key, default=self._lib_names)
316 -- else:
317 -- return self.get_libs(key, '')
318 -+ return self.get_libs(key, '')
319 -
320 - def library_extensions(self):
321 - c = customized_ccompiler()
322 -@@ -1842,7 +1818,7 @@ class blas_info(system_info):
323 - lib = self.get_cblas_libs(info)
324 - if lib is not None:
325 - info['language'] = 'c'
326 -- info['libraries'] = lib
327 -+ info['libraries'] = [lib]
328 - info['define_macros'] = [('HAVE_CBLAS', None)]
329 - self.set_info(**info)
330 -
331
332 diff --git a/dev-python/numpy/numpy-1.14.5.ebuild b/dev-python/numpy/numpy-1.14.5.ebuild
333 deleted file mode 100644
334 index 94fb9ba2ea2..00000000000
335 --- a/dev-python/numpy/numpy-1.14.5.ebuild
336 +++ /dev/null
337 @@ -1,152 +0,0 @@
338 -# Copyright 1999-2020 Gentoo Authors
339 -# Distributed under the terms of the GNU General Public License v2
340 -
341 -EAPI=6
342 -
343 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
344 -PYTHON_REQ_USE="threads(+)"
345 -
346 -FORTRAN_NEEDED=lapack
347 -
348 -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs
349 -
350 -DOC_PV="${PV}"
351 -DOC_P="${PN}-${DOC_PV}"
352 -
353 -DESCRIPTION="Fast array and numerical python library"
354 -HOMEPAGE="https://www.numpy.org"
355 -SRC_URI="
356 - mirror://pypi/${PN:0:1}/${PN}/${P}.zip
357 - doc? (
358 - http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip
359 - http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf
360 - http://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf
361 - )"
362 -LICENSE="BSD"
363 -SLOT="0"
364 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
365 -IUSE="doc lapack test"
366 -RESTRICT="!test? ( test )"
367 -
368 -RDEPEND="lapack? ( virtual/cblas virtual/lapack )"
369 -DEPEND="${RDEPEND}
370 - app-arch/unzip
371 - dev-python/setuptools[${PYTHON_USEDEP}]
372 - lapack? ( virtual/pkgconfig )
373 - test? ( >=dev-python/nose-1.0[${PYTHON_USEDEP}] )"
374 -
375 -PATCHES=(
376 - "${FILESDIR}"/${PN}-1.14.5-no-hardcode-blas.patch
377 - # backport a fix for py3.7 test failures
378 - "${FILESDIR}"/numpy-1.14.5-py37.patch
379 -)
380 -
381 -src_unpack() {
382 - default
383 - if use doc; then
384 - unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
385 - fi
386 -}
387 -
388 -pc_incdir() {
389 - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \
390 - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
391 -}
392 -
393 -pc_libdir() {
394 - $(tc-getPKG_CONFIG) --libs-only-L $@ | \
395 - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
396 -}
397 -
398 -pc_libs() {
399 - $(tc-getPKG_CONFIG) --libs-only-l $@ | \
400 - sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
401 - -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
402 - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
403 -}
404 -
405 -python_prepare_all() {
406 - if use lapack; then
407 - append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)"
408 - local incdir="${EPREFIX}"/usr/include
409 - local libdir="${EPREFIX}"/usr/$(get_libdir)
410 - cat >> site.cfg <<-EOF || die
411 - [blas]
412 - include_dirs = $(pc_incdir cblas):${incdir}
413 - library_dirs = $(pc_libdir cblas blas):${libdir}
414 - blas_libs = $(pc_libs cblas blas)
415 - [lapack]
416 - library_dirs = $(pc_libdir lapack):${libdir}
417 - lapack_libs = $(pc_libs lapack)
418 - EOF
419 - else
420 - export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
421 - fi
422 -
423 - export CC="$(tc-getCC) ${CFLAGS}"
424 -
425 - append-flags -fno-strict-aliasing
426 -
427 - # See progress in http://projects.scipy.org/scipy/numpy/ticket/573
428 - # with the subtle difference that we don't want to break Darwin where
429 - # -shared is not a valid linker argument
430 - if [[ ${CHOST} != *-darwin* ]]; then
431 - append-ldflags -shared
432 - fi
433 -
434 - # only one fortran to link with:
435 - # linking with cblas and lapack library will force
436 - # autodetecting and linking to all available fortran compilers
437 - append-fflags -fPIC
438 - if use lapack; then
439 - NUMPY_FCONFIG="config_fc --noopt --noarch"
440 - # workaround bug 335908
441 - [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
442 - fi
443 -
444 - # don't version f2py, we will handle it.
445 - sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
446 -
447 - # we don't have f2py-3.3
448 - sed \
449 - -e 's:test_f2py:_&:g' \
450 - -i numpy/tests/test_scripts.py || die
451 -
452 - distutils-r1_python_prepare_all
453 -}
454 -
455 -python_compile() {
456 - export MAKEOPTS=-j1 #660754
457 -
458 - local python_makeopts_jobs=""
459 - python_is_python3 || python_makeopts_jobs="-j $(makeopts_jobs)"
460 - distutils-r1_python_compile \
461 - ${python_makeopts_jobs} \
462 - ${NUMPY_FCONFIG}
463 -}
464 -
465 -python_test() {
466 - distutils_install_for_testing --single-version-externally-managed --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
467 -
468 - cd "${TMPDIR}" || die
469 -
470 - ${EPYTHON} -c "
471 -import numpy, sys
472 -r = numpy.test(label='full', verbose=3)
473 -sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}"
474 -}
475 -
476 -python_install() {
477 - distutils-r1_python_install ${NUMPY_FCONFIG}
478 -}
479 -
480 -python_install_all() {
481 - local DOCS=( THANKS.txt )
482 -
483 - if use doc; then
484 - local HTML_DOCS=( "${WORKDIR}"/html/. )
485 - DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf )
486 - fi
487 -
488 - distutils-r1_python_install_all
489 -}
490
491 diff --git a/dev-python/numpy/numpy-1.15.4.ebuild b/dev-python/numpy/numpy-1.15.4.ebuild
492 deleted file mode 100644
493 index 7c4e514f498..00000000000
494 --- a/dev-python/numpy/numpy-1.15.4.ebuild
495 +++ /dev/null
496 @@ -1,147 +0,0 @@
497 -# Copyright 1999-2020 Gentoo Authors
498 -# Distributed under the terms of the GNU General Public License v2
499 -
500 -EAPI=6
501 -
502 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
503 -PYTHON_REQ_USE="threads(+)"
504 -
505 -FORTRAN_NEEDED=lapack
506 -
507 -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs
508 -
509 -DOC_PV="${PV}"
510 -DOC_P="${PN}-${DOC_PV}"
511 -
512 -DESCRIPTION="Fast array and numerical python library"
513 -HOMEPAGE="https://www.numpy.org"
514 -SRC_URI="
515 - mirror://pypi/${PN:0:1}/${PN}/${P}.zip
516 - doc? (
517 - http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip
518 - http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf
519 - http://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf
520 - )"
521 -LICENSE="BSD"
522 -SLOT="0"
523 -KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
524 -IUSE="doc lapack test"
525 -RESTRICT="!test? ( test )"
526 -
527 -RDEPEND="lapack? ( virtual/cblas virtual/lapack )"
528 -DEPEND="${RDEPEND}
529 - app-arch/unzip
530 - dev-python/setuptools[${PYTHON_USEDEP}]
531 - lapack? ( virtual/pkgconfig )
532 - test? (
533 - dev-python/pytest[${PYTHON_USEDEP}]
534 - )"
535 -
536 -PATCHES=(
537 - "${FILESDIR}"/${PN}-1.15.4-no-hardcode-blas.patch
538 -)
539 -
540 -src_unpack() {
541 - default
542 - if use doc; then
543 - unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
544 - fi
545 -}
546 -
547 -pc_incdir() {
548 - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \
549 - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
550 -}
551 -
552 -pc_libdir() {
553 - $(tc-getPKG_CONFIG) --libs-only-L $@ | \
554 - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
555 -}
556 -
557 -pc_libs() {
558 - $(tc-getPKG_CONFIG) --libs-only-l $@ | \
559 - sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
560 - -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
561 - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
562 -}
563 -
564 -python_prepare_all() {
565 - if use lapack; then
566 - append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)"
567 - local incdir="${EPREFIX}"/usr/include
568 - local libdir="${EPREFIX}"/usr/$(get_libdir)
569 - cat >> site.cfg <<-EOF || die
570 - [blas]
571 - include_dirs = $(pc_incdir cblas):${incdir}
572 - library_dirs = $(pc_libdir cblas blas):${libdir}
573 - blas_libs = $(pc_libs cblas blas)
574 - [lapack]
575 - library_dirs = $(pc_libdir lapack):${libdir}
576 - lapack_libs = $(pc_libs lapack)
577 - EOF
578 - else
579 - export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
580 - fi
581 -
582 - export CC="$(tc-getCC) ${CFLAGS}"
583 -
584 - append-flags -fno-strict-aliasing
585 -
586 - # See progress in http://projects.scipy.org/scipy/numpy/ticket/573
587 - # with the subtle difference that we don't want to break Darwin where
588 - # -shared is not a valid linker argument
589 - if [[ ${CHOST} != *-darwin* ]]; then
590 - append-ldflags -shared
591 - fi
592 -
593 - # only one fortran to link with:
594 - # linking with cblas and lapack library will force
595 - # autodetecting and linking to all available fortran compilers
596 - append-fflags -fPIC
597 - if use lapack; then
598 - NUMPY_FCONFIG="config_fc --noopt --noarch"
599 - # workaround bug 335908
600 - [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
601 - fi
602 -
603 - # don't version f2py, we will handle it.
604 - sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
605 -
606 - distutils-r1_python_prepare_all
607 -}
608 -
609 -python_compile() {
610 - export MAKEOPTS=-j1 #660754
611 -
612 - local python_makeopts_jobs=""
613 - python_is_python3 || python_makeopts_jobs="-j $(makeopts_jobs)"
614 - distutils-r1_python_compile \
615 - ${python_makeopts_jobs} \
616 - ${NUMPY_FCONFIG}
617 -}
618 -
619 -python_test() {
620 - distutils_install_for_testing --single-version-externally-managed --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
621 -
622 - cd "${TMPDIR}" || die
623 -
624 - ${EPYTHON} -c "
625 -import numpy, sys
626 -r = numpy.test(label='full', verbose=3)
627 -sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}"
628 -}
629 -
630 -python_install() {
631 - distutils-r1_python_install ${NUMPY_FCONFIG}
632 -}
633 -
634 -python_install_all() {
635 - local DOCS=( THANKS.txt )
636 -
637 - if use doc; then
638 - local HTML_DOCS=( "${WORKDIR}"/html/. )
639 - DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf )
640 - fi
641 -
642 - distutils-r1_python_install_all
643 -}
644
645 diff --git a/dev-python/numpy/numpy-1.16.1.ebuild b/dev-python/numpy/numpy-1.16.1.ebuild
646 deleted file mode 100644
647 index 3cbc081a140..00000000000
648 --- a/dev-python/numpy/numpy-1.16.1.ebuild
649 +++ /dev/null
650 @@ -1,150 +0,0 @@
651 -# Copyright 1999-2020 Gentoo Authors
652 -# Distributed under the terms of the GNU General Public License v2
653 -
654 -EAPI="7"
655 -
656 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
657 -PYTHON_REQ_USE="threads(+)"
658 -
659 -FORTRAN_NEEDED=lapack
660 -
661 -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs
662 -
663 -DOC_PV="${PV}"
664 -DOC_P="${PN}-${DOC_PV}"
665 -
666 -DESCRIPTION="Fast array and numerical python library"
667 -HOMEPAGE="https://www.numpy.org"
668 -SRC_URI="
669 - mirror://pypi/${PN:0:1}/${PN}/${P}.zip
670 - doc? (
671 - https://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip
672 - https://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf
673 - https://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf
674 - )"
675 -LICENSE="BSD"
676 -SLOT="0"
677 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
678 -IUSE="doc lapack test"
679 -RESTRICT="!test? ( test )"
680 -
681 -RDEPEND="lapack? (
682 - virtual/cblas
683 - virtual/lapack
684 - )"
685 -DEPEND="${RDEPEND}"
686 -BDEPEND="app-arch/unzip
687 - dev-python/setuptools[${PYTHON_USEDEP}]
688 - lapack? ( virtual/pkgconfig )
689 - test? (
690 - dev-python/pytest[${PYTHON_USEDEP}]
691 - )"
692 -
693 -PATCHES=(
694 - "${FILESDIR}"/${PN}-1.15.4-no-hardcode-blas.patch
695 -)
696 -
697 -src_unpack() {
698 - default
699 - if use doc; then
700 - unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
701 - fi
702 -}
703 -
704 -pc_incdir() {
705 - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \
706 - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
707 -}
708 -
709 -pc_libdir() {
710 - $(tc-getPKG_CONFIG) --libs-only-L $@ | \
711 - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
712 -}
713 -
714 -pc_libs() {
715 - $(tc-getPKG_CONFIG) --libs-only-l $@ | \
716 - sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
717 - -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
718 - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
719 -}
720 -
721 -python_prepare_all() {
722 - if use lapack; then
723 - append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)"
724 - local incdir="${EPREFIX}"/usr/include
725 - local libdir="${EPREFIX}"/usr/$(get_libdir)
726 - cat >> site.cfg <<-EOF || die
727 - [blas]
728 - include_dirs = $(pc_incdir cblas):${incdir}
729 - library_dirs = $(pc_libdir cblas blas):${libdir}
730 - blas_libs = $(pc_libs cblas blas)
731 - [lapack]
732 - library_dirs = $(pc_libdir lapack):${libdir}
733 - lapack_libs = $(pc_libs lapack)
734 - EOF
735 - else
736 - export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
737 - fi
738 -
739 - export CC="$(tc-getCC) ${CFLAGS}"
740 -
741 - append-flags -fno-strict-aliasing
742 -
743 - # See progress in http://projects.scipy.org/scipy/numpy/ticket/573
744 - # with the subtle difference that we don't want to break Darwin where
745 - # -shared is not a valid linker argument
746 - if [[ ${CHOST} != *-darwin* ]]; then
747 - append-ldflags -shared
748 - fi
749 -
750 - # only one fortran to link with:
751 - # linking with cblas and lapack library will force
752 - # autodetecting and linking to all available fortran compilers
753 - append-fflags -fPIC
754 - if use lapack; then
755 - NUMPY_FCONFIG="config_fc --noopt --noarch"
756 - # workaround bug 335908
757 - [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
758 - fi
759 -
760 - # don't version f2py, we will handle it.
761 - sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
762 -
763 - distutils-r1_python_prepare_all
764 -}
765 -
766 -python_compile() {
767 - export MAKEOPTS=-j1 #660754
768 -
769 - local python_makeopts_jobs=""
770 - python_is_python3 || python_makeopts_jobs="-j $(makeopts_jobs)"
771 - distutils-r1_python_compile \
772 - ${python_makeopts_jobs} \
773 - ${NUMPY_FCONFIG}
774 -}
775 -
776 -python_test() {
777 - distutils_install_for_testing --single-version-externally-managed --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
778 -
779 - cd "${TMPDIR}" || die
780 -
781 - ${EPYTHON} -c "
782 -import numpy, sys
783 -r = numpy.test(label='full', verbose=3)
784 -sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}"
785 -}
786 -
787 -python_install() {
788 - distutils-r1_python_install ${NUMPY_FCONFIG}
789 -}
790 -
791 -python_install_all() {
792 - local DOCS=( THANKS.txt )
793 -
794 - if use doc; then
795 - local HTML_DOCS=( "${WORKDIR}"/html/. )
796 - DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf )
797 - fi
798 -
799 - distutils-r1_python_install_all
800 -}