1 |
commit: f4ee7c1bbaaca8f1d78edf146482dd6bdcd7bb23 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 28 18:11:34 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 28 18:11:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4ee7c1b |
7 |
|
8 |
dev-python/numpy: [QA] Remove erroneously stabled versions |
9 |
|
10 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/14486 |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
dev-python/numpy/numpy-1.17.4-r1.ebuild | 154 ------------------------------- |
16 |
dev-python/numpy/numpy-1.17.4.ebuild | 157 -------------------------------- |
17 |
2 files changed, 311 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/numpy/numpy-1.17.4-r1.ebuild b/dev-python/numpy/numpy-1.17.4-r1.ebuild |
20 |
deleted file mode 100644 |
21 |
index 5181cd471a0..00000000000 |
22 |
--- a/dev-python/numpy/numpy-1.17.4-r1.ebuild |
23 |
+++ /dev/null |
24 |
@@ -1,154 +0,0 @@ |
25 |
-# Copyright 1999-2020 Gentoo Authors |
26 |
-# Distributed under the terms of the GNU General Public License v2 |
27 |
- |
28 |
-EAPI=7 |
29 |
- |
30 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
31 |
-PYTHON_REQ_USE="threads(+)" |
32 |
- |
33 |
-FORTRAN_NEEDED=lapack |
34 |
- |
35 |
-inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs |
36 |
- |
37 |
-DOC_PV="1.16.4" |
38 |
-DESCRIPTION="Fast array and numerical python library" |
39 |
-HOMEPAGE="https://www.numpy.org" |
40 |
-SRC_URI=" |
41 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
42 |
- doc? ( |
43 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
44 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
45 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
46 |
- )" |
47 |
-LICENSE="BSD" |
48 |
-SLOT="0" |
49 |
-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" |
50 |
-IUSE="doc lapack test" |
51 |
-RESTRICT="!test? ( test )" |
52 |
- |
53 |
-RDEPEND=" |
54 |
- lapack? ( |
55 |
- virtual/cblas |
56 |
- virtual/lapack |
57 |
- )" |
58 |
-DEPEND="${RDEPEND}" |
59 |
-BDEPEND="app-arch/unzip |
60 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
61 |
- lapack? ( virtual/pkgconfig ) |
62 |
- test? ( |
63 |
- dev-python/pytest[${PYTHON_USEDEP}] |
64 |
- )" |
65 |
- |
66 |
-PATCHES=( |
67 |
- "${FILESDIR}"/${PN}-1.17.4-no-hardcode-blasv2.patch |
68 |
-) |
69 |
- |
70 |
-src_unpack() { |
71 |
- default |
72 |
- if use doc; then |
73 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
74 |
- fi |
75 |
-} |
76 |
- |
77 |
-pc_incdir() { |
78 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
79 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
80 |
-} |
81 |
- |
82 |
-pc_libdir() { |
83 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
84 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
85 |
-} |
86 |
- |
87 |
-pc_libs() { |
88 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
89 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
90 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
91 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
92 |
-} |
93 |
- |
94 |
-python_prepare_all() { |
95 |
- if use lapack; then |
96 |
- append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
97 |
- local incdir="${EPREFIX}"/usr/include |
98 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
99 |
- cat >> site.cfg <<-EOF || die |
100 |
- [blas] |
101 |
- blas_libs = $(pc_libs cblas blas) |
102 |
- [lapack] |
103 |
- lapack_libs = $(pc_libs lapack) |
104 |
- EOF |
105 |
- else |
106 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
107 |
- fi |
108 |
- |
109 |
- export CC="$(tc-getCC) ${CFLAGS}" |
110 |
- |
111 |
- append-flags -fno-strict-aliasing |
112 |
- |
113 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
114 |
- # with the subtle difference that we don't want to break Darwin where |
115 |
- # -shared is not a valid linker argument |
116 |
- if [[ ${CHOST} != *-darwin* ]]; then |
117 |
- append-ldflags -shared |
118 |
- fi |
119 |
- |
120 |
- # only one fortran to link with: |
121 |
- # linking with cblas and lapack library will force |
122 |
- # autodetecting and linking to all available fortran compilers |
123 |
- append-fflags -fPIC |
124 |
- if use lapack; then |
125 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
126 |
- # workaround bug 335908 |
127 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
128 |
- fi |
129 |
- |
130 |
- # don't version f2py, we will handle it. |
131 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
132 |
- |
133 |
- # disable fuzzed tests |
134 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
135 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
136 |
- # very memory- and disk-hungry |
137 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
138 |
- |
139 |
- distutils-r1_python_prepare_all |
140 |
-} |
141 |
- |
142 |
-python_compile() { |
143 |
- export MAKEOPTS=-j1 #660754 |
144 |
- |
145 |
- local python_makeopts_jobs="" |
146 |
- python_is_python3 || python_makeopts_jobs="-j $(makeopts_jobs)" |
147 |
- distutils-r1_python_compile \ |
148 |
- ${python_makeopts_jobs} \ |
149 |
- ${NUMPY_FCONFIG} |
150 |
-} |
151 |
- |
152 |
-python_test() { |
153 |
- distutils_install_for_testing --single-version-externally-managed \ |
154 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
155 |
- |
156 |
- cd "${TMPDIR}" || die |
157 |
- |
158 |
- "${EPYTHON}" -c " |
159 |
-import numpy, sys |
160 |
-r = numpy.test(label='full', verbose=3) |
161 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
162 |
-} |
163 |
- |
164 |
-python_install() { |
165 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
166 |
- python_optimize |
167 |
-} |
168 |
- |
169 |
-python_install_all() { |
170 |
- local DOCS=( THANKS.txt ) |
171 |
- |
172 |
- if use doc; then |
173 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
174 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
175 |
- fi |
176 |
- |
177 |
- distutils-r1_python_install_all |
178 |
-} |
179 |
|
180 |
diff --git a/dev-python/numpy/numpy-1.17.4.ebuild b/dev-python/numpy/numpy-1.17.4.ebuild |
181 |
deleted file mode 100644 |
182 |
index 3db67281f36..00000000000 |
183 |
--- a/dev-python/numpy/numpy-1.17.4.ebuild |
184 |
+++ /dev/null |
185 |
@@ -1,157 +0,0 @@ |
186 |
-# Copyright 1999-2020 Gentoo Authors |
187 |
-# Distributed under the terms of the GNU General Public License v2 |
188 |
- |
189 |
-EAPI=7 |
190 |
- |
191 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
192 |
-PYTHON_REQ_USE="threads(+)" |
193 |
- |
194 |
-FORTRAN_NEEDED=lapack |
195 |
- |
196 |
-inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs |
197 |
- |
198 |
-DOC_PV="1.16.4" |
199 |
-DESCRIPTION="Fast array and numerical python library" |
200 |
-HOMEPAGE="https://www.numpy.org" |
201 |
-SRC_URI=" |
202 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.zip |
203 |
- doc? ( |
204 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip |
205 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf |
206 |
- https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf |
207 |
- )" |
208 |
-LICENSE="BSD" |
209 |
-SLOT="0" |
210 |
-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" |
211 |
-IUSE="doc lapack test" |
212 |
-RESTRICT="!test? ( test )" |
213 |
- |
214 |
-RDEPEND=" |
215 |
- lapack? ( |
216 |
- virtual/cblas |
217 |
- virtual/lapack |
218 |
- )" |
219 |
-DEPEND="${RDEPEND}" |
220 |
-BDEPEND="app-arch/unzip |
221 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
222 |
- lapack? ( virtual/pkgconfig ) |
223 |
- test? ( |
224 |
- dev-python/pytest[${PYTHON_USEDEP}] |
225 |
- )" |
226 |
- |
227 |
-PATCHES=( |
228 |
- "${FILESDIR}"/${PN}-1.17.4-no-hardcode-blas.patch |
229 |
-) |
230 |
- |
231 |
-src_unpack() { |
232 |
- default |
233 |
- if use doc; then |
234 |
- unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die |
235 |
- fi |
236 |
-} |
237 |
- |
238 |
-pc_incdir() { |
239 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
240 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
241 |
-} |
242 |
- |
243 |
-pc_libdir() { |
244 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
245 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
246 |
-} |
247 |
- |
248 |
-pc_libs() { |
249 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
250 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
251 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
252 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
253 |
-} |
254 |
- |
255 |
-python_prepare_all() { |
256 |
- if use lapack; then |
257 |
- append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
258 |
- local incdir="${EPREFIX}"/usr/include |
259 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
260 |
- cat >> site.cfg <<-EOF || die |
261 |
- [blas] |
262 |
- include_dirs = $(pc_incdir cblas):${incdir} |
263 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
264 |
- blas_libs = $(pc_libs cblas blas) |
265 |
- [lapack] |
266 |
- library_dirs = $(pc_libdir lapack):${libdir} |
267 |
- lapack_libs = $(pc_libs lapack) |
268 |
- EOF |
269 |
- else |
270 |
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
271 |
- fi |
272 |
- |
273 |
- export CC="$(tc-getCC) ${CFLAGS}" |
274 |
- |
275 |
- append-flags -fno-strict-aliasing |
276 |
- |
277 |
- # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
278 |
- # with the subtle difference that we don't want to break Darwin where |
279 |
- # -shared is not a valid linker argument |
280 |
- if [[ ${CHOST} != *-darwin* ]]; then |
281 |
- append-ldflags -shared |
282 |
- fi |
283 |
- |
284 |
- # only one fortran to link with: |
285 |
- # linking with cblas and lapack library will force |
286 |
- # autodetecting and linking to all available fortran compilers |
287 |
- append-fflags -fPIC |
288 |
- if use lapack; then |
289 |
- NUMPY_FCONFIG="config_fc --noopt --noarch" |
290 |
- # workaround bug 335908 |
291 |
- [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
292 |
- fi |
293 |
- |
294 |
- # don't version f2py, we will handle it. |
295 |
- sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die |
296 |
- |
297 |
- # disable fuzzed tests |
298 |
- find numpy/*/tests -name '*.py' -exec sed -i \ |
299 |
- -e 's:def \(.*_fuzz\):def _\1:' {} + || die |
300 |
- # very memory- and disk-hungry |
301 |
- sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die |
302 |
- |
303 |
- distutils-r1_python_prepare_all |
304 |
-} |
305 |
- |
306 |
-python_compile() { |
307 |
- export MAKEOPTS=-j1 #660754 |
308 |
- |
309 |
- local python_makeopts_jobs="" |
310 |
- python_is_python3 || python_makeopts_jobs="-j $(makeopts_jobs)" |
311 |
- distutils-r1_python_compile \ |
312 |
- ${python_makeopts_jobs} \ |
313 |
- ${NUMPY_FCONFIG} |
314 |
-} |
315 |
- |
316 |
-python_test() { |
317 |
- distutils_install_for_testing --single-version-externally-managed \ |
318 |
- --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} |
319 |
- |
320 |
- cd "${TMPDIR}" || die |
321 |
- |
322 |
- "${EPYTHON}" -c " |
323 |
-import numpy, sys |
324 |
-r = numpy.test(label='full', verbose=3) |
325 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
326 |
-} |
327 |
- |
328 |
-python_install() { |
329 |
- distutils-r1_python_install ${NUMPY_FCONFIG} |
330 |
- python_optimize |
331 |
-} |
332 |
- |
333 |
-python_install_all() { |
334 |
- local DOCS=( THANKS.txt ) |
335 |
- |
336 |
- if use doc; then |
337 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
338 |
- DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf ) |
339 |
- fi |
340 |
- |
341 |
- distutils-r1_python_install_all |
342 |
-} |