aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2020-09-14 17:11:41 +0800
committerBenda Xu <heroxbd@gentoo.org>2020-09-14 17:11:55 +0800
commit0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc (patch)
tree196b057b64c4c0dd6e9c9d04d359a1a0a2e82c8d
parentsci-biology/gatk: updated license, copyright, and ebuild style (diff)
downloadsci-0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc.tar.gz
sci-0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc.tar.bz2
sci-0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc.zip
sci-libs/pytorch: Fix patch filename.
Add a necessary build dependency. Reported-By: Hendrik Klug Suggested-By: Horea Christian Closes: https://bugs.gentoo.org/738592 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
-rw-r--r--sci-libs/pytorch/pytorch-1.6.0.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/sci-libs/pytorch/pytorch-1.6.0.ebuild b/sci-libs/pytorch/pytorch-1.6.0.ebuild
index 8c3236244..a6f2ee62c 100644
--- a/sci-libs/pytorch/pytorch-1.6.0.ebuild
+++ b/sci-libs/pytorch/pytorch-1.6.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1 cmake-utils cuda
@@ -94,7 +94,9 @@ RDEPEND="
eigen? ( dev-cpp/eigen )
dev-libs/libuv
"
-BDEPEND=""
+
+#ATen code generation
+BDEPEND="dev-python/pyyaml"
DEPEND="${RDEPEND}
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
@@ -110,7 +112,7 @@ DEPEND="${RDEPEND}
PATCHES=(
"${FILESDIR}"/${PN}-1.6.0-setup.patch
"${FILESDIR}"/${PN}-1.6.0-skip-tests.patch
- "${FILESDIR}"/${PN}-pytorch-1.6.0-global-dlopen.patch
+ "${FILESDIR}"/${PN}-1.6.0-global-dlopen.patch
"${FILESDIR}"/0002-Don-t-build-libtorch-again-for-PyTorch-1.4.0.patch
"${FILESDIR}"/0003-Change-path-to-caffe2-build-dir-made-by-libtorch.patch
"${FILESDIR}"/0005-Change-library-directory-according-to-CMake-build.patch