1 |
commit: 584657288bd44f14519d792b4b434e893c5e2bb6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 27 09:43:31 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 27 10:02:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58465728 |
7 |
|
8 |
dev-python/threadpoolctl: Switch to PEP 517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../threadpoolctl/threadpoolctl-3.0.0-r1.ebuild | 25 ++++++++++++++++++++++ |
13 |
1 file changed, 25 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/threadpoolctl/threadpoolctl-3.0.0-r1.ebuild b/dev-python/threadpoolctl/threadpoolctl-3.0.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..78a3f632d1ca |
18 |
--- /dev/null |
19 |
+++ b/dev-python/threadpoolctl/threadpoolctl-3.0.0-r1.ebuild |
20 |
@@ -0,0 +1,25 @@ |
21 |
+# Copyright 2020-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=flit |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Limit the number of threads used in native libs that have their own threadpool" |
31 |
+HOMEPAGE="https://github.com/joblib/threadpoolctl" |
32 |
+SRC_URI="https://github.com/joblib/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
37 |
+ |
38 |
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" |
39 |
+ |
40 |
+distutils_enable_tests pytest |
41 |
+ |
42 |
+src_prepare() { |
43 |
+ sed -i -e '2,3s:flit:&_core:' pyproject.toml || die |
44 |
+ distutils-r1_src_prepare |
45 |
+} |