Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/pytorch/
Date: Mon, 14 Sep 2020 09:12:05
Message-Id: 1600074715.0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc.heroxbd@gentoo
1 commit: 0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 14 09:11:41 2020 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 14 09:11:55 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0a5eeeba
7
8 sci-libs/pytorch: Fix patch filename.
9
10 Add a necessary build dependency.
11
12 Reported-By: Hendrik Klug
13 Suggested-By: Horea Christian
14 Closes: https://bugs.gentoo.org/738592
15 Package-Manager: Portage-3.0.5, Repoman-3.0.1
16 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
17
18 sci-libs/pytorch/pytorch-1.6.0.ebuild | 8 +++++---
19 1 file changed, 5 insertions(+), 3 deletions(-)
20
21 diff --git a/sci-libs/pytorch/pytorch-1.6.0.ebuild b/sci-libs/pytorch/pytorch-1.6.0.ebuild
22 index 8c3236244..a6f2ee62c 100644
23 --- a/sci-libs/pytorch/pytorch-1.6.0.ebuild
24 +++ b/sci-libs/pytorch/pytorch-1.6.0.ebuild
25 @@ -3,7 +3,7 @@
26
27 EAPI=7
28
29 -PYTHON_COMPAT=( python3_6 )
30 +PYTHON_COMPAT=( python3_{6,7,8} )
31
32 inherit distutils-r1 cmake-utils cuda
33
34 @@ -94,7 +94,9 @@ RDEPEND="
35 eigen? ( dev-cpp/eigen )
36 dev-libs/libuv
37 "
38 -BDEPEND=""
39 +
40 +#ATen code generation
41 +BDEPEND="dev-python/pyyaml"
42
43 DEPEND="${RDEPEND}
44 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
45 @@ -110,7 +112,7 @@ DEPEND="${RDEPEND}
46 PATCHES=(
47 "${FILESDIR}"/${PN}-1.6.0-setup.patch
48 "${FILESDIR}"/${PN}-1.6.0-skip-tests.patch
49 - "${FILESDIR}"/${PN}-pytorch-1.6.0-global-dlopen.patch
50 + "${FILESDIR}"/${PN}-1.6.0-global-dlopen.patch
51 "${FILESDIR}"/0002-Don-t-build-libtorch-again-for-PyTorch-1.4.0.patch
52 "${FILESDIR}"/0003-Change-path-to-caffe2-build-dir-made-by-libtorch.patch
53 "${FILESDIR}"/0005-Change-library-directory-according-to-CMake-build.patch