Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/numpy/
Date: Fri, 01 Jan 2021 00:14:30
Message-Id: 1609460056.b7adab86ec329c253a3df5ce50da2ee04301a5d1.mgorny@gentoo
1 commit: b7adab86ec329c253a3df5ce50da2ee04301a5d1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 00:05:59 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 00:14:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7adab86
7
8 dev-python/numpy: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/numpy/Manifest | 2 -
13 dev-python/numpy/numpy-1.19.0.ebuild | 145 -----------------------------------
14 dev-python/numpy/numpy-1.19.1.ebuild | 145 -----------------------------------
15 3 files changed, 292 deletions(-)
16
17 diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest
18 index 76e9d36d51d..760e5530948 100644
19 --- a/dev-python/numpy/Manifest
20 +++ b/dev-python/numpy/Manifest
21 @@ -1,5 +1,3 @@
22 -DIST numpy-1.19.0.zip 7296082 BLAKE2B e388a1b8aa8fa5e23b57c69c5aa5f2b7b286a69fca6007843adbfa374d541ace7875757a302e851bc41194f565390b52777fff13da8166e7a2c6b0a0f3efd29c SHA512 24f8847ff6b72dd44db197fbd80596677f9f3c5afcc87f30c41a4c0a2ccd4ee652ca630a537997ba8fe68c4919fa488e9d8cadd9a310e5356b017f6086055850
23 -DIST numpy-1.19.1.zip 7301568 BLAKE2B f7c17666d8cd4f477d7946be383d2ff1656c412e23dc49c55f94a6fcb95a6cffe6b4958169b1b27e027a7d674feb96de979d8bba4f1e3d9daef9b72e7f48cafa SHA512 ddc5f5e262d6f7f6e1a8879165860427baa237b6aad5b09d5b943a36bb0d5922424aac4c0e32a2cc3e14087bf6eb671988b6ff6df0d9ab8c89724e093220eead
24 DIST numpy-1.19.2.zip 7310530 BLAKE2B a019c64809bd61071a4dd5e10c2cdf6927f392ebe58b45a08529295079bca68a683502aba89847578e122271d2fa4ea6d2d5461f1e58322f550cda863d36125b SHA512 56ae348f08818e30b6675df7d41a2b03687af452d7a96356fccfce2994843c7b61918946381c3af25fe03f209413d0378ee691fc38d805491a12c464e49bb59c
25 DIST numpy-1.19.3.zip 7315638 BLAKE2B 77f5ab83bfc69fcdb1c1bc0735e46914619be9e8291eb8ded3d5fa98694080f5272692453803b3924b371611014655f4532c85126c29ce1a84a4b807371cbb17 SHA512 9595e5adbad5debc7edb9fe2d4c511111a92413b6c3e5086c7dfb2f68974c0493d2dd2cb1cb8b07486b1f4fbef324fbdfa54f80a4c4cab66215980a40440f79f
26 DIST numpy-1.19.4.zip 7315971 BLAKE2B 4809ad6aaf7f9893ea6ed4c2456f4827aa5728b9dba00ed4c8e517267dd299933ca6c9205e3e31ef61ba25a6c13dde32dbe7d268c2d54391bd532d368bb3c5e8 SHA512 ae8e6b2792022c147159a11188f9702fa9fa9c9707c834da4f21aa43752451509b0a5b8807d93dfa86dff7e95c127dab20e4f372336a66f25f9b56c2869a486f
27
28 diff --git a/dev-python/numpy/numpy-1.19.0.ebuild b/dev-python/numpy/numpy-1.19.0.ebuild
29 deleted file mode 100644
30 index 099367952cc..00000000000
31 --- a/dev-python/numpy/numpy-1.19.0.ebuild
32 +++ /dev/null
33 @@ -1,145 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -PYTHON_COMPAT=( python3_{6..9} )
40 -PYTHON_REQ_USE="threads(+)"
41 -
42 -FORTRAN_NEEDED=lapack
43 -
44 -DISTUTILS_USE_SETUPTOOLS=rdepend
45 -
46 -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs
47 -
48 -DOC_PV="1.16.4"
49 -DESCRIPTION="Fast array and numerical python library"
50 -HOMEPAGE="https://www.numpy.org"
51 -SRC_URI="
52 - mirror://pypi/${PN:0:1}/${PN}/${P}.zip
53 - doc? (
54 - https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip
55 - https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf
56 - https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf
57 - )"
58 -LICENSE="BSD"
59 -SLOT="0"
60 -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"
61 -IUSE="doc lapack"
62 -
63 -RDEPEND="
64 - lapack? (
65 - >=virtual/cblas-3.8
66 - >=virtual/lapack-3.8
67 - )
68 -"
69 -BDEPEND="
70 - ${RDEPEND}
71 - app-arch/unzip
72 - >=dev-python/cython-0.29.15[${PYTHON_USEDEP}]
73 - lapack? ( virtual/pkgconfig )
74 - test? (
75 - >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}]
76 - >=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
77 - >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}]
78 - )
79 -"
80 -
81 -PATCHES=(
82 - "${FILESDIR}"/${PN}-1.17.4-no-hardcode-blasv2.patch
83 -)
84 -
85 -distutils_enable_tests pytest
86 -
87 -src_unpack() {
88 - default
89 - if use doc; then
90 - unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die
91 - fi
92 -}
93 -
94 -python_prepare_all() {
95 - if use lapack; then
96 - local incdir="${EPREFIX}"/usr/include
97 - local libdir="${EPREFIX}"/usr/$(get_libdir)
98 - cat >> site.cfg <<-EOF || die
99 - [blas]
100 - include_dirs = ${incdir}
101 - library_dirs = ${libdir}
102 - blas_libs = cblas,blas
103 - [lapack]
104 - library_dirs = ${libdir}
105 - lapack_libs = lapack
106 - EOF
107 - else
108 - export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
109 - fi
110 -
111 - export CC="$(tc-getCC) ${CFLAGS}"
112 -
113 - append-flags -fno-strict-aliasing
114 -
115 - # See progress in http://projects.scipy.org/scipy/numpy/ticket/573
116 - # with the subtle difference that we don't want to break Darwin where
117 - # -shared is not a valid linker argument
118 - if [[ ${CHOST} != *-darwin* ]]; then
119 - append-ldflags -shared
120 - fi
121 -
122 - # only one fortran to link with:
123 - # linking with cblas and lapack library will force
124 - # autodetecting and linking to all available fortran compilers
125 - append-fflags -fPIC
126 - if use lapack; then
127 - NUMPY_FCONFIG="config_fc --noopt --noarch"
128 - # workaround bug 335908
129 - [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
130 - fi
131 -
132 - # don't version f2py, we will handle it.
133 - sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
134 -
135 - # disable fuzzed tests
136 - find numpy/*/tests -name '*.py' -exec sed -i \
137 - -e 's:def \(.*_fuzz\):def _\1:' {} + || die
138 - # very memory- and disk-hungry
139 - sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die
140 -
141 - distutils-r1_python_prepare_all
142 -}
143 -
144 -python_compile() {
145 - export MAKEOPTS=-j1 #660754
146 -
147 - distutils-r1_python_compile ${NUMPY_FCONFIG}
148 -}
149 -
150 -python_test() {
151 - distutils_install_for_testing --single-version-externally-managed \
152 - --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
153 -
154 - cd "${TMPDIR}" || die
155 -
156 - "${EPYTHON}" -c "
157 -import numpy, sys
158 -r = numpy.test(label='full', verbose=3)
159 -sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}"
160 -}
161 -
162 -python_install() {
163 - # https://github.com/numpy/numpy/issues/16005
164 - local mydistutilsargs=( build_src )
165 - distutils-r1_python_install ${NUMPY_FCONFIG}
166 - python_optimize
167 -}
168 -
169 -python_install_all() {
170 - local DOCS=( LICENSE.txt README.md 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.19.1.ebuild b/dev-python/numpy/numpy-1.19.1.ebuild
181 deleted file mode 100644
182 index 6489c02f0d1..00000000000
183 --- a/dev-python/numpy/numpy-1.19.1.ebuild
184 +++ /dev/null
185 @@ -1,145 +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..9} )
192 -PYTHON_REQ_USE="threads(+)"
193 -
194 -FORTRAN_NEEDED=lapack
195 -
196 -DISTUTILS_USE_SETUPTOOLS=rdepend
197 -
198 -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs
199 -
200 -DOC_PV="1.16.4"
201 -DESCRIPTION="Fast array and numerical python library"
202 -HOMEPAGE="https://www.numpy.org"
203 -SRC_URI="
204 - mirror://pypi/${PN:0:1}/${PN}/${P}.zip
205 - doc? (
206 - https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip
207 - https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf
208 - https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf
209 - )"
210 -LICENSE="BSD"
211 -SLOT="0"
212 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
213 -IUSE="doc lapack"
214 -
215 -RDEPEND="
216 - lapack? (
217 - >=virtual/cblas-3.8
218 - >=virtual/lapack-3.8
219 - )
220 -"
221 -BDEPEND="
222 - ${RDEPEND}
223 - app-arch/unzip
224 - >=dev-python/cython-0.29.21[${PYTHON_USEDEP}]
225 - lapack? ( virtual/pkgconfig )
226 - test? (
227 - >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}]
228 - >=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
229 - >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}]
230 - )
231 -"
232 -
233 -PATCHES=(
234 - "${FILESDIR}"/${PN}-1.17.4-no-hardcode-blasv2.patch
235 -)
236 -
237 -distutils_enable_tests pytest
238 -
239 -src_unpack() {
240 - default
241 - if use doc; then
242 - unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die
243 - fi
244 -}
245 -
246 -python_prepare_all() {
247 - if use lapack; then
248 - local incdir="${EPREFIX}"/usr/include
249 - local libdir="${EPREFIX}"/usr/$(get_libdir)
250 - cat >> site.cfg <<-EOF || die
251 - [blas]
252 - include_dirs = ${incdir}
253 - library_dirs = ${libdir}
254 - blas_libs = cblas,blas
255 - [lapack]
256 - library_dirs = ${libdir}
257 - lapack_libs = lapack
258 - EOF
259 - else
260 - export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
261 - fi
262 -
263 - export CC="$(tc-getCC) ${CFLAGS}"
264 -
265 - append-flags -fno-strict-aliasing
266 -
267 - # See progress in http://projects.scipy.org/scipy/numpy/ticket/573
268 - # with the subtle difference that we don't want to break Darwin where
269 - # -shared is not a valid linker argument
270 - if [[ ${CHOST} != *-darwin* ]]; then
271 - append-ldflags -shared
272 - fi
273 -
274 - # only one fortran to link with:
275 - # linking with cblas and lapack library will force
276 - # autodetecting and linking to all available fortran compilers
277 - append-fflags -fPIC
278 - if use lapack; then
279 - NUMPY_FCONFIG="config_fc --noopt --noarch"
280 - # workaround bug 335908
281 - [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
282 - fi
283 -
284 - # don't version f2py, we will handle it.
285 - sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
286 -
287 - # disable fuzzed tests
288 - find numpy/*/tests -name '*.py' -exec sed -i \
289 - -e 's:def \(.*_fuzz\):def _\1:' {} + || die
290 - # very memory- and disk-hungry
291 - sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die
292 -
293 - distutils-r1_python_prepare_all
294 -}
295 -
296 -python_compile() {
297 - export MAKEOPTS=-j1 #660754
298 -
299 - distutils-r1_python_compile ${NUMPY_FCONFIG}
300 -}
301 -
302 -python_test() {
303 - distutils_install_for_testing --single-version-externally-managed \
304 - --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
305 -
306 - cd "${TMPDIR}" || die
307 -
308 - "${EPYTHON}" -c "
309 -import numpy, sys
310 -r = numpy.test(label='full', verbose=3)
311 -sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}"
312 -}
313 -
314 -python_install() {
315 - # https://github.com/numpy/numpy/issues/16005
316 - local mydistutilsargs=( build_src )
317 - distutils-r1_python_install ${NUMPY_FCONFIG}
318 - python_optimize
319 -}
320 -
321 -python_install_all() {
322 - local DOCS=( LICENSE.txt README.md THANKS.txt )
323 -
324 - if use doc; then
325 - local HTML_DOCS=( "${WORKDIR}"/html/. )
326 - DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf )
327 - fi
328 -
329 - distutils-r1_python_install_all
330 -}