1 |
commit: 73587b0581ba0e2209399e08c30fdc015d5cf299 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 10:10:15 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 10:13:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73587b05 |
7 |
|
8 |
dev-python/numpy: Remove old (finally!) |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/numpy/Manifest | 2 - |
13 |
.../files/numpy-1.15.4-no-hardcode-blas.patch | 76 ---------- |
14 |
...-1.16.5-setup.py-install-skip-build-fails.patch | 23 --- |
15 |
dev-python/numpy/numpy-1.16.5-r1.ebuild | 159 --------------------- |
16 |
dev-python/numpy/numpy-1.17.4-r3.ebuild | 137 ------------------ |
17 |
5 files changed, 397 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest |
20 |
index de57d6601e0..67d4a3a8e30 100644 |
21 |
--- a/dev-python/numpy/Manifest |
22 |
+++ b/dev-python/numpy/Manifest |
23 |
@@ -1,5 +1,3 @@ |
24 |
-DIST numpy-1.16.5.zip 5138208 BLAKE2B f5511650e66939a6ce21cfad7874aecdeb6c07a70b32419a808956e42c7819d82bb364f1632da91b4d8a5237001c8ae3cbdcac10651fa0acca9558bdeafb5437 SHA512 6dd790ff57fdb7e7b0bddb47ea2b70b2667edefe632548ec68934e12a16af4a51bed9726e495c4993aad4c448dc4a204d0a087577d43dcfc9fa0164eb1d4b898 |
25 |
-DIST numpy-1.17.4.zip 6366657 BLAKE2B 89f729bb0740fa721dfe8d1165094a96302fde1e8c272689c11cb4a9bb39d11afaf6eda3ded8a370333b47b9d1ee25e8cb0a602c8cf44964612342c50ea5824f SHA512 f3264be7152437d71718da4728222962013ebd7fe02288d5063f1c763d1c4eee26485c27e8088f4dff79a4d491bc9f191849748c6007d093d22e89c6bff317f3 |
26 |
DIST numpy-1.19.0.zip 7296082 BLAKE2B e388a1b8aa8fa5e23b57c69c5aa5f2b7b286a69fca6007843adbfa374d541ace7875757a302e851bc41194f565390b52777fff13da8166e7a2c6b0a0f3efd29c SHA512 24f8847ff6b72dd44db197fbd80596677f9f3c5afcc87f30c41a4c0a2ccd4ee652ca630a537997ba8fe68c4919fa488e9d8cadd9a310e5356b017f6086055850 |
27 |
DIST numpy-1.19.1.zip 7301568 BLAKE2B f7c17666d8cd4f477d7946be383d2ff1656c412e23dc49c55f94a6fcb95a6cffe6b4958169b1b27e027a7d674feb96de979d8bba4f1e3d9daef9b72e7f48cafa SHA512 ddc5f5e262d6f7f6e1a8879165860427baa237b6aad5b09d5b943a36bb0d5922424aac4c0e32a2cc3e14087bf6eb671988b6ff6df0d9ab8c89724e093220eead |
28 |
DIST numpy-1.19.2.zip 7310530 BLAKE2B a019c64809bd61071a4dd5e10c2cdf6927f392ebe58b45a08529295079bca68a683502aba89847578e122271d2fa4ea6d2d5461f1e58322f550cda863d36125b SHA512 56ae348f08818e30b6675df7d41a2b03687af452d7a96356fccfce2994843c7b61918946381c3af25fe03f209413d0378ee691fc38d805491a12c464e49bb59c |
29 |
|
30 |
diff --git a/dev-python/numpy/files/numpy-1.15.4-no-hardcode-blas.patch b/dev-python/numpy/files/numpy-1.15.4-no-hardcode-blas.patch |
31 |
deleted file mode 100644 |
32 |
index 979b56bd6dc..00000000000 |
33 |
--- a/dev-python/numpy/files/numpy-1.15.4-no-hardcode-blas.patch |
34 |
+++ /dev/null |
35 |
@@ -1,76 +0,0 @@ |
36 |
-diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py |
37 |
-index 65d7de316..a85640d30 100644 |
38 |
---- a/numpy/distutils/system_info.py |
39 |
-+++ b/numpy/distutils/system_info.py |
40 |
-@@ -364,29 +364,7 @@ def get_info(name, notfound_action=0): |
41 |
- 1 - display warning message |
42 |
- 2 - raise error |
43 |
- """ |
44 |
-- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead |
45 |
-- 'atlas_threads': atlas_threads_info, # ditto |
46 |
-- 'atlas_blas': atlas_blas_info, |
47 |
-- 'atlas_blas_threads': atlas_blas_threads_info, |
48 |
-- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead |
49 |
-- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto |
50 |
-- 'atlas_3_10': atlas_3_10_info, # use lapack_opt or blas_opt instead |
51 |
-- 'atlas_3_10_threads': atlas_3_10_threads_info, # ditto |
52 |
-- 'atlas_3_10_blas': atlas_3_10_blas_info, |
53 |
-- 'atlas_3_10_blas_threads': atlas_3_10_blas_threads_info, |
54 |
-- 'lapack_atlas_3_10': lapack_atlas_3_10_info, # use lapack_opt instead |
55 |
-- 'lapack_atlas_3_10_threads': lapack_atlas_3_10_threads_info, # ditto |
56 |
-- 'mkl': mkl_info, |
57 |
-- # openblas which may or may not have embedded lapack |
58 |
-- 'openblas': openblas_info, # use blas_opt instead |
59 |
-- # openblas with embedded lapack |
60 |
-- 'openblas_lapack': openblas_lapack_info, # use blas_opt instead |
61 |
-- 'openblas_clapack': openblas_clapack_info, # use blas_opt instead |
62 |
-- 'blis': blis_info, # use blas_opt instead |
63 |
-- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead |
64 |
-- 'blas_mkl': blas_mkl_info, # use blas_opt instead |
65 |
-- 'accelerate': accelerate_info, # use blas_opt instead |
66 |
-- 'x11': x11_info, |
67 |
-+ cl = {'x11': x11_info, |
68 |
- 'fft_opt': fft_opt_info, |
69 |
- 'fftw': fftw_info, |
70 |
- 'fftw2': fftw2_info, |
71 |
-@@ -731,10 +709,7 @@ class system_info(object): |
72 |
- return [b for b in [a.strip() for a in libs.split(',')] if b] |
73 |
- |
74 |
- def get_libraries(self, key='libraries'): |
75 |
-- if hasattr(self, '_lib_names'): |
76 |
-- return self.get_libs(key, default=self._lib_names) |
77 |
-- else: |
78 |
-- return self.get_libs(key, '') |
79 |
-+ return self.get_libs(key, '') |
80 |
- |
81 |
- def library_extensions(self): |
82 |
- c = customized_ccompiler() |
83 |
-@@ -1685,7 +1660,7 @@ class blas_info(system_info): |
84 |
- lib = self.has_cblas(info) |
85 |
- if lib is not None: |
86 |
- info['language'] = 'c' |
87 |
-- info['libraries'] = [lib] |
88 |
-+ info['libraries'] = lib |
89 |
- info['define_macros'] = [('HAVE_CBLAS', None)] |
90 |
- self.set_info(**info) |
91 |
- |
92 |
-@@ -1717,16 +1692,16 @@ class blas_info(system_info): |
93 |
- # check for cblas lib, and if not present check for blas lib. |
94 |
- try: |
95 |
- c.link_executable(obj, os.path.join(tmpdir, "a.out"), |
96 |
-- libraries=["cblas"], |
97 |
-+ libraries=info["libraries"], |
98 |
- library_dirs=info['library_dirs'], |
99 |
- extra_postargs=info.get('extra_link_args', [])) |
100 |
-- res = "cblas" |
101 |
-+ res = info["libraries"] |
102 |
- except distutils.ccompiler.LinkError: |
103 |
- c.link_executable(obj, os.path.join(tmpdir, "a.out"), |
104 |
- libraries=["blas"], |
105 |
- library_dirs=info['library_dirs'], |
106 |
- extra_postargs=info.get('extra_link_args', [])) |
107 |
-- res = "blas" |
108 |
-+ res = ["blas"] |
109 |
- except distutils.ccompiler.CompileError: |
110 |
- res = None |
111 |
- finally: |
112 |
|
113 |
diff --git a/dev-python/numpy/files/numpy-1.16.5-setup.py-install-skip-build-fails.patch b/dev-python/numpy/files/numpy-1.16.5-setup.py-install-skip-build-fails.patch |
114 |
deleted file mode 100644 |
115 |
index aa141de27f4..00000000000 |
116 |
--- a/dev-python/numpy/files/numpy-1.16.5-setup.py-install-skip-build-fails.patch |
117 |
+++ /dev/null |
118 |
@@ -1,23 +0,0 @@ |
119 |
-From b8e741c66f71071c3406e592e1537570731bcb35 Mon Sep 17 00:00:00 2001 |
120 |
-From: mattip <matti.picus@×××××.com> |
121 |
-Date: Sun, 26 May 2019 08:55:53 +0300 |
122 |
-Subject: [PATCH] BUG: setup.py install --skip-build fails |
123 |
- |
124 |
---- |
125 |
- numpy/distutils/command/install_clib.py | 3 +++ |
126 |
- 1 file changed, 3 insertions(+) |
127 |
- |
128 |
-diff --git a/numpy/distutils/command/install_clib.py b/numpy/distutils/command/install_clib.py |
129 |
-index 662aa00bda9..6a73f7e3308 100644 |
130 |
---- a/numpy/distutils/command/install_clib.py |
131 |
-+++ b/numpy/distutils/command/install_clib.py |
132 |
-@@ -19,6 +19,9 @@ def finalize_options(self): |
133 |
- |
134 |
- def run (self): |
135 |
- build_clib_cmd = get_cmd("build_clib") |
136 |
-+ if not build_clib_cmd.build_clib: |
137 |
-+ # can happen if the user specified `--skip-build` |
138 |
-+ build_clib_cmd.finalize_options() |
139 |
- build_dir = build_clib_cmd.build_clib |
140 |
- |
141 |
- # We need the compiler to get the library name -> filename association |
142 |
|
143 |
diff --git a/dev-python/numpy/numpy-1.16.5-r1.ebuild b/dev-python/numpy/numpy-1.16.5-r1.ebuild |
144 |
deleted file mode 100644 |
145 |
index 76d73afe826..00000000000 |
146 |
--- a/dev-python/numpy/numpy-1.16.5-r1.ebuild |
147 |
+++ /dev/null |
148 |
@@ -1,159 +0,0 @@ |
149 |
-# Copyright 1999-2020 Gentoo Authors |
150 |
-# Distributed under the terms of the GNU General Public License v2 |
151 |
- |
152 |
-EAPI="7" |
153 |
- |
154 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} ) |
155 |
-PYTHON_REQ_USE="threads(+)" |
156 |
- |
157 |
-FORTRAN_NEEDED=lapack |
158 |
- |
159 |
-inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs |
160 |
- |
161 |
-DOC_PV="1.16.4" |
162 |
-DESCRIPTION="Fast array and numerical python library" |
163 |
-HOMEPAGE="https://www.numpy.org" |
164 |
-SRC_URI=" |
165 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
166 |
- doc? ( |
167 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
168 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
169 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
170 |
- )" |
171 |
-LICENSE="BSD" |
172 |
-SLOT="0" |
173 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
174 |
-IUSE="doc lapack test" |
175 |
-RESTRICT="!test? ( test )" |
176 |
- |
177 |
-RDEPEND=" |
178 |
- lapack? ( |
179 |
- virtual/cblas |
180 |
- virtual/lapack |
181 |
- )" |
182 |
-DEPEND="${RDEPEND}" |
183 |
-BDEPEND="app-arch/unzip |
184 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
185 |
- lapack? ( virtual/pkgconfig ) |
186 |
- test? ( |
187 |
- dev-python/pytest[${PYTHON_USEDEP}] |
188 |
- )" |
189 |
- |
190 |
-PATCHES=( |
191 |
- "${FILESDIR}"/${PN}-1.15.4-no-hardcode-blas.patch |
192 |
- "${FILESDIR}"/numpy-1.16.5-setup.py-install-skip-build-fails.patch |
193 |
-) |
194 |
- |
195 |
-src_unpack() { |
196 |
- default |
197 |
- if use doc; then |
198 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
199 |
- fi |
200 |
-} |
201 |
- |
202 |
-pc_incdir() { |
203 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
204 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
205 |
-} |
206 |
- |
207 |
-pc_libdir() { |
208 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
209 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
210 |
-} |
211 |
- |
212 |
-pc_libs() { |
213 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
214 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
215 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
216 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
217 |
-} |
218 |
- |
219 |
-python_prepare_all() { |
220 |
- if use lapack; then |
221 |
- append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
222 |
- local incdir="${EPREFIX}"/usr/include |
223 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
224 |
- cat >> site.cfg <<-EOF || die |
225 |
- [blas] |
226 |
- include_dirs = $(pc_incdir cblas):${incdir} |
227 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
228 |
- blas_libs = $(pc_libs cblas blas) |
229 |
- [lapack] |
230 |
- library_dirs = $(pc_libdir lapack):${libdir} |
231 |
- lapack_libs = $(pc_libs lapack) |
232 |
- EOF |
233 |
- else |
234 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
235 |
- fi |
236 |
- |
237 |
- export CC="$(tc-getCC) ${CFLAGS}" |
238 |
- |
239 |
- append-flags -fno-strict-aliasing |
240 |
- |
241 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
242 |
- # with the subtle difference that we don't want to break Darwin where |
243 |
- # -shared is not a valid linker argument |
244 |
- if [[ ${CHOST} != *-darwin* ]]; then |
245 |
- append-ldflags -shared |
246 |
- fi |
247 |
- |
248 |
- # only one fortran to link with: |
249 |
- # linking with cblas and lapack library will force |
250 |
- # autodetecting and linking to all available fortran compilers |
251 |
- append-fflags -fPIC |
252 |
- if use lapack; then |
253 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
254 |
- # workaround bug 335908 |
255 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
256 |
- fi |
257 |
- |
258 |
- # don't version f2py, we will handle it. |
259 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
260 |
- |
261 |
- # disable fuzzed tests |
262 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
263 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
264 |
- # very memory- and disk-hungry |
265 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
266 |
- |
267 |
- distutils-r1_python_prepare_all |
268 |
-} |
269 |
- |
270 |
-python_compile() { |
271 |
- export MAKEOPTS=-j1 #660754 |
272 |
- |
273 |
- local python_makeopts_jobs="" |
274 |
- python_is_python3 || python_makeopts_jobs="-j $(makeopts_jobs)" |
275 |
- distutils-r1_python_compile \ |
276 |
- ${python_makeopts_jobs} \ |
277 |
- ${NUMPY_FCONFIG} |
278 |
-} |
279 |
- |
280 |
-python_test() { |
281 |
- distutils_install_for_testing --single-version-externally-managed \ |
282 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
283 |
- |
284 |
- cd "${TMPDIR}" || die |
285 |
- |
286 |
- "${EPYTHON}" -c " |
287 |
-import numpy, sys |
288 |
-r = numpy.test(label='full', verbose=3) |
289 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
290 |
-} |
291 |
- |
292 |
-python_install() { |
293 |
- # https://github.com/numpy/numpy/issues/16005 |
294 |
- local mydistutilsargs=( build_src ) |
295 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
296 |
-} |
297 |
- |
298 |
-python_install_all() { |
299 |
- local DOCS=( THANKS.txt ) |
300 |
- |
301 |
- if use doc; then |
302 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
303 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
304 |
- fi |
305 |
- |
306 |
- distutils-r1_python_install_all |
307 |
-} |
308 |
|
309 |
diff --git a/dev-python/numpy/numpy-1.17.4-r3.ebuild b/dev-python/numpy/numpy-1.17.4-r3.ebuild |
310 |
deleted file mode 100644 |
311 |
index 9a848fbc373..00000000000 |
312 |
--- a/dev-python/numpy/numpy-1.17.4-r3.ebuild |
313 |
+++ /dev/null |
314 |
@@ -1,137 +0,0 @@ |
315 |
-# Copyright 1999-2020 Gentoo Authors |
316 |
-# Distributed under the terms of the GNU General Public License v2 |
317 |
- |
318 |
-EAPI=7 |
319 |
- |
320 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
321 |
-PYTHON_REQ_USE="threads(+)" |
322 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
323 |
- |
324 |
-FORTRAN_NEEDED=lapack |
325 |
- |
326 |
-inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs |
327 |
- |
328 |
-DOC_PV="1.16.4" |
329 |
-DESCRIPTION="Fast array and numerical python library" |
330 |
-HOMEPAGE="https://www.numpy.org" |
331 |
-SRC_URI=" |
332 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
333 |
- doc? ( |
334 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
335 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
336 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
337 |
- )" |
338 |
-LICENSE="BSD" |
339 |
-SLOT="0" |
340 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 s390 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
341 |
-IUSE="doc lapack test" |
342 |
-RESTRICT="!test? ( test )" |
343 |
- |
344 |
-RDEPEND=" |
345 |
- lapack? ( |
346 |
- >=virtual/cblas-3.8 |
347 |
- >=virtual/lapack-3.8 |
348 |
- )" |
349 |
-DEPEND="${RDEPEND}" |
350 |
-BDEPEND="app-arch/unzip |
351 |
- lapack? ( virtual/pkgconfig ) |
352 |
- test? ( |
353 |
- dev-python/pytest[${PYTHON_USEDEP}] |
354 |
- )" |
355 |
- |
356 |
-PATCHES=( |
357 |
- "${FILESDIR}"/${PN}-1.17.4-no-hardcode-blasv2.patch |
358 |
-) |
359 |
- |
360 |
-src_unpack() { |
361 |
- default |
362 |
- if use doc; then |
363 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
364 |
- fi |
365 |
-} |
366 |
- |
367 |
-python_prepare_all() { |
368 |
- if use lapack; then |
369 |
- local incdir="${EPREFIX}"/usr/include |
370 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
371 |
- cat >> site.cfg <<-EOF || die |
372 |
- [blas] |
373 |
- include_dirs = ${incdir} |
374 |
- library_dirs = ${libdir} |
375 |
- blas_libs = cblas,blas |
376 |
- [lapack] |
377 |
- library_dirs = ${libdir} |
378 |
- lapack_libs = lapack |
379 |
- EOF |
380 |
- else |
381 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
382 |
- fi |
383 |
- |
384 |
- export CC="$(tc-getCC) ${CFLAGS}" |
385 |
- |
386 |
- append-flags -fno-strict-aliasing |
387 |
- |
388 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
389 |
- # with the subtle difference that we don't want to break Darwin where |
390 |
- # -shared is not a valid linker argument |
391 |
- if [[ ${CHOST} != *-darwin* ]]; then |
392 |
- append-ldflags -shared |
393 |
- fi |
394 |
- |
395 |
- # only one fortran to link with: |
396 |
- # linking with cblas and lapack library will force |
397 |
- # autodetecting and linking to all available fortran compilers |
398 |
- append-fflags -fPIC |
399 |
- if use lapack; then |
400 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
401 |
- # workaround bug 335908 |
402 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
403 |
- fi |
404 |
- |
405 |
- # don't version f2py, we will handle it. |
406 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
407 |
- |
408 |
- # disable fuzzed tests |
409 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
410 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
411 |
- # very memory- and disk-hungry |
412 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
413 |
- |
414 |
- distutils-r1_python_prepare_all |
415 |
-} |
416 |
- |
417 |
-python_compile() { |
418 |
- export MAKEOPTS=-j1 #660754 |
419 |
- |
420 |
- distutils-r1_python_compile ${NUMPY_FCONFIG} |
421 |
-} |
422 |
- |
423 |
-python_test() { |
424 |
- distutils_install_for_testing --single-version-externally-managed \ |
425 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
426 |
- |
427 |
- cd "${TMPDIR}" || die |
428 |
- |
429 |
- "${EPYTHON}" -c " |
430 |
-import numpy, sys |
431 |
-r = numpy.test(label='full', verbose=3) |
432 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
433 |
-} |
434 |
- |
435 |
-python_install() { |
436 |
- # https://github.com/numpy/numpy/issues/16005 |
437 |
- local mydistutilsargs=( build_src ) |
438 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
439 |
- python_optimize |
440 |
-} |
441 |
- |
442 |
-python_install_all() { |
443 |
- local DOCS=( THANKS.txt ) |
444 |
- |
445 |
- if use doc; then |
446 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
447 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
448 |
- fi |
449 |
- |
450 |
- distutils-r1_python_install_all |
451 |
-} |