Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/scipy/
Date: Sat, 25 Jun 2022 01:33:22
Message-Id: 1656120774.c5a4a1cb9a61a47799556073c24115e768f05dde.sam@gentoo
1 commit: c5a4a1cb9a61a47799556073c24115e768f05dde
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 01:32:54 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 01:32:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5a4a1cb
7
8 dev-python/scipy: add 1.9.0_rc1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-python/scipy/Manifest | 1 +
13 dev-python/scipy/scipy-1.9.0_rc1.ebuild | 78 +++++++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/dev-python/scipy/Manifest b/dev-python/scipy/Manifest
17 index 238fc4ae29ac..3155ebc0d471 100644
18 --- a/dev-python/scipy/Manifest
19 +++ b/dev-python/scipy/Manifest
20 @@ -1,3 +1,4 @@
21 DIST scipy-1.8.1.tar.gz 38196215 BLAKE2B 180ae646adba2031a4bf99cd4feefe652b8e340110b3b2872e61aa1083054aadf369c7e3b3e3fd8fb71fcd831c95841d2dadd1c71e35e5f7d95800e5551173f0 SHA512 f6fc71c209991fe82baa4b10d8ade0deb1057f6f5942a91dfb7ae45f3eb78a4535efa2861badf5e2d37239fa99dbd99de760aa7e4854b95991ade0263004e7ea
22 +DIST scipy-1.9.0rc1.tar.gz 42045828 BLAKE2B 8ecb112f611d52a69564329764b63d6f97bdcf6ba2fedc32134fb9f0da0c7f91d8507136bd81e2193c8a796273019cf2cf1a0f6009f6ac0803924a27ad216c37 SHA512 74d0ec0b94d33da683549b9c56966ec58dc807a5b60101413530501d2b1e789209b1b0e6cbca0a3bd0317dd0911406efc900dee5f90f1ea71c9aefa00f4c2dbe
23 DIST scipy-html-1.8.1.zip 37060661 BLAKE2B 2fa617c58eb47463f8a61f9798b32c6da255d26b8e86c1558e427a715093f5a29ced3847ab6ecfe88ce1017664f36ac3e9fa9bbf72ede7e0fd3812b5f41fe933 SHA512 95153dc1f404aa64898a700c94c0deea3ca842c3152167d0987edabcf4a8eba16b6c8e6bc38a6775a849dc621e6a21434baf53d1669b1865fa5049cffa4387ac
24 DIST scipy-ref-1.8.1.pdf 35025868 BLAKE2B 9221755d2dc69b8623271f75ff3078a0a4410fe9ff69ee317b40bf145af7da21a7f5f4b6b67820d8bb2878f83b7014f1ea7c2f0e026afb716da0479d394505e2 SHA512 8f27dcb9dd1030e15266389af21a1475ecfec5ea777fb2dbcf8db8d3398ac6e45c7040b8d6dbaffd29be3920925427be7c55efdc8094d670c857edfdab7f7728
25
26 diff --git a/dev-python/scipy/scipy-1.9.0_rc1.ebuild b/dev-python/scipy/scipy-1.9.0_rc1.ebuild
27 new file mode 100644
28 index 000000000000..aa0db9c53032
29 --- /dev/null
30 +++ b/dev-python/scipy/scipy-1.9.0_rc1.ebuild
31 @@ -0,0 +1,78 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=meson-python
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +PYTHON_REQ_USE="threads(+)"
40 +
41 +inherit fortran-2 distutils-r1 multiprocessing
42 +
43 +DESCRIPTION="Scientific algorithms library for Python"
44 +HOMEPAGE="
45 + https://scipy.org/
46 + https://github.com/scipy/scipy/
47 + https://pypi.org/project/scipy/
48 +"
49 +
50 +if [[ ${PV} == *9999* ]] ; then
51 + inherit git-r3
52 +
53 + # Need submodules, so git for now.
54 + EGIT_REPO_URI="https://github.com/scipy/scipy"
55 + EGIT_BRANCH="maintenance/$(ver_cut 1-2).x"
56 + EGIT_SUBMODULES=( '*' )
57 +else
58 + # Upstream is often behind with doc updates
59 + DOC_PV=1.8.1
60 + MY_PV=${PV/_rc/rc}
61 + MY_P=${PN}-${MY_PV}
62 +
63 + SRC_URI="
64 + mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz
65 + doc? (
66 + https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${DOC_PV}.zip
67 + https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${DOC_PV}.pdf
68 + )"
69 + S="${WORKDIR}"/${MY_P}
70 +
71 + if [[ ${PV} != *rc* ]] ; then
72 + KEYWORDS="~amd64 ~arm ~arm64 -hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
73 + fi
74 +fi
75 +
76 +LICENSE="BSD LGPL-2"
77 +SLOT="0"
78 +IUSE="doc +sparse"
79 +
80 +DEPEND="
81 + >=dev-python/numpy-1.17.3[lapack,${PYTHON_USEDEP}]
82 + sci-libs/arpack:0=
83 + virtual/cblas
84 + virtual/lapack
85 + sparse? ( sci-libs/umfpack:0= )"
86 +RDEPEND="${DEPEND}
87 + dev-python/pillow[${PYTHON_USEDEP}]"
88 +# TODO: restore pythran optionality?
89 +BDEPEND="
90 + dev-lang/swig
91 + >=dev-python/cython-0.29.18[${PYTHON_USEDEP}]
92 + dev-python/pybind11[${PYTHON_USEDEP}]
93 + dev-python/pythran[${PYTHON_USEDEP}]
94 + dev-util/patchelf
95 + virtual/pkgconfig
96 + doc? ( app-arch/unzip )
97 + test? ( dev-python/pytest-xdist[${PYTHON_USEDEP}] )"
98 +
99 +PATCHES=(
100 + "${FILESDIR}"/${PN}-1.9.9999-meson-options-lapack.patch
101 +)
102 +
103 +distutils_enable_tests pytest
104 +
105 +python_test() {
106 + cd "${T}" || die
107 +
108 + epytest -n "$(makeopts_jobs)" --pyargs scipy
109 +}