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/scipy/
Date: Thu, 23 Dec 2021 22:47:03
Message-Id: 1640299474.3f76c06fc1e151b29f65d6cdafcfc4ee4f92d4b3.mgorny@gentoo
1 commit: 3f76c06fc1e151b29f65d6cdafcfc4ee4f92d4b3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 23 22:44:34 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 23 22:44:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f76c06f
7
8 dev-python/scipy: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/scipy/Manifest | 4 -
13 dev-python/scipy/scipy-1.6.2.ebuild | 155 ------------------------------
14 dev-python/scipy/scipy-1.7.2.ebuild | 185 ------------------------------------
15 3 files changed, 344 deletions(-)
16
17 diff --git a/dev-python/scipy/Manifest b/dev-python/scipy/Manifest
18 index ab7dc2d11b63..88d145b73116 100644
19 --- a/dev-python/scipy/Manifest
20 +++ b/dev-python/scipy/Manifest
21 @@ -1,11 +1,7 @@
22 -DIST scipy-1.6.2.tar.gz 27187804 BLAKE2B af3578bc029c3af548c04144d7405ac8e6f8e057f870394e124f24aea9989120275407e5a7fdd29fbe1019d2acc295c1ce00872461ecf3a325000e8817cd559f SHA512 18b03f32e8343c5a6c6148ac0bfd4b5f2cc9ff5f74d5d41761ae9e773d6af8774c7b09a3fcc47122864eccce1dbbc17e9325819885d3fc3ab2baf98e7d3befa4
23 DIST scipy-1.6.3.tar.gz 27187987 BLAKE2B 30f7171ca0dc0842f254472f4b52c0b0ad4389964a140cc4b94f9d85437c5a7da238c082be503242d433f1d3c65c3fd4afeb2f7831eea39ce303077406e718df SHA512 10ff25da84ce09ae231e781873902d8040d79868721d75a3f9facee177e7f46f7c9c34374feee6fe2253ddd968716d2993658ce514c4ac0c98d255c06a6ef808
24 DIST scipy-1.7.1.tar.gz 36102628 BLAKE2B 67a414d863c61bf419fa907b9bed53b57beedc20d71d0630fac9719f02e951ea79b893d0803b385936a7c04a6c2f723d3870f0498f71e3c210ccd6ee75a009dc SHA512 81fea7e4f5fbcd537d662273507b6ac75bd4cf900567da8083ac86fb06d9f96b010d01a1697db53211440f0fdb2d89510313bafd3d383284d0ab9a08311dd102
25 -DIST scipy-1.7.2.tar.gz 36104529 BLAKE2B 8e31a71e8cd69a83e1b60747a01e34f79e42664089a2c41aa263c1697a689464fde0b467063e0ae3bafa37721294a79e21d0eedc6023c1558aea6e0105aefeae SHA512 87596430571ff2a43f067eaaf3254c0841dac82b9152cb64040f1a4d9bc5429aebc31c619ce55d74727f2a79567dfef4acbc6252c24c46d3c8849f97e6e8cfef
26 DIST scipy-1.7.3.tar.gz 36102562 BLAKE2B 9a605a45d8f03aae3411a6fa92e32c7f6d10373455493ead847d4ad01429b55dbbc33c1a0309d6c9d76d3e9ab1a06772df59c08d393377896c4b534599f9eb9b SHA512 83fe00cf708a13a08d28af7022ec645d8976c177f2fefb56e0a47bfcbec726330b973d1f44364e23c939ae708e239a05904346f515ea1a37e8b70ad160b81cee
27 -DIST scipy-html-1.6.1.zip 23946591 BLAKE2B d3464c342b1d4f43e17e214c7557737913bf4131f88b9d569cff106c75dc7ebf0d065283792fddc189e2a3ddc322f1b2b4f38c6d313569f28395e79680060b58 SHA512 73561f9daa303c6e967f9b11952c6239dea7ff1a2fa02434354ac78fcffe7a552aa0f1043a17cb5c35a442def499eff199856cca8efa1415449cbf54f0d4913b
28 DIST scipy-html-1.6.2.zip 23947380 BLAKE2B e4616a157c037b0830fc32d23678fb7e8ebe023d1fd9f0f762695a0d93bc56e432e441e675ec3c7a7d6586a665f6127ce49d570f1716876e58afb402761f8e95 SHA512 119a2227a808c752a751bc7bec6463da739c68391ebac8d2451998d90ebe03b2af401adbf987f0b694244e715c0ef1fd86c2f4a36c48dbb1ff7cdf4d914875df
29 DIST scipy-html-1.7.1.zip 32435246 BLAKE2B fd8173da41aba95a14b1376f848bc668c4659bf1bbbdd0f87d926633d36f29c039957d38be145a5583010ebd83f6458090f75bdad773cc0f1591664e13c04c20 SHA512 ee59722878f6ef2d2319cdf4e6a60d3d1184f7c22752f9a8859eaa46fb677ebac9e8eef9c0826998e12bac9399e336799843341ef203224a82c9101347149672
30 -DIST scipy-ref-1.6.1.pdf 34594740 BLAKE2B 905ddcd7a3d462b09ded688f0818204d7684fa18058d0dac480d0a000e9ea0b7ebcdd33c01adae17234dcdf630d4aef9078174127af46f1db55d5c14b3245346 SHA512 355f4681439c1720f45dca6badfe72d77edfca0962fd9b42df34f1cd8fff7121fa6e7f60570bb638abd3ba9693930fa46b25af862d8fc1568b508c6fdd785479
31 DIST scipy-ref-1.6.2.pdf 34599668 BLAKE2B 9ae3221c814eb0d1b1e9191e08000955af503f6448cf8b5841e400fad106c658670339219f4838bd312023601776fe0b0d123ebbd41460c478145da2ac3e9989 SHA512 9aecb7ca760805c470c41121268281c9547aef35ddf078816c5e48f7cf4912a67cf622e267152c6cc823df9d82be1f3a875d97469169d0d91d6219164c130c88
32 DIST scipy-ref-1.7.1.pdf 33542025 BLAKE2B 6c978f06b770805f0fae06db740e8596658d98bbbc93c865127eae909957503bb38e02a9c97319aed07608718f8f373374b1cf3a8c3bd624aa3143f1d21bc428 SHA512 45720dc299594bac5c7539f950a0ff135b125d86bfe9847032cbff1f294601fefd0a1ac3fd7e3928b2702390c318ae2f8adca6403ba06ea1ded705fcff94ab79
33
34 diff --git a/dev-python/scipy/scipy-1.6.2.ebuild b/dev-python/scipy/scipy-1.6.2.ebuild
35 deleted file mode 100644
36 index 2092f8ee820d..000000000000
37 --- a/dev-python/scipy/scipy-1.6.2.ebuild
38 +++ /dev/null
39 @@ -1,155 +0,0 @@
40 -# Copyright 1999-2021 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -PYTHON_COMPAT=( python3_{7..9} )
46 -PYTHON_REQ_USE="threads(+)"
47 -
48 -inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs
49 -
50 -# upstream is slacking forever with doc updates
51 -DOC_PV=1.6.1
52 -DESCRIPTION="Scientific algorithms library for Python"
53 -HOMEPAGE="https://www.scipy.org/"
54 -SRC_URI="
55 - mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
56 - doc? (
57 - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${DOC_PV}.zip
58 - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${DOC_PV}.pdf
59 - )"
60 -
61 -LICENSE="BSD LGPL-2"
62 -SLOT="0"
63 -KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
64 -IUSE="doc sparse"
65 -
66 -DEPEND="
67 - >=dev-python/numpy-1.16.5[lapack,${PYTHON_USEDEP}]
68 - sci-libs/arpack:0=
69 - virtual/cblas
70 - virtual/lapack
71 - sparse? ( sci-libs/umfpack:0= )"
72 -RDEPEND="${DEPEND}
73 - dev-python/pillow[${PYTHON_USEDEP}]"
74 -BDEPEND="
75 - dev-lang/swig
76 - >=dev-python/cython-0.29.18[${PYTHON_USEDEP}]
77 - dev-python/pybind11[${PYTHON_USEDEP}]
78 - virtual/pkgconfig
79 - doc? ( app-arch/unzip )
80 - test? (
81 - dev-python/nose[${PYTHON_USEDEP}]
82 - )"
83 -
84 -DISTUTILS_IN_SOURCE_BUILD=1
85 -
86 -distutils_enable_tests pytest
87 -
88 -src_unpack() {
89 - default
90 - if use doc; then
91 - unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
92 - fi
93 -}
94 -
95 -pc_incdir() {
96 - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \
97 - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
98 -}
99 -
100 -pc_libdir() {
101 - $(tc-getPKG_CONFIG) --libs-only-L $@ | \
102 - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
103 -}
104 -
105 -pc_libs() {
106 - $(tc-getPKG_CONFIG) --libs-only-l $@ | \
107 - sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
108 - -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
109 - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
110 -}
111 -
112 -python_prepare_all() {
113 - # scipy automatically detects libraries by default
114 - export {FFTW,FFTW3,UMFPACK}=None
115 - use sparse && unset UMFPACK
116 - # the missing symbols are in -lpythonX.Y, but since the version can
117 - # differ, we just introduce the same scaryness as on Linux/ELF
118 - [[ ${CHOST} == *-darwin* ]] \
119 - && append-ldflags -bundle "-undefined dynamic_lookup" \
120 - || append-ldflags -shared
121 - [[ -z ${FC} ]] && export FC="$(tc-getFC)"
122 - # hack to force F77 to be FC until bug #278772 is fixed
123 - [[ -z ${F77} ]] && export F77="$(tc-getFC)"
124 - export F90="${FC}"
125 - export SCIPY_FCONFIG="config_fc --noopt --noarch"
126 - append-fflags -fPIC
127 -
128 - local libdir="${EPREFIX}"/usr/$(get_libdir)
129 - cat >> site.cfg <<-EOF || die
130 - [blas]
131 - include_dirs = $(pc_incdir cblas)
132 - library_dirs = $(pc_libdir cblas blas):${libdir}
133 - blas_libs = $(pc_libs cblas blas)
134 - [lapack]
135 - library_dirs = $(pc_libdir lapack):${libdir}
136 - lapack_libs = $(pc_libs lapack)
137 - EOF
138 - cat >> setup.cfg <<-EOF || die
139 - [options]
140 - zip_safe = False
141 - EOF
142 -
143 - # Drop hashes to force rebuild of cython based .c code
144 - rm cythonize.dat || die
145 -
146 - # TODO
147 - sed -e "s:== 'levy_stable':in ('levy_stable', 'crystalball', 'ncf'):" \
148 - -i scipy/stats/tests/test_continuous_basic.py || die
149 -
150 - distutils-r1_python_prepare_all
151 -}
152 -
153 -python_configure_all() {
154 - # bug 721860
155 - test-flag-FC -fallow-argument-mismatch &&
156 - append-fflags -fallow-argument-mismatch
157 -}
158 -
159 -python_compile() {
160 - # FIXME: parallel python building fails, bug #614464
161 - export MAKEOPTS=-j1
162 -
163 - ${EPYTHON} tools/cythonize.py || die
164 - distutils-r1_python_compile \
165 - ${SCIPY_FCONFIG}
166 -}
167 -
168 -python_test() {
169 - # fails with bdist_egg. should it be fixed in distutils-r1 eclass?
170 - distutils_install_for_testing ${SCIPY_FCONFIG}
171 - cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available"
172 - PYTHONPATH=. "${EPYTHON}" -c "
173 -import scipy, sys
174 -r = scipy.test('fast', verbose=2)
175 -sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}"
176 -}
177 -
178 -python_install_all() {
179 - use doc && \
180 - local DOCS=( "${DISTDIR}"/${PN}-ref-${DOC_PV}.pdf ) \
181 - local HTML_DOCS=( "${WORKDIR}"/html/. )
182 - distutils-r1_python_install_all
183 -}
184 -
185 -python_install() {
186 - distutils-r1_python_install ${SCIPY_FCONFIG}
187 - python_optimize
188 -}
189 -
190 -pkg_postinst() {
191 - elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER"
192 - elog "to your prefered image viewer. Example:"
193 - elog " echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc"
194 -}
195
196 diff --git a/dev-python/scipy/scipy-1.7.2.ebuild b/dev-python/scipy/scipy-1.7.2.ebuild
197 deleted file mode 100644
198 index 7ddd70d6ffe1..000000000000
199 --- a/dev-python/scipy/scipy-1.7.2.ebuild
200 +++ /dev/null
201 @@ -1,185 +0,0 @@
202 -# Copyright 1999-2021 Gentoo Authors
203 -# Distributed under the terms of the GNU General Public License v2
204 -
205 -EAPI=7
206 -
207 -PYTHON_COMPAT=( python3_{8..10} )
208 -PYTHON_REQ_USE="threads(+)"
209 -
210 -inherit fortran-2 distutils-r1 flag-o-matic toolchain-funcs
211 -
212 -# upstream is slacking forever with doc updates
213 -DOC_PV=1.7.1
214 -DESCRIPTION="Scientific algorithms library for Python"
215 -HOMEPAGE="https://www.scipy.org/"
216 -SRC_URI="
217 - mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
218 - doc? (
219 - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${DOC_PV}.zip
220 - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${DOC_PV}.pdf
221 - )"
222 -
223 -LICENSE="BSD LGPL-2"
224 -SLOT="0"
225 -KEYWORDS="~amd64 ~arm ~arm64 -hppa ~ia64 ~ppc64 ~riscv ~s390 ~sparc ~x86"
226 -IUSE="doc +pythran sparse"
227 -
228 -DEPEND="
229 - >=dev-python/numpy-1.16.5[lapack,${PYTHON_USEDEP}]
230 - sci-libs/arpack:0=
231 - virtual/cblas
232 - virtual/lapack
233 - sparse? ( sci-libs/umfpack:0= )"
234 -RDEPEND="${DEPEND}
235 - dev-python/pillow[${PYTHON_USEDEP}]"
236 -BDEPEND="
237 - dev-lang/swig
238 - >=dev-python/cython-0.29.18[${PYTHON_USEDEP}]
239 - dev-python/pybind11[${PYTHON_USEDEP}]
240 - virtual/pkgconfig
241 - doc? ( app-arch/unzip )
242 - pythran? ( dev-python/pythran[${PYTHON_USEDEP}] )
243 - test? (
244 - dev-python/nose[${PYTHON_USEDEP}]
245 - )"
246 -
247 -DISTUTILS_IN_SOURCE_BUILD=1
248 -
249 -distutils_enable_tests pytest
250 -
251 -PATCHES=(
252 - "${FILESDIR}"/${PN}-1.7.1-pythran-tests-32-bit.patch
253 -)
254 -
255 -src_unpack() {
256 - default
257 - if use doc; then
258 - unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
259 - fi
260 -}
261 -
262 -pc_incdir() {
263 - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \
264 - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
265 -}
266 -
267 -pc_libdir() {
268 - $(tc-getPKG_CONFIG) --libs-only-L $@ | \
269 - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
270 -}
271 -
272 -pc_libs() {
273 - $(tc-getPKG_CONFIG) --libs-only-l $@ | \
274 - sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
275 - -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
276 - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
277 -}
278 -
279 -python_prepare_all() {
280 - # scipy automatically detects libraries by default
281 - export {FFTW,FFTW3,UMFPACK}=None
282 - use sparse && unset UMFPACK
283 - # the missing symbols are in -lpythonX.Y, but since the version can
284 - # differ, we just introduce the same scaryness as on Linux/ELF
285 - [[ ${CHOST} == *-darwin* ]] \
286 - && append-ldflags -bundle "-undefined dynamic_lookup" \
287 - || append-ldflags -shared
288 - [[ -z ${FC} ]] && export FC="$(tc-getFC)"
289 - # hack to force F77 to be FC until bug #278772 is fixed
290 - [[ -z ${F77} ]] && export F77="$(tc-getFC)"
291 - export F90="${FC}"
292 - export SCIPY_FCONFIG="config_fc --noopt --noarch"
293 - append-fflags -fPIC
294 -
295 - local libdir="${EPREFIX}"/usr/$(get_libdir)
296 - cat >> site.cfg <<-EOF || die
297 - [blas]
298 - include_dirs = $(pc_incdir cblas)
299 - library_dirs = $(pc_libdir cblas blas):${libdir}
300 - blas_libs = $(pc_libs cblas blas)
301 - [lapack]
302 - library_dirs = $(pc_libdir lapack):${libdir}
303 - lapack_libs = $(pc_libs lapack)
304 - EOF
305 - cat >> setup.cfg <<-EOF || die
306 - [options]
307 - zip_safe = False
308 - EOF
309 -
310 - # TODO
311 - sed -e "s:== 'levy_stable':in ('levy_stable', 'crystalball', 'ncf'):" \
312 - -i scipy/stats/tests/test_continuous_basic.py || die
313 -
314 - # Skip known-failing test. Broken on all versions in Gentoo for years.
315 - # bug #743295
316 - sed -e 's:test_bisplev_integer_overflow:_&:' \
317 - -i scipy/interpolate/tests/test_fitpack.py || die
318 -
319 - # Skip a few 32-bit related failures
320 - if use x86 ; then
321 - # TODO: Tidy this up and switch to epytest
322 - sed -i -e 's:test_nd_axis_m1:_&:' \
323 - -e 's:test_nd_axis_0:_&:' \
324 - -e 's:test_maxiter_worsening:_&:' \
325 - -e 's:test_pdist_jensenshannon_iris:_&:' \
326 - -e 's:test_align_vectors_single_vector:_&:' \
327 - scipy/signal/tests/test_spectral.py \
328 - scipy/sparse/linalg/isolve/tests/test_iterative.py \
329 - scipy/spatial/tests/test_distance.py \
330 - scipy/spatial/transform/tests/test_rotation.py || die
331 - fi
332 -
333 - if has_version ">=sci-libs/lapack-3.10"; then
334 - sed -e 's:test_sort(:_&:' \
335 - -i scipy/linalg/tests/test_decomp.py || die
336 - sed -e 's:test_solve_discrete_are:_&:' \
337 - -i scipy/linalg/tests/test_solvers.py || die
338 - fi
339 -
340 - distutils-r1_python_prepare_all
341 -}
342 -
343 -python_configure_all() {
344 - export SCIPY_USE_PYTHRAN=$(usex pythran 1 0)
345 -
346 - # bug 721860
347 - test-flag-FC -fallow-argument-mismatch &&
348 - append-fflags -fallow-argument-mismatch
349 -}
350 -
351 -python_compile() {
352 - # FIXME: parallel python building fails, bug #614464
353 - export MAKEOPTS=-j1
354 -
355 - ${EPYTHON} tools/cythonize.py || die
356 - distutils-r1_python_compile \
357 - ${SCIPY_FCONFIG}
358 -}
359 -
360 -python_test() {
361 - # fails with bdist_egg. should it be fixed in distutils-r1 eclass?
362 - distutils_install_for_testing ${SCIPY_FCONFIG}
363 - cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available"
364 - PYTHONPATH=. "${EPYTHON}" -c "
365 -import scipy, sys
366 -r = scipy.test('fast', verbose=2)
367 -sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}"
368 -}
369 -
370 -python_install_all() {
371 - use doc && \
372 - local DOCS=( "${DISTDIR}"/${PN}-ref-${DOC_PV}.pdf ) \
373 - local HTML_DOCS=( "${WORKDIR}"/html/. )
374 - distutils-r1_python_install_all
375 -}
376 -
377 -python_install() {
378 - distutils-r1_python_install ${SCIPY_FCONFIG}
379 - python_optimize
380 -}
381 -
382 -pkg_postinst() {
383 - elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER"
384 - elog "to your prefered image viewer. Example:"
385 - elog " echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc"
386 -}