1 |
commit: 4ccd5ccf3bbc13d8b56e956ae65c8fa36c179f60 |
2 |
Author: Miezhiko <Miezhiko <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Nov 11 08:02:42 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 22 12:42:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4ccd5ccf |
7 |
|
8 |
sci-libs/pythorch: solve conflict with system pybind11 |
9 |
|
10 |
Signed-off-by: Miezhiko <Miezhiko <AT> gmail.com> |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
sci-libs/pytorch/pytorch-1.10.0.ebuild | 4 +++- |
14 |
1 file changed, 3 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/sci-libs/pytorch/pytorch-1.10.0.ebuild b/sci-libs/pytorch/pytorch-1.10.0.ebuild |
17 |
index d3d347325..1aa85911f 100644 |
18 |
--- a/sci-libs/pytorch/pytorch-1.10.0.ebuild |
19 |
+++ b/sci-libs/pytorch/pytorch-1.10.0.ebuild |
20 |
@@ -108,7 +108,7 @@ DEPEND="${RDEPEND} |
21 |
test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
22 |
dev-cpp/tbb |
23 |
app-arch/zstd |
24 |
- !dev-python/pybind11 |
25 |
+ dev-python/pybind11[${PYTHON_USEDEP}] |
26 |
dev-python/typing-extensions[${PYTHON_USEDEP}] |
27 |
sys-fabric/libibverbs |
28 |
sys-process/numactl |
29 |
@@ -321,6 +321,8 @@ src_install() { |
30 |
python_foreach_impl python_optimize |
31 |
fi |
32 |
|
33 |
+ rm -rfv "${ED}/usr/include/pybind11" |
34 |
+ |
35 |
find "${ED}/usr/${LIB}" -name "*.a" -exec rm -fv {} \; |
36 |
|
37 |
use test && rm -rfv "${ED}/usr/test" "${ED}"/usr/bin/test_{api,jit} |