1 |
commit: 7c9f5b4a7858c396d473a90c0fda5fbc9a018809 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 1 18:57:59 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 1 18:57:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9f5b4a |
7 |
|
8 |
sci-libs/tensorflow: Fix Python dependencies |
9 |
|
10 |
DISTUTILS_USE_SETUPTOOLS is not used with DISTUTILS_OPTIONAL, the dep |
11 |
on setuptools needs to be declared explicitly. |
12 |
|
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
sci-libs/tensorflow/tensorflow-2.5.0-r3.ebuild | 15 ++++++--------- |
16 |
sci-libs/tensorflow/tensorflow-2.7.0.ebuild | 14 +++++--------- |
17 |
2 files changed, 11 insertions(+), 18 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/tensorflow/tensorflow-2.5.0-r3.ebuild b/sci-libs/tensorflow/tensorflow-2.5.0-r3.ebuild |
20 |
index e3c79720e512..0c3051005d95 100644 |
21 |
--- a/sci-libs/tensorflow/tensorflow-2.5.0-r3.ebuild |
22 |
+++ b/sci-libs/tensorflow/tensorflow-2.5.0-r3.ebuild |
23 |
@@ -1,11 +1,10 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=7 |
29 |
|
30 |
DISTUTILS_OPTIONAL=1 |
31 |
PYTHON_COMPAT=( python3_{7,8,9} ) |
32 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
33 |
MY_PV=${PV/_rc/-rc} |
34 |
MY_P=${PN}-${MY_PV} |
35 |
|
36 |
@@ -106,6 +105,7 @@ RDEPEND=" |
37 |
>=dev-python/opt-einsum-3.3.0[${PYTHON_USEDEP}] |
38 |
>=dev-python/protobuf-python-3.13.0[${PYTHON_USEDEP}] |
39 |
dev-python/pybind11[${PYTHON_USEDEP}] |
40 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
41 |
dev-python/six[${PYTHON_USEDEP}] |
42 |
dev-python/tblib[${PYTHON_USEDEP}] |
43 |
dev-python/termcolor[${PYTHON_USEDEP}] |
44 |
@@ -117,11 +117,7 @@ RDEPEND=" |
45 |
>=sci-libs/keras-preprocessing-1.1.2[${PYTHON_USEDEP}] |
46 |
>=sci-visualization/tensorboard-2.5.0[${PYTHON_USEDEP}] |
47 |
)" |
48 |
-DEPEND="${RDEPEND} |
49 |
- python? ( |
50 |
- dev-python/mock |
51 |
- dev-python/setuptools |
52 |
- )" |
53 |
+DEPEND="${RDEPEND}" |
54 |
PDEPEND="python? ( |
55 |
>=sci-libs/tensorflow-estimator-2.5.0[${PYTHON_USEDEP}] |
56 |
)" |
57 |
@@ -135,8 +131,9 @@ BDEPEND=" |
58 |
) |
59 |
!python? ( dev-lang/python ) |
60 |
python? ( |
61 |
- dev-python/cython |
62 |
- dev-python/mock |
63 |
+ dev-python/cython[${PYTHON_USEDEP}] |
64 |
+ dev-python/mock[${PYTHON_USEDEP}] |
65 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
66 |
>=dev-python/grpcio-tools-1.28 |
67 |
)" |
68 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
69 |
|
70 |
diff --git a/sci-libs/tensorflow/tensorflow-2.7.0.ebuild b/sci-libs/tensorflow/tensorflow-2.7.0.ebuild |
71 |
index 3cfc701dff2f..2ab771170c61 100644 |
72 |
--- a/sci-libs/tensorflow/tensorflow-2.7.0.ebuild |
73 |
+++ b/sci-libs/tensorflow/tensorflow-2.7.0.ebuild |
74 |
@@ -1,11 +1,10 @@ |
75 |
-# Copyright 1999-2021 Gentoo Authors |
76 |
+# Copyright 1999-2022 Gentoo Authors |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
|
79 |
EAPI=7 |
80 |
|
81 |
DISTUTILS_OPTIONAL=1 |
82 |
PYTHON_COMPAT=( python3_{7,8,9} ) |
83 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
84 |
MY_PV=${PV/_rc/-rc} |
85 |
MY_P=${PN}-${MY_PV} |
86 |
|
87 |
@@ -118,11 +117,7 @@ RDEPEND=" |
88 |
>=net-libs/google-cloud-cpp-0.10.0 |
89 |
>=sci-visualization/tensorboard-2.7.0[${PYTHON_USEDEP}] |
90 |
)" |
91 |
-DEPEND="${RDEPEND} |
92 |
- python? ( |
93 |
- dev-python/mock |
94 |
- dev-python/setuptools |
95 |
- )" |
96 |
+DEPEND="${RDEPEND}" |
97 |
PDEPEND="python? ( |
98 |
>=sci-libs/keras-2.7.0[${PYTHON_USEDEP}] |
99 |
>=sci-libs/tensorflow-estimator-2.7.0[${PYTHON_USEDEP}] |
100 |
@@ -137,8 +132,9 @@ BDEPEND=" |
101 |
) |
102 |
!python? ( dev-lang/python ) |
103 |
python? ( |
104 |
- dev-python/cython |
105 |
- dev-python/mock |
106 |
+ dev-python/cython[${PYTHON_USEDEP}] |
107 |
+ dev-python/mock[${PYTHON_USEDEP}] |
108 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
109 |
>=dev-python/grpcio-tools-1.28 |
110 |
)" |
111 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |