1 |
commit: 58aab77a4a716847597d60bf26a166ebed34ae15 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 20:40:03 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 20:40:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58aab77a |
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 | 21 ----- |
13 |
dev-python/scipy/scipy-1.1.0.ebuild | 148 --------------------------------- |
14 |
dev-python/scipy/scipy-1.4.1.ebuild | 154 ---------------------------------- |
15 |
dev-python/scipy/scipy-1.5.2.ebuild | 160 ------------------------------------ |
16 |
dev-python/scipy/scipy-1.5.3.ebuild | 160 ------------------------------------ |
17 |
dev-python/scipy/scipy-1.5.4.ebuild | 160 ------------------------------------ |
18 |
dev-python/scipy/scipy-1.6.0.ebuild | 155 ---------------------------------- |
19 |
dev-python/scipy/scipy-1.6.1.ebuild | 155 ---------------------------------- |
20 |
8 files changed, 1113 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/scipy/Manifest b/dev-python/scipy/Manifest |
23 |
index 963a635e709..510eb8881ac 100644 |
24 |
--- a/dev-python/scipy/Manifest |
25 |
+++ b/dev-python/scipy/Manifest |
26 |
@@ -1,24 +1,3 @@ |
27 |
-DIST scipy-1.1.0-html.zip 49851258 BLAKE2B 528df7ed8aa8e56662f436f31ee9e1d6d72d6fe962f9f0f6f84b7a2704b53009ce333b2102ec73bb7795110f8a61b18246aab95b1e21055f2b68c0ff2225b7bb SHA512 a03894a22a67c1359ee6206e9e1c9de1f926a7f829f5039f161e78df735708da09b0e51cdad3bf36bfede701d0bc5dc44f8cc0f249b6bfb80c9d8c9fe23aed46 |
28 |
-DIST scipy-1.1.0-ref.pdf 34360806 BLAKE2B f82807879d5d36d91d74e8983a0f4104bcb4b69cb7787fe5190f73fbbfcb8635a9399686b3c75736d3b0b5dd877b5280ff6fba728520e3b47c13ffc7835f8cd6 SHA512 c792064c986dffafa3c5d0741f30715028e655761d099f0fdd472270cf34642b367dfa2178ddceba13043a471e3aeb1db20d65308dbb40c704dab576aaadeb3e |
29 |
-DIST scipy-1.1.0.tar.gz 15583560 BLAKE2B 477753e622ee26a3bc8c2cb6829410152df84b29ce17a6d53a66348f5536f7993fedf5d32b782405b54b3af3feabf9bc91c381ed39546076849c2fdb71039404 SHA512 72fe32c6c009613cb78202598e5db14f8e630b3218839cfe18d43d40550d94cc5aa100c6f5d41f40e86ae148e9b6a13431bb91b0f9be44b0569ccd7b725fe973 |
30 |
-DIST scipy-1.4.1-html.zip 61414053 BLAKE2B e1f0c1a7a8941958512dcc3c0f40ef4a590bab0b44b33f842bc6e1c5d103c17f223d8b0a2f4e564f57645d601d4d74005c1ec605be2dd3bf4db19d2ac1f614d1 SHA512 9eeae83cd723d63aa1dc7a610ce3118cb68a2336be24cbfeaa8e57b34de413b2efa2fdad0978eb5bdac0ebca6b15f564b9509637efbd87d1007c969ae954e3ae |
31 |
-DIST scipy-1.4.1-ref.pdf 41100747 BLAKE2B 8e56af69d0bffbe6eff73bfc5bb674aed3b80bdd80d59b58a1835f996c992306a059c2992d74c411e762490c526262753d33273613ed389928845c65eb6546b2 SHA512 76946f3b506fe22a595b70e5a418982257dd59db1a2e9af508cc1cab59d47ba4fc5951388e676f2a513043a6b3391ef853242e78d7feb99a6c21d19f6dca2b58 |
32 |
-DIST scipy-1.4.1.tar.gz 24555206 BLAKE2B e35f6234404839cbd24d463c8cc2f1ea66aed91534e700fd54a623df40d069b14fc220f96af04c78d13b773bfc5461559e59b0bd9b836d7953f9249ccd7cae54 SHA512 79407a2cbb4ba29c0941570181df4d7835e5791e50a3abef9b63c2fc5b15308a2e4964eb71cdebbee8cd2dcb8e497cf92fe50ee21fb12cac3013ea5e0466b25d |
33 |
-DIST scipy-1.5.2-html.zip 23166876 BLAKE2B a90d6a2eb25c56147c0c1cccb58cddd230c20cd70dcc5c39b7307acaeac5320ff1c6ed46e3027ec40f604db503a90620cf87212e45f3158c667ec20d95bac649 SHA512 35c675821675844b163eacdaf448173edb78adb5e9f3e438a70809b8b59425a987fd3ed7d6f7863612111ece4a6a36504279ef4492166f5e24a9b2c7ea9d21e7 |
34 |
-DIST scipy-1.5.2-ref.pdf 33462200 BLAKE2B 5784612eb41221a02520778d72341702a7dd4ee8c0147592e170054107219b03af4ccebe1f5e2a57f90f3b892455f95ec45d8eac8e4a7155e21e9ae0526b302f SHA512 15961b7280eb903d2db7a05915b94b3c298cabf68a6694da217680e23fe621885dd169dc88a033ee001a89bc6e6b13ef787ec61009f6ffe38aeaa2dfb84f8a47 |
35 |
-DIST scipy-1.5.2.tar.gz 25423944 BLAKE2B 0a4987da0cde4f33bbb0e2be571b59e9064b1c6554c61c1655100abdecfde54d64845cd30c5b3fcac3ae7426572757aa9a66065dd3b48e6e4cdd4d0ea847868e SHA512 45463df30a0f6270d9f4cf52235f31607904a6ae1375e12600e7f1ab2d27b1dc25a6211b49dceb71506be22c756890adaf9f81d9e6be7455def86c9caf0dc923 |
36 |
-DIST scipy-1.5.3-html.zip 23172844 BLAKE2B eb90cb6d54ff1a6afeff387baccc273df4491a5d37202afa2a8dcebc29ecacf11784e2427fd9b91db954d13c418dae26619d172487515747f49ef6e41f793310 SHA512 cd7131efeccef2095955a3f6d5260d6f3d6d038668d686e556acf87f7aa4d85df576474b4feb7939c3eba51e81dc264590813483427db22038a09164f44f75b0 |
37 |
-DIST scipy-1.5.3-ref.pdf 33463958 BLAKE2B 58939157eb5473278e1cde11a992082824e23220a83c6b3b87f219a12d7449a2290ce845e62d04fdbffb58ab9f6598da153b9ab75a139a071944e73738f19a1f SHA512 66dcb4e507f3f29ad82cc989e93dabe55e7c8147795ed8ed419c15ab50b0d6612e63dd918cab0640ab2085c68b1d14a3981d6da089baa4b4c2d302846aa4c496 |
38 |
-DIST scipy-1.5.3.tar.gz 25234560 BLAKE2B 734f29b7e3f6591b265ec43e173d1303683e2fcfa493cc03d71222fb34ccbc1bb6498d0a9c814d7cb3b08f8d82f06829a2280e46bab733f1c4d6c57742555d70 SHA512 ac65196179663905cf813e023cbbc4c0ef42948425d8190db9218339e23dc3a53e788759f0d7bb986395f8b86f6e97f5de87704ef70445d9f9c10c4ceee8e104 |
39 |
-DIST scipy-1.5.4-html.zip 23175279 BLAKE2B 79cf621daa4c41414cd6d52364481ff5df4a21232bc37a5c60f9e63b60e9ad9b07a1603865fd60b2041375ae12791d761fe5d3cbd1f5c0977a37e8bf497c1e3c SHA512 eb93b2ae1dcb916bfbe77ac0ccb7f7f66af3ad3965d397c84dfbc725af08060dccf3fb0988961bf2051f0236c64066dd28f01d85484babb3ee997a9d0bab8069 |
40 |
-DIST scipy-1.5.4-ref.pdf 33467477 BLAKE2B d7a110258d6fe0430c380b34e2053b6b0ef8da7a6b3bee35314d55beae887afb32d01479f1ad6b8bf6847c2225890c20c118e3fd692dae55292793f38b484a9d SHA512 7f98b5014553f73880fe18d942684b8282c6aefb90b329865b65d45cfa0cffac0a8808e970af291a96e4d326ec8b284dc4385ffa5469049b4f643be8642329e7 |
41 |
-DIST scipy-1.5.4.tar.gz 25237512 BLAKE2B 719cfecd6794b037dc636793ba38a3b39f5fd1a44ce2fd2cf2418b0ca6d1a7898b34c4cf684752fdde635107744773c796b998418d5a983450b70beb461e32df SHA512 d23f68911a8880f87767819750d4d175ba8f9c72fcb9b8080305ee65722c046d4485fde4f0c85cc53c46247dd99813afe675a38b3b0569a683ddc2c2e021b8fc |
42 |
-DIST scipy-1.6.0-html.zip 23941941 BLAKE2B 3222e9b1e1aeebfd1ab0f8d179d25c25d6ab26a54c3d6c7f12d5cb24dd59af216685cb1db1d11980ca32c8e14595a1753b69438d8c7504f7c4fc1b386e1c944d SHA512 42cd5595e1f260bcd14d5ce159d9acd0eaefbcb1401270b90efe48b0e743681361dba5ee410e5932533bca03c19daaacb6042ef8edea9b2cccd5dae21a612072 |
43 |
-DIST scipy-1.6.0-ref.pdf 34332184 BLAKE2B 948a03372797915e47d5e8ce44a32dcacb3448a20e06c5233d3362f0f04f228e8f7505aa918dbbd9a50ad64adb7a17181acab6a726ab251b8e8acf245a1550d6 SHA512 fe4c316f91cffb10d14207882ceb7a1d3711b03ad74857d771d0ec244caad60f878902f7279f6688c947fd415762abbb5a7082c810dd85c73385e8f58fbc056c |
44 |
-DIST scipy-1.6.0.tar.gz 27275413 BLAKE2B f65fca81a21a3077ead119123fc3bb2ed96aaacfee6f291473ef6780c291f3e9fee88d86501d4cb966f1d601fb7f0656956134f0437eb8fefb8030e762c363a5 SHA512 995ffaf56b713cdd4bdb98d8525b892e9ad84a511878b43213cb71a67f34d87c111da36cf1e0b044c75c0d5af64bfde4ad0f3e9c5e71cae2dbf053251f37064e |
45 |
-DIST scipy-1.6.1-html.zip 23946591 BLAKE2B d3464c342b1d4f43e17e214c7557737913bf4131f88b9d569cff106c75dc7ebf0d065283792fddc189e2a3ddc322f1b2b4f38c6d313569f28395e79680060b58 SHA512 73561f9daa303c6e967f9b11952c6239dea7ff1a2fa02434354ac78fcffe7a552aa0f1043a17cb5c35a442def499eff199856cca8efa1415449cbf54f0d4913b |
46 |
-DIST scipy-1.6.1-ref.pdf 34594740 BLAKE2B 905ddcd7a3d462b09ded688f0818204d7684fa18058d0dac480d0a000e9ea0b7ebcdd33c01adae17234dcdf630d4aef9078174127af46f1db55d5c14b3245346 SHA512 355f4681439c1720f45dca6badfe72d77edfca0962fd9b42df34f1cd8fff7121fa6e7f60570bb638abd3ba9693930fa46b25af862d8fc1568b508c6fdd785479 |
47 |
-DIST scipy-1.6.1.tar.gz 27346828 BLAKE2B 147d7b3f796023fe557f07b46eefa1b23631106556ff56bb0ab5640d7dccfa86fecc2031ba0571eee2560a9bf86705a5ef32527852650e6d0629a722574bf135 SHA512 778a7bca15bb880a3fd1c3d46ef753920335eca95fe5f2b8512883a2aec1bb8e9d8a8fdbf4fee90e823e31980408a51451cc53d4f10c632cd72faf2856c868c8 |
48 |
DIST scipy-1.6.2.tar.gz 27187804 BLAKE2B af3578bc029c3af548c04144d7405ac8e6f8e057f870394e124f24aea9989120275407e5a7fdd29fbe1019d2acc295c1ce00872461ecf3a325000e8817cd559f SHA512 18b03f32e8343c5a6c6148ac0bfd4b5f2cc9ff5f74d5d41761ae9e773d6af8774c7b09a3fcc47122864eccce1dbbc17e9325819885d3fc3ab2baf98e7d3befa4 |
49 |
DIST scipy-1.6.3.tar.gz 27187987 BLAKE2B 30f7171ca0dc0842f254472f4b52c0b0ad4389964a140cc4b94f9d85437c5a7da238c082be503242d433f1d3c65c3fd4afeb2f7831eea39ce303077406e718df SHA512 10ff25da84ce09ae231e781873902d8040d79868721d75a3f9facee177e7f46f7c9c34374feee6fe2253ddd968716d2993658ce514c4ac0c98d255c06a6ef808 |
50 |
DIST scipy-html-1.6.1.zip 23946591 BLAKE2B d3464c342b1d4f43e17e214c7557737913bf4131f88b9d569cff106c75dc7ebf0d065283792fddc189e2a3ddc322f1b2b4f38c6d313569f28395e79680060b58 SHA512 73561f9daa303c6e967f9b11952c6239dea7ff1a2fa02434354ac78fcffe7a552aa0f1043a17cb5c35a442def499eff199856cca8efa1415449cbf54f0d4913b |
51 |
|
52 |
diff --git a/dev-python/scipy/scipy-1.1.0.ebuild b/dev-python/scipy/scipy-1.1.0.ebuild |
53 |
deleted file mode 100644 |
54 |
index 88024131251..00000000000 |
55 |
--- a/dev-python/scipy/scipy-1.1.0.ebuild |
56 |
+++ /dev/null |
57 |
@@ -1,148 +0,0 @@ |
58 |
-# Copyright 1999-2021 Gentoo Authors |
59 |
-# Distributed under the terms of the GNU General Public License v2 |
60 |
- |
61 |
-EAPI=6 |
62 |
- |
63 |
-PYTHON_COMPAT=( python3_7 ) |
64 |
-PYTHON_REQ_USE="threads(+)" |
65 |
- |
66 |
-DOC_PV=${PV} |
67 |
- |
68 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
69 |
- |
70 |
-DESCRIPTION="Scientific algorithms library for Python" |
71 |
-HOMEPAGE="https://www.scipy.org/" |
72 |
-SRC_URI=" |
73 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
74 |
- doc? ( |
75 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
76 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
77 |
- )" |
78 |
- |
79 |
-LICENSE="BSD LGPL-2" |
80 |
-SLOT="0" |
81 |
-IUSE="doc sparse test" |
82 |
-RESTRICT="!test? ( test )" |
83 |
-KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" |
84 |
- |
85 |
-CDEPEND=" |
86 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
87 |
- sci-libs/arpack:0= |
88 |
- virtual/cblas |
89 |
- virtual/lapack |
90 |
- sparse? ( sci-libs/umfpack:0= )" |
91 |
-DEPEND="${CDEPEND} |
92 |
- dev-lang/swig |
93 |
- >=dev-python/cython-0.22[${PYTHON_USEDEP}] |
94 |
- >=dev-python/setuptools-36[${PYTHON_USEDEP}] |
95 |
- virtual/pkgconfig |
96 |
- doc? ( app-arch/unzip ) |
97 |
- test? ( |
98 |
- dev-python/nose[${PYTHON_USEDEP}] |
99 |
- dev-python/pytest[${PYTHON_USEDEP}] |
100 |
- )" |
101 |
-RDEPEND="${CDEPEND} |
102 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
103 |
- |
104 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
105 |
- |
106 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
107 |
- |
108 |
-src_unpack() { |
109 |
- default |
110 |
- if use doc; then |
111 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
112 |
- fi |
113 |
-} |
114 |
- |
115 |
-pc_incdir() { |
116 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
117 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
118 |
-} |
119 |
- |
120 |
-pc_libdir() { |
121 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
122 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
123 |
-} |
124 |
- |
125 |
-pc_libs() { |
126 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
127 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
128 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
129 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
130 |
-} |
131 |
- |
132 |
-python_prepare_all() { |
133 |
- # scipy automatically detects libraries by default |
134 |
- export {FFTW,FFTW3,UMFPACK}=None |
135 |
- use sparse && unset UMFPACK |
136 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
137 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
138 |
- [[ ${CHOST} == *-darwin* ]] \ |
139 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
140 |
- || append-ldflags -shared |
141 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
142 |
- # hack to force F77 to be FC until bug #278772 is fixed |
143 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
144 |
- export F90="${FC}" |
145 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
146 |
- append-fflags -fPIC |
147 |
- |
148 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
149 |
- cat >> site.cfg <<-EOF || die |
150 |
- [blas] |
151 |
- include_dirs = $(pc_incdir cblas) |
152 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
153 |
- blas_libs = $(pc_libs cblas blas) |
154 |
- [lapack] |
155 |
- library_dirs = $(pc_libdir lapack):${libdir} |
156 |
- lapack_libs = $(pc_libs lapack) |
157 |
- EOF |
158 |
- |
159 |
- # Drop hashes to force rebuild of cython based .c code |
160 |
- rm cythonize.dat || die |
161 |
- |
162 |
- distutils-r1_python_prepare_all |
163 |
-} |
164 |
- |
165 |
-python_configure_all() { |
166 |
- # bug 721860 |
167 |
- test-flag-FC -fallow-argument-mismatch && |
168 |
- append-fflags -fallow-argument-mismatch |
169 |
-} |
170 |
- |
171 |
-python_compile() { |
172 |
- # FIXME: parallel python building fails, bug #614464 |
173 |
- ${EPYTHON} tools/cythonize.py || die |
174 |
- distutils-r1_python_compile \ |
175 |
- ${SCIPY_FCONFIG} |
176 |
-} |
177 |
- |
178 |
-python_test() { |
179 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
180 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
181 |
- cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
182 |
- "${PYTHON}" -c \ |
183 |
- 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ |
184 |
- || die |
185 |
- "${EPYTHON}" -c \ |
186 |
- "import scipy, sys; r = scipy.test('fast', verbose=2); sys.exit(r)" \ |
187 |
- || die "Tests fail with ${EPYTHON}" |
188 |
-} |
189 |
- |
190 |
-python_install_all() { |
191 |
- use doc && \ |
192 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
193 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
194 |
- distutils-r1_python_install_all |
195 |
-} |
196 |
- |
197 |
-python_install() { |
198 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
199 |
-} |
200 |
- |
201 |
-pkg_postinst() { |
202 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
203 |
- elog "to your prefered image viewer. Example:" |
204 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
205 |
-} |
206 |
|
207 |
diff --git a/dev-python/scipy/scipy-1.4.1.ebuild b/dev-python/scipy/scipy-1.4.1.ebuild |
208 |
deleted file mode 100644 |
209 |
index 347f15eb4fa..00000000000 |
210 |
--- a/dev-python/scipy/scipy-1.4.1.ebuild |
211 |
+++ /dev/null |
212 |
@@ -1,154 +0,0 @@ |
213 |
-# Copyright 1999-2021 Gentoo Authors |
214 |
-# Distributed under the terms of the GNU General Public License v2 |
215 |
- |
216 |
-EAPI=6 |
217 |
- |
218 |
-PYTHON_COMPAT=( python3_{7..9} ) |
219 |
-PYTHON_REQ_USE="threads(+)" |
220 |
- |
221 |
-DOC_PV=${PV} |
222 |
- |
223 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
224 |
- |
225 |
-DESCRIPTION="Scientific algorithms library for Python" |
226 |
-HOMEPAGE="https://www.scipy.org/" |
227 |
-SRC_URI=" |
228 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
229 |
- doc? ( |
230 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
231 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
232 |
- )" |
233 |
- |
234 |
-LICENSE="BSD LGPL-2" |
235 |
-SLOT="0" |
236 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" |
237 |
-IUSE="doc sparse test" |
238 |
-RESTRICT="!test? ( test )" |
239 |
- |
240 |
-CDEPEND=" |
241 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
242 |
- sci-libs/arpack:0= |
243 |
- virtual/cblas |
244 |
- virtual/lapack |
245 |
- sparse? ( sci-libs/umfpack:0= )" |
246 |
-DEPEND="${CDEPEND} |
247 |
- dev-lang/swig |
248 |
- >=dev-python/cython-0.29.13[${PYTHON_USEDEP}] |
249 |
- >=dev-python/setuptools-36[${PYTHON_USEDEP}] |
250 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
251 |
- virtual/pkgconfig |
252 |
- doc? ( app-arch/unzip ) |
253 |
- test? ( |
254 |
- dev-python/nose[${PYTHON_USEDEP}] |
255 |
- dev-python/pytest[${PYTHON_USEDEP}] |
256 |
- )" |
257 |
-RDEPEND="${CDEPEND} |
258 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
259 |
- |
260 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
261 |
- |
262 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
263 |
- |
264 |
-src_unpack() { |
265 |
- default |
266 |
- if use doc; then |
267 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
268 |
- fi |
269 |
-} |
270 |
- |
271 |
-pc_incdir() { |
272 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
273 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
274 |
-} |
275 |
- |
276 |
-pc_libdir() { |
277 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
278 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
279 |
-} |
280 |
- |
281 |
-pc_libs() { |
282 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
283 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
284 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
285 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
286 |
-} |
287 |
- |
288 |
-python_prepare_all() { |
289 |
- # scipy automatically detects libraries by default |
290 |
- export {FFTW,FFTW3,UMFPACK}=None |
291 |
- use sparse && unset UMFPACK |
292 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
293 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
294 |
- [[ ${CHOST} == *-darwin* ]] \ |
295 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
296 |
- || append-ldflags -shared |
297 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
298 |
- # hack to force F77 to be FC until bug #278772 is fixed |
299 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
300 |
- export F90="${FC}" |
301 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
302 |
- append-fflags -fPIC |
303 |
- |
304 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
305 |
- cat >> site.cfg <<-EOF || die |
306 |
- [blas] |
307 |
- include_dirs = $(pc_incdir cblas) |
308 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
309 |
- blas_libs = $(pc_libs cblas blas) |
310 |
- [lapack] |
311 |
- library_dirs = $(pc_libdir lapack):${libdir} |
312 |
- lapack_libs = $(pc_libs lapack) |
313 |
- EOF |
314 |
- cat >> setup.cfg <<-EOF || die |
315 |
- [options] |
316 |
- zip_safe = False |
317 |
- EOF |
318 |
- |
319 |
- # Drop hashes to force rebuild of cython based .c code |
320 |
- rm cythonize.dat || die |
321 |
- |
322 |
- distutils-r1_python_prepare_all |
323 |
-} |
324 |
- |
325 |
-python_configure_all() { |
326 |
- # bug 721860 |
327 |
- test-flag-FC -fallow-argument-mismatch && |
328 |
- append-fflags -fallow-argument-mismatch |
329 |
-} |
330 |
- |
331 |
-python_compile() { |
332 |
- # FIXME: parallel python building fails, bug #614464 |
333 |
- export MAKEOPTS=-j1 |
334 |
- |
335 |
- ${EPYTHON} tools/cythonize.py || die |
336 |
- distutils-r1_python_compile \ |
337 |
- ${SCIPY_FCONFIG} |
338 |
-} |
339 |
- |
340 |
-python_test() { |
341 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
342 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
343 |
- cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available" |
344 |
- PYTHONPATH=. "${EPYTHON}" -c " |
345 |
-import scipy, sys |
346 |
-r = scipy.test('fast', verbose=2) |
347 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
348 |
-} |
349 |
- |
350 |
-python_install_all() { |
351 |
- use doc && \ |
352 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
353 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
354 |
- distutils-r1_python_install_all |
355 |
-} |
356 |
- |
357 |
-python_install() { |
358 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
359 |
- python_optimize |
360 |
-} |
361 |
- |
362 |
-pkg_postinst() { |
363 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
364 |
- elog "to your prefered image viewer. Example:" |
365 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
366 |
-} |
367 |
|
368 |
diff --git a/dev-python/scipy/scipy-1.5.2.ebuild b/dev-python/scipy/scipy-1.5.2.ebuild |
369 |
deleted file mode 100644 |
370 |
index 438d773e181..00000000000 |
371 |
--- a/dev-python/scipy/scipy-1.5.2.ebuild |
372 |
+++ /dev/null |
373 |
@@ -1,160 +0,0 @@ |
374 |
-# Copyright 1999-2021 Gentoo Authors |
375 |
-# Distributed under the terms of the GNU General Public License v2 |
376 |
- |
377 |
-EAPI=6 |
378 |
- |
379 |
-PYTHON_COMPAT=( python3_{7..9} ) |
380 |
-PYTHON_REQ_USE="threads(+)" |
381 |
- |
382 |
-DOC_PV=${PV} |
383 |
- |
384 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
385 |
- |
386 |
-DESCRIPTION="Scientific algorithms library for Python" |
387 |
-HOMEPAGE="https://www.scipy.org/" |
388 |
-SRC_URI=" |
389 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
390 |
- doc? ( |
391 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
392 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
393 |
- )" |
394 |
- |
395 |
-LICENSE="BSD LGPL-2" |
396 |
-SLOT="0" |
397 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
398 |
-IUSE="doc sparse test" |
399 |
-RESTRICT="!test? ( test )" |
400 |
- |
401 |
-CDEPEND=" |
402 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
403 |
- sci-libs/arpack:0= |
404 |
- virtual/cblas |
405 |
- virtual/lapack |
406 |
- sparse? ( sci-libs/umfpack:0= )" |
407 |
-DEPEND="${CDEPEND} |
408 |
- dev-lang/swig |
409 |
- >=dev-python/cython-0.29.13[${PYTHON_USEDEP}] |
410 |
- >=dev-python/setuptools-36[${PYTHON_USEDEP}] |
411 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
412 |
- virtual/pkgconfig |
413 |
- doc? ( app-arch/unzip ) |
414 |
- test? ( |
415 |
- dev-python/nose[${PYTHON_USEDEP}] |
416 |
- dev-python/pytest[${PYTHON_USEDEP}] |
417 |
- )" |
418 |
-RDEPEND="${CDEPEND} |
419 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
420 |
- |
421 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
422 |
- |
423 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
424 |
- |
425 |
-src_unpack() { |
426 |
- default |
427 |
- if use doc; then |
428 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
429 |
- fi |
430 |
-} |
431 |
- |
432 |
-pc_incdir() { |
433 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
434 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
435 |
-} |
436 |
- |
437 |
-pc_libdir() { |
438 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
439 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
440 |
-} |
441 |
- |
442 |
-pc_libs() { |
443 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
444 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
445 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
446 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
447 |
-} |
448 |
- |
449 |
-python_prepare_all() { |
450 |
- # scipy automatically detects libraries by default |
451 |
- export {FFTW,FFTW3,UMFPACK}=None |
452 |
- use sparse && unset UMFPACK |
453 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
454 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
455 |
- [[ ${CHOST} == *-darwin* ]] \ |
456 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
457 |
- || append-ldflags -shared |
458 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
459 |
- # hack to force F77 to be FC until bug #278772 is fixed |
460 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
461 |
- export F90="${FC}" |
462 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
463 |
- append-fflags -fPIC |
464 |
- |
465 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
466 |
- cat >> site.cfg <<-EOF || die |
467 |
- [blas] |
468 |
- include_dirs = $(pc_incdir cblas) |
469 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
470 |
- blas_libs = $(pc_libs cblas blas) |
471 |
- [lapack] |
472 |
- library_dirs = $(pc_libdir lapack):${libdir} |
473 |
- lapack_libs = $(pc_libs lapack) |
474 |
- EOF |
475 |
- cat >> setup.cfg <<-EOF || die |
476 |
- [options] |
477 |
- zip_safe = False |
478 |
- EOF |
479 |
- |
480 |
- # Drop hashes to force rebuild of cython based .c code |
481 |
- rm cythonize.dat || die |
482 |
- |
483 |
- # TODO |
484 |
- sed -e 's:test_magic_square_sparse_no_presolve:_&:' \ |
485 |
- -i scipy/optimize/tests/test_linprog.py || die |
486 |
- sed -e "s:== 'levy_stable':in ('levy_stable', 'crystalball', 'ncf'):" \ |
487 |
- -i scipy/stats/tests/test_continuous_basic.py || die |
488 |
- |
489 |
- distutils-r1_python_prepare_all |
490 |
-} |
491 |
- |
492 |
-python_configure_all() { |
493 |
- # bug 721860 |
494 |
- test-flag-FC -fallow-argument-mismatch && |
495 |
- append-fflags -fallow-argument-mismatch |
496 |
-} |
497 |
- |
498 |
-python_compile() { |
499 |
- # FIXME: parallel python building fails, bug #614464 |
500 |
- export MAKEOPTS=-j1 |
501 |
- |
502 |
- ${EPYTHON} tools/cythonize.py || die |
503 |
- distutils-r1_python_compile \ |
504 |
- ${SCIPY_FCONFIG} |
505 |
-} |
506 |
- |
507 |
-python_test() { |
508 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
509 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
510 |
- cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available" |
511 |
- PYTHONPATH=. "${EPYTHON}" -c " |
512 |
-import scipy, sys |
513 |
-r = scipy.test('fast', verbose=2) |
514 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
515 |
-} |
516 |
- |
517 |
-python_install_all() { |
518 |
- use doc && \ |
519 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
520 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
521 |
- distutils-r1_python_install_all |
522 |
-} |
523 |
- |
524 |
-python_install() { |
525 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
526 |
- python_optimize |
527 |
-} |
528 |
- |
529 |
-pkg_postinst() { |
530 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
531 |
- elog "to your prefered image viewer. Example:" |
532 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
533 |
-} |
534 |
|
535 |
diff --git a/dev-python/scipy/scipy-1.5.3.ebuild b/dev-python/scipy/scipy-1.5.3.ebuild |
536 |
deleted file mode 100644 |
537 |
index 8a3b7ee0526..00000000000 |
538 |
--- a/dev-python/scipy/scipy-1.5.3.ebuild |
539 |
+++ /dev/null |
540 |
@@ -1,160 +0,0 @@ |
541 |
-# Copyright 1999-2021 Gentoo Authors |
542 |
-# Distributed under the terms of the GNU General Public License v2 |
543 |
- |
544 |
-EAPI=6 |
545 |
- |
546 |
-PYTHON_COMPAT=( python3_{7..9} ) |
547 |
-PYTHON_REQ_USE="threads(+)" |
548 |
- |
549 |
-DOC_PV=${PV} |
550 |
- |
551 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
552 |
- |
553 |
-DESCRIPTION="Scientific algorithms library for Python" |
554 |
-HOMEPAGE="https://www.scipy.org/" |
555 |
-SRC_URI=" |
556 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
557 |
- doc? ( |
558 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
559 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
560 |
- )" |
561 |
- |
562 |
-LICENSE="BSD LGPL-2" |
563 |
-SLOT="0" |
564 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
565 |
-IUSE="doc sparse test" |
566 |
-RESTRICT="!test? ( test )" |
567 |
- |
568 |
-CDEPEND=" |
569 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
570 |
- sci-libs/arpack:0= |
571 |
- virtual/cblas |
572 |
- virtual/lapack |
573 |
- sparse? ( sci-libs/umfpack:0= )" |
574 |
-DEPEND="${CDEPEND} |
575 |
- dev-lang/swig |
576 |
- >=dev-python/cython-0.29.13[${PYTHON_USEDEP}] |
577 |
- >=dev-python/setuptools-36[${PYTHON_USEDEP}] |
578 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
579 |
- virtual/pkgconfig |
580 |
- doc? ( app-arch/unzip ) |
581 |
- test? ( |
582 |
- dev-python/nose[${PYTHON_USEDEP}] |
583 |
- dev-python/pytest[${PYTHON_USEDEP}] |
584 |
- )" |
585 |
-RDEPEND="${CDEPEND} |
586 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
587 |
- |
588 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
589 |
- |
590 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
591 |
- |
592 |
-src_unpack() { |
593 |
- default |
594 |
- if use doc; then |
595 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
596 |
- fi |
597 |
-} |
598 |
- |
599 |
-pc_incdir() { |
600 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
601 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
602 |
-} |
603 |
- |
604 |
-pc_libdir() { |
605 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
606 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
607 |
-} |
608 |
- |
609 |
-pc_libs() { |
610 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
611 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
612 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
613 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
614 |
-} |
615 |
- |
616 |
-python_prepare_all() { |
617 |
- # scipy automatically detects libraries by default |
618 |
- export {FFTW,FFTW3,UMFPACK}=None |
619 |
- use sparse && unset UMFPACK |
620 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
621 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
622 |
- [[ ${CHOST} == *-darwin* ]] \ |
623 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
624 |
- || append-ldflags -shared |
625 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
626 |
- # hack to force F77 to be FC until bug #278772 is fixed |
627 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
628 |
- export F90="${FC}" |
629 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
630 |
- append-fflags -fPIC |
631 |
- |
632 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
633 |
- cat >> site.cfg <<-EOF || die |
634 |
- [blas] |
635 |
- include_dirs = $(pc_incdir cblas) |
636 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
637 |
- blas_libs = $(pc_libs cblas blas) |
638 |
- [lapack] |
639 |
- library_dirs = $(pc_libdir lapack):${libdir} |
640 |
- lapack_libs = $(pc_libs lapack) |
641 |
- EOF |
642 |
- cat >> setup.cfg <<-EOF || die |
643 |
- [options] |
644 |
- zip_safe = False |
645 |
- EOF |
646 |
- |
647 |
- # Drop hashes to force rebuild of cython based .c code |
648 |
- rm cythonize.dat || die |
649 |
- |
650 |
- # TODO |
651 |
- sed -e 's:test_magic_square_sparse_no_presolve:_&:' \ |
652 |
- -i scipy/optimize/tests/test_linprog.py || die |
653 |
- sed -e "s:== 'levy_stable':in ('levy_stable', 'crystalball', 'ncf'):" \ |
654 |
- -i scipy/stats/tests/test_continuous_basic.py || die |
655 |
- |
656 |
- distutils-r1_python_prepare_all |
657 |
-} |
658 |
- |
659 |
-python_configure_all() { |
660 |
- # bug 721860 |
661 |
- test-flag-FC -fallow-argument-mismatch && |
662 |
- append-fflags -fallow-argument-mismatch |
663 |
-} |
664 |
- |
665 |
-python_compile() { |
666 |
- # FIXME: parallel python building fails, bug #614464 |
667 |
- export MAKEOPTS=-j1 |
668 |
- |
669 |
- ${EPYTHON} tools/cythonize.py || die |
670 |
- distutils-r1_python_compile \ |
671 |
- ${SCIPY_FCONFIG} |
672 |
-} |
673 |
- |
674 |
-python_test() { |
675 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
676 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
677 |
- cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available" |
678 |
- PYTHONPATH=. "${EPYTHON}" -c " |
679 |
-import scipy, sys |
680 |
-r = scipy.test('fast', verbose=2) |
681 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
682 |
-} |
683 |
- |
684 |
-python_install_all() { |
685 |
- use doc && \ |
686 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
687 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
688 |
- distutils-r1_python_install_all |
689 |
-} |
690 |
- |
691 |
-python_install() { |
692 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
693 |
- python_optimize |
694 |
-} |
695 |
- |
696 |
-pkg_postinst() { |
697 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
698 |
- elog "to your prefered image viewer. Example:" |
699 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
700 |
-} |
701 |
|
702 |
diff --git a/dev-python/scipy/scipy-1.5.4.ebuild b/dev-python/scipy/scipy-1.5.4.ebuild |
703 |
deleted file mode 100644 |
704 |
index 438d773e181..00000000000 |
705 |
--- a/dev-python/scipy/scipy-1.5.4.ebuild |
706 |
+++ /dev/null |
707 |
@@ -1,160 +0,0 @@ |
708 |
-# Copyright 1999-2021 Gentoo Authors |
709 |
-# Distributed under the terms of the GNU General Public License v2 |
710 |
- |
711 |
-EAPI=6 |
712 |
- |
713 |
-PYTHON_COMPAT=( python3_{7..9} ) |
714 |
-PYTHON_REQ_USE="threads(+)" |
715 |
- |
716 |
-DOC_PV=${PV} |
717 |
- |
718 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
719 |
- |
720 |
-DESCRIPTION="Scientific algorithms library for Python" |
721 |
-HOMEPAGE="https://www.scipy.org/" |
722 |
-SRC_URI=" |
723 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
724 |
- doc? ( |
725 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
726 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
727 |
- )" |
728 |
- |
729 |
-LICENSE="BSD LGPL-2" |
730 |
-SLOT="0" |
731 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
732 |
-IUSE="doc sparse test" |
733 |
-RESTRICT="!test? ( test )" |
734 |
- |
735 |
-CDEPEND=" |
736 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
737 |
- sci-libs/arpack:0= |
738 |
- virtual/cblas |
739 |
- virtual/lapack |
740 |
- sparse? ( sci-libs/umfpack:0= )" |
741 |
-DEPEND="${CDEPEND} |
742 |
- dev-lang/swig |
743 |
- >=dev-python/cython-0.29.13[${PYTHON_USEDEP}] |
744 |
- >=dev-python/setuptools-36[${PYTHON_USEDEP}] |
745 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
746 |
- virtual/pkgconfig |
747 |
- doc? ( app-arch/unzip ) |
748 |
- test? ( |
749 |
- dev-python/nose[${PYTHON_USEDEP}] |
750 |
- dev-python/pytest[${PYTHON_USEDEP}] |
751 |
- )" |
752 |
-RDEPEND="${CDEPEND} |
753 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
754 |
- |
755 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
756 |
- |
757 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
758 |
- |
759 |
-src_unpack() { |
760 |
- default |
761 |
- if use doc; then |
762 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
763 |
- fi |
764 |
-} |
765 |
- |
766 |
-pc_incdir() { |
767 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
768 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
769 |
-} |
770 |
- |
771 |
-pc_libdir() { |
772 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
773 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
774 |
-} |
775 |
- |
776 |
-pc_libs() { |
777 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
778 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
779 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
780 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
781 |
-} |
782 |
- |
783 |
-python_prepare_all() { |
784 |
- # scipy automatically detects libraries by default |
785 |
- export {FFTW,FFTW3,UMFPACK}=None |
786 |
- use sparse && unset UMFPACK |
787 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
788 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
789 |
- [[ ${CHOST} == *-darwin* ]] \ |
790 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
791 |
- || append-ldflags -shared |
792 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
793 |
- # hack to force F77 to be FC until bug #278772 is fixed |
794 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
795 |
- export F90="${FC}" |
796 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
797 |
- append-fflags -fPIC |
798 |
- |
799 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
800 |
- cat >> site.cfg <<-EOF || die |
801 |
- [blas] |
802 |
- include_dirs = $(pc_incdir cblas) |
803 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
804 |
- blas_libs = $(pc_libs cblas blas) |
805 |
- [lapack] |
806 |
- library_dirs = $(pc_libdir lapack):${libdir} |
807 |
- lapack_libs = $(pc_libs lapack) |
808 |
- EOF |
809 |
- cat >> setup.cfg <<-EOF || die |
810 |
- [options] |
811 |
- zip_safe = False |
812 |
- EOF |
813 |
- |
814 |
- # Drop hashes to force rebuild of cython based .c code |
815 |
- rm cythonize.dat || die |
816 |
- |
817 |
- # TODO |
818 |
- sed -e 's:test_magic_square_sparse_no_presolve:_&:' \ |
819 |
- -i scipy/optimize/tests/test_linprog.py || die |
820 |
- sed -e "s:== 'levy_stable':in ('levy_stable', 'crystalball', 'ncf'):" \ |
821 |
- -i scipy/stats/tests/test_continuous_basic.py || die |
822 |
- |
823 |
- distutils-r1_python_prepare_all |
824 |
-} |
825 |
- |
826 |
-python_configure_all() { |
827 |
- # bug 721860 |
828 |
- test-flag-FC -fallow-argument-mismatch && |
829 |
- append-fflags -fallow-argument-mismatch |
830 |
-} |
831 |
- |
832 |
-python_compile() { |
833 |
- # FIXME: parallel python building fails, bug #614464 |
834 |
- export MAKEOPTS=-j1 |
835 |
- |
836 |
- ${EPYTHON} tools/cythonize.py || die |
837 |
- distutils-r1_python_compile \ |
838 |
- ${SCIPY_FCONFIG} |
839 |
-} |
840 |
- |
841 |
-python_test() { |
842 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
843 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
844 |
- cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available" |
845 |
- PYTHONPATH=. "${EPYTHON}" -c " |
846 |
-import scipy, sys |
847 |
-r = scipy.test('fast', verbose=2) |
848 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
849 |
-} |
850 |
- |
851 |
-python_install_all() { |
852 |
- use doc && \ |
853 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
854 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
855 |
- distutils-r1_python_install_all |
856 |
-} |
857 |
- |
858 |
-python_install() { |
859 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
860 |
- python_optimize |
861 |
-} |
862 |
- |
863 |
-pkg_postinst() { |
864 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
865 |
- elog "to your prefered image viewer. Example:" |
866 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
867 |
-} |
868 |
|
869 |
diff --git a/dev-python/scipy/scipy-1.6.0.ebuild b/dev-python/scipy/scipy-1.6.0.ebuild |
870 |
deleted file mode 100644 |
871 |
index a1948aba749..00000000000 |
872 |
--- a/dev-python/scipy/scipy-1.6.0.ebuild |
873 |
+++ /dev/null |
874 |
@@ -1,155 +0,0 @@ |
875 |
-# Copyright 1999-2021 Gentoo Authors |
876 |
-# Distributed under the terms of the GNU General Public License v2 |
877 |
- |
878 |
-EAPI=7 |
879 |
- |
880 |
-PYTHON_COMPAT=( python3_{7..9} ) |
881 |
-PYTHON_REQ_USE="threads(+)" |
882 |
- |
883 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
884 |
- |
885 |
-DESCRIPTION="Scientific algorithms library for Python" |
886 |
-HOMEPAGE="https://www.scipy.org/" |
887 |
-SRC_URI=" |
888 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
889 |
- doc? ( |
890 |
- https://docs.scipy.org/doc/${P}/${PN}-html-${PV}.zip -> ${P}-html.zip |
891 |
- https://docs.scipy.org/doc/${P}/${PN}-ref-${PV}.pdf -> ${P}-ref.pdf |
892 |
- )" |
893 |
- |
894 |
-LICENSE="BSD LGPL-2" |
895 |
-SLOT="0" |
896 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
897 |
-IUSE="doc sparse test" |
898 |
-RESTRICT="!test? ( test )" |
899 |
- |
900 |
-DEPEND=" |
901 |
- >=dev-python/numpy-1.16.5[lapack,${PYTHON_USEDEP}] |
902 |
- sci-libs/arpack:0= |
903 |
- virtual/cblas |
904 |
- virtual/lapack |
905 |
- sparse? ( sci-libs/umfpack:0= )" |
906 |
-RDEPEND="${DEPEND} |
907 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
908 |
-BDEPEND=" |
909 |
- dev-lang/swig |
910 |
- >=dev-python/cython-0.29.13[${PYTHON_USEDEP}] |
911 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
912 |
- virtual/pkgconfig |
913 |
- doc? ( app-arch/unzip ) |
914 |
- test? ( |
915 |
- dev-python/nose[${PYTHON_USEDEP}] |
916 |
- dev-python/pytest[${PYTHON_USEDEP}] |
917 |
- )" |
918 |
- |
919 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
920 |
- |
921 |
-src_unpack() { |
922 |
- default |
923 |
- if use doc; then |
924 |
- unzip -qo "${DISTDIR}"/${P}-html.zip -d html || die |
925 |
- fi |
926 |
-} |
927 |
- |
928 |
-pc_incdir() { |
929 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
930 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
931 |
-} |
932 |
- |
933 |
-pc_libdir() { |
934 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
935 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
936 |
-} |
937 |
- |
938 |
-pc_libs() { |
939 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
940 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
941 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
942 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
943 |
-} |
944 |
- |
945 |
-python_prepare_all() { |
946 |
- # scipy automatically detects libraries by default |
947 |
- export {FFTW,FFTW3,UMFPACK}=None |
948 |
- use sparse && unset UMFPACK |
949 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
950 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
951 |
- [[ ${CHOST} == *-darwin* ]] \ |
952 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
953 |
- || append-ldflags -shared |
954 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
955 |
- # hack to force F77 to be FC until bug #278772 is fixed |
956 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
957 |
- export F90="${FC}" |
958 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
959 |
- append-fflags -fPIC |
960 |
- |
961 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
962 |
- cat >> site.cfg <<-EOF || die |
963 |
- [blas] |
964 |
- include_dirs = $(pc_incdir cblas) |
965 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
966 |
- blas_libs = $(pc_libs cblas blas) |
967 |
- [lapack] |
968 |
- library_dirs = $(pc_libdir lapack):${libdir} |
969 |
- lapack_libs = $(pc_libs lapack) |
970 |
- EOF |
971 |
- cat >> setup.cfg <<-EOF || die |
972 |
- [options] |
973 |
- zip_safe = False |
974 |
- EOF |
975 |
- |
976 |
- # Drop hashes to force rebuild of cython based .c code |
977 |
- rm cythonize.dat || die |
978 |
- |
979 |
- # TODO |
980 |
- sed -e 's:test_magic_square_sparse_no_presolve:_&:' \ |
981 |
- -i scipy/optimize/tests/test_linprog.py || die |
982 |
- sed -e "s:== 'levy_stable':in ('levy_stable', 'crystalball', 'ncf'):" \ |
983 |
- -i scipy/stats/tests/test_continuous_basic.py || die |
984 |
- |
985 |
- distutils-r1_python_prepare_all |
986 |
-} |
987 |
- |
988 |
-python_configure_all() { |
989 |
- # bug 721860 |
990 |
- test-flag-FC -fallow-argument-mismatch && |
991 |
- append-fflags -fallow-argument-mismatch |
992 |
-} |
993 |
- |
994 |
-python_compile() { |
995 |
- # FIXME: parallel python building fails, bug #614464 |
996 |
- export MAKEOPTS=-j1 |
997 |
- |
998 |
- ${EPYTHON} tools/cythonize.py || die |
999 |
- distutils-r1_python_compile \ |
1000 |
- ${SCIPY_FCONFIG} |
1001 |
-} |
1002 |
- |
1003 |
-python_test() { |
1004 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
1005 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
1006 |
- cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available" |
1007 |
- PYTHONPATH=. "${EPYTHON}" -c " |
1008 |
-import scipy, sys |
1009 |
-r = scipy.test('fast', verbose=2) |
1010 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
1011 |
-} |
1012 |
- |
1013 |
-python_install_all() { |
1014 |
- use doc && \ |
1015 |
- local DOCS=( "${DISTDIR}"/${P}-ref.pdf ) \ |
1016 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
1017 |
- distutils-r1_python_install_all |
1018 |
-} |
1019 |
- |
1020 |
-python_install() { |
1021 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
1022 |
- python_optimize |
1023 |
-} |
1024 |
- |
1025 |
-pkg_postinst() { |
1026 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
1027 |
- elog "to your prefered image viewer. Example:" |
1028 |
- elog " echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
1029 |
-} |
1030 |
|
1031 |
diff --git a/dev-python/scipy/scipy-1.6.1.ebuild b/dev-python/scipy/scipy-1.6.1.ebuild |
1032 |
deleted file mode 100644 |
1033 |
index a1948aba749..00000000000 |
1034 |
--- a/dev-python/scipy/scipy-1.6.1.ebuild |
1035 |
+++ /dev/null |
1036 |
@@ -1,155 +0,0 @@ |
1037 |
-# Copyright 1999-2021 Gentoo Authors |
1038 |
-# Distributed under the terms of the GNU General Public License v2 |
1039 |
- |
1040 |
-EAPI=7 |
1041 |
- |
1042 |
-PYTHON_COMPAT=( python3_{7..9} ) |
1043 |
-PYTHON_REQ_USE="threads(+)" |
1044 |
- |
1045 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
1046 |
- |
1047 |
-DESCRIPTION="Scientific algorithms library for Python" |
1048 |
-HOMEPAGE="https://www.scipy.org/" |
1049 |
-SRC_URI=" |
1050 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
1051 |
- doc? ( |
1052 |
- https://docs.scipy.org/doc/${P}/${PN}-html-${PV}.zip -> ${P}-html.zip |
1053 |
- https://docs.scipy.org/doc/${P}/${PN}-ref-${PV}.pdf -> ${P}-ref.pdf |
1054 |
- )" |
1055 |
- |
1056 |
-LICENSE="BSD LGPL-2" |
1057 |
-SLOT="0" |
1058 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
1059 |
-IUSE="doc sparse test" |
1060 |
-RESTRICT="!test? ( test )" |
1061 |
- |
1062 |
-DEPEND=" |
1063 |
- >=dev-python/numpy-1.16.5[lapack,${PYTHON_USEDEP}] |
1064 |
- sci-libs/arpack:0= |
1065 |
- virtual/cblas |
1066 |
- virtual/lapack |
1067 |
- sparse? ( sci-libs/umfpack:0= )" |
1068 |
-RDEPEND="${DEPEND} |
1069 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
1070 |
-BDEPEND=" |
1071 |
- dev-lang/swig |
1072 |
- >=dev-python/cython-0.29.13[${PYTHON_USEDEP}] |
1073 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
1074 |
- virtual/pkgconfig |
1075 |
- doc? ( app-arch/unzip ) |
1076 |
- test? ( |
1077 |
- dev-python/nose[${PYTHON_USEDEP}] |
1078 |
- dev-python/pytest[${PYTHON_USEDEP}] |
1079 |
- )" |
1080 |
- |
1081 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
1082 |
- |
1083 |
-src_unpack() { |
1084 |
- default |
1085 |
- if use doc; then |
1086 |
- unzip -qo "${DISTDIR}"/${P}-html.zip -d html || die |
1087 |
- fi |
1088 |
-} |
1089 |
- |
1090 |
-pc_incdir() { |
1091 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
1092 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
1093 |
-} |
1094 |
- |
1095 |
-pc_libdir() { |
1096 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
1097 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
1098 |
-} |
1099 |
- |
1100 |
-pc_libs() { |
1101 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
1102 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
1103 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
1104 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
1105 |
-} |
1106 |
- |
1107 |
-python_prepare_all() { |
1108 |
- # scipy automatically detects libraries by default |
1109 |
- export {FFTW,FFTW3,UMFPACK}=None |
1110 |
- use sparse && unset UMFPACK |
1111 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
1112 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
1113 |
- [[ ${CHOST} == *-darwin* ]] \ |
1114 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
1115 |
- || append-ldflags -shared |
1116 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
1117 |
- # hack to force F77 to be FC until bug #278772 is fixed |
1118 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
1119 |
- export F90="${FC}" |
1120 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
1121 |
- append-fflags -fPIC |
1122 |
- |
1123 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
1124 |
- cat >> site.cfg <<-EOF || die |
1125 |
- [blas] |
1126 |
- include_dirs = $(pc_incdir cblas) |
1127 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
1128 |
- blas_libs = $(pc_libs cblas blas) |
1129 |
- [lapack] |
1130 |
- library_dirs = $(pc_libdir lapack):${libdir} |
1131 |
- lapack_libs = $(pc_libs lapack) |
1132 |
- EOF |
1133 |
- cat >> setup.cfg <<-EOF || die |
1134 |
- [options] |
1135 |
- zip_safe = False |
1136 |
- EOF |
1137 |
- |
1138 |
- # Drop hashes to force rebuild of cython based .c code |
1139 |
- rm cythonize.dat || die |
1140 |
- |
1141 |
- # TODO |
1142 |
- sed -e 's:test_magic_square_sparse_no_presolve:_&:' \ |
1143 |
- -i scipy/optimize/tests/test_linprog.py || die |
1144 |
- sed -e "s:== 'levy_stable':in ('levy_stable', 'crystalball', 'ncf'):" \ |
1145 |
- -i scipy/stats/tests/test_continuous_basic.py || die |
1146 |
- |
1147 |
- distutils-r1_python_prepare_all |
1148 |
-} |
1149 |
- |
1150 |
-python_configure_all() { |
1151 |
- # bug 721860 |
1152 |
- test-flag-FC -fallow-argument-mismatch && |
1153 |
- append-fflags -fallow-argument-mismatch |
1154 |
-} |
1155 |
- |
1156 |
-python_compile() { |
1157 |
- # FIXME: parallel python building fails, bug #614464 |
1158 |
- export MAKEOPTS=-j1 |
1159 |
- |
1160 |
- ${EPYTHON} tools/cythonize.py || die |
1161 |
- distutils-r1_python_compile \ |
1162 |
- ${SCIPY_FCONFIG} |
1163 |
-} |
1164 |
- |
1165 |
-python_test() { |
1166 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
1167 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
1168 |
- cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available" |
1169 |
- PYTHONPATH=. "${EPYTHON}" -c " |
1170 |
-import scipy, sys |
1171 |
-r = scipy.test('fast', verbose=2) |
1172 |
-sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
1173 |
-} |
1174 |
- |
1175 |
-python_install_all() { |
1176 |
- use doc && \ |
1177 |
- local DOCS=( "${DISTDIR}"/${P}-ref.pdf ) \ |
1178 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
1179 |
- distutils-r1_python_install_all |
1180 |
-} |
1181 |
- |
1182 |
-python_install() { |
1183 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
1184 |
- python_optimize |
1185 |
-} |
1186 |
- |
1187 |
-pkg_postinst() { |
1188 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
1189 |
- elog "to your prefered image viewer. Example:" |
1190 |
- elog " echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
1191 |
-} |