aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2020-06-14 10:02:26 +0800
committerBenda Xu <heroxbd@gentoo.org>2020-06-14 10:02:47 +0800
commit7ae9a466035dd80007f1a5f69f3af01199c087cf (patch)
treebee35f295ca95a3902dec9c373d5d771548e5b0c
parentsci-biology/dargcc_bidsdata: new packagenew packagenew package (diff)
downloadsci-7ae9a466035dd80007f1a5f69f3af01199c087cf.tar.gz
sci-7ae9a466035dd80007f1a5f69f3af01199c087cf.tar.bz2
sci-7ae9a466035dd80007f1a5f69f3af01199c087cf.zip
sci-libs/pytorch: do not rerun compile during install.
This is a workaround for the convolved torch cmake build system. Package-Manager: Portage-2.3.88, Repoman-2.3.18 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
-rw-r--r--sci-libs/pytorch/pytorch-1.4.0_p0.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/sci-libs/pytorch/pytorch-1.4.0_p0.ebuild b/sci-libs/pytorch/pytorch-1.4.0_p0.ebuild
index 90c7e9a9d..e77582078 100644
--- a/sci-libs/pytorch/pytorch-1.4.0_p0.ebuild
+++ b/sci-libs/pytorch/pytorch-1.4.0_p0.ebuild
@@ -194,6 +194,9 @@ src_configure() {
if use python; then
CMAKE_BUILD_DIR=${BUILD_DIR} distutils-r1_src_configure
fi
+
+ # do not rerun cmake and the build process in src_install
+ sed '/RERUN/,+1d' -i ${BUILD_DIR}/build.ninja || die
}
src_compile() {