1 |
commit: 800a6f0f896180c1be8d9e83f026ef17c6d2e411 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 25 04:27:28 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 25 04:27:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=800a6f0f |
7 |
|
8 |
sci-libs/scikit-learn: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sci-libs/scikit-learn/Manifest | 1 - |
13 |
.../scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild | 71 ---------------------- |
14 |
2 files changed, 72 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/scikit-learn/Manifest b/sci-libs/scikit-learn/Manifest |
17 |
index ca041d4e518..f406527664b 100644 |
18 |
--- a/sci-libs/scikit-learn/Manifest |
19 |
+++ b/sci-libs/scikit-learn/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST scikit-learn-0.22.2_p1.tar.gz 7034850 BLAKE2B 41c362ef6594e837a9fc798837e666fbb51e33954fdf700292650204fd9d1ab4fc4d1695890d02a24ad68f4dcc2d3cde8f0827eca70c6fb9a6f0e5c0d9c04fd5 SHA512 20bcda5c65f76bce9b71c5b5fb1b499f7f3a7a3f6fa5fade80a38dc658cb434e16e9d5a4906a9657157a5cc90a6d51080575d6e510207baa9f8b06c4fa761d5b |
22 |
DIST scikit-learn-0.24.2.tar.gz 7589697 BLAKE2B a5a32db690e76d6ecfcb12d57a7f84ebcc7e67ecb73258c1d923f9b98a9d87c46aac96918ef7c3d8741f5dbeb46f169c73a7744fb7b92e6ab5cf42101a6bc2f1 SHA512 2159baf63414b9594918b40e1b72af2ab47349335ad4e3afd9756921f786737ed41d6deb333881e8c5c6e1f7ce9cfa10691b966dc2476c48c051621f9049d2ee |
23 |
|
24 |
diff --git a/sci-libs/scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild b/sci-libs/scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild |
25 |
deleted file mode 100644 |
26 |
index 65589e8274d..00000000000 |
27 |
--- a/sci-libs/scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,71 +0,0 @@ |
30 |
-# Copyright 2020 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=7 |
34 |
- |
35 |
-PYTHON_COMPAT=( python3_{7,8} ) |
36 |
-inherit distutils-r1 |
37 |
- |
38 |
-MY_PV="${PV//_p/.post}" |
39 |
- |
40 |
-DESCRIPTION="Machine learning library for Python" |
41 |
-HOMEPAGE="https://scikit-learn.org/stable/" |
42 |
-SRC_URI="https://github.com/scikit-learn/scikit-learn/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
43 |
-#ffhttps://github.com/scikit-learn/scikit-learn/archive/0.22.2.post1.tar.gz |
44 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
45 |
- |
46 |
-LICENSE="BSD" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="amd64 ~arm64 ~ppc64 x86" |
49 |
-IUSE="examples" |
50 |
- |
51 |
-RDEPEND=" |
52 |
- dev-python/wheel[${PYTHON_USEDEP}] |
53 |
- dev-python/cython[${PYTHON_USEDEP}] |
54 |
- dev-python/joblib[${PYTHON_USEDEP}] |
55 |
- dev-python/numpy[${PYTHON_USEDEP}] |
56 |
- dev-python/scipy[${PYTHON_USEDEP}] |
57 |
- virtual/blas:= |
58 |
- virtual/cblas:= |
59 |
-" |
60 |
-DEPEND=" |
61 |
- virtual/blas:= |
62 |
- virtual/cblas:= |
63 |
-" |
64 |
- |
65 |
-distutils_enable_tests pytest |
66 |
- |
67 |
-python_prepare_all() { |
68 |
- # scikits-learn now uses the horrible numpy.distutils automagic |
69 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
70 |
- |
71 |
- # remove bundled cblas |
72 |
- rm -rf sklearn/src || die "failed to remove bundled cblas" |
73 |
- |
74 |
- distutils-r1_python_prepare_all |
75 |
-} |
76 |
- |
77 |
-python_compile() { |
78 |
- distutils-r1_python_compile ${SCIPY_FCONFIG} |
79 |
-} |
80 |
- |
81 |
-python_test() { |
82 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
83 |
- pushd "${TEST_DIR}/lib" >/dev/null || die |
84 |
- pytest -vv || die "testing failed with ${EPYTHON}" |
85 |
- popd >/dev/null || die |
86 |
-} |
87 |
- |
88 |
-python_install() { |
89 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
90 |
-} |
91 |
- |
92 |
-python_install_all() { |
93 |
- find "${S}" -name \*LICENSE.txt -delete |
94 |
- distutils-r1_python_install_all |
95 |
- if use examples; then |
96 |
- dodoc -r examples |
97 |
- docompress -x /usr/share/doc/${PF}/examples |
98 |
- fi |
99 |
- |
100 |
-} |