commit: 3ada98e36e771cba1c7e4eb4833421b8f4fe745d Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Tue Jan 12 10:07:26 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> CommitDate: Tue Jan 12 10:07:40 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3ada98e3
sci-libs/pytorch: use python_get_sitedir for install path Bug: https://github.com/gentoo/sci/issues/1039 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> sci-libs/pytorch/pytorch-1.4.0_p0-r1.ebuild | 4 ++-- sci-libs/pytorch/pytorch-1.6.0-r1.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sci-libs/pytorch/pytorch-1.4.0_p0-r1.ebuild b/sci-libs/pytorch/pytorch-1.4.0_p0-r1.ebuild index 8c84e7a09..7e837fad2 100644 --- a/sci-libs/pytorch/pytorch-1.4.0_p0-r1.ebuild +++ b/sci-libs/pytorch/pytorch-1.4.0_p0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -234,7 +234,7 @@ src_install() { if use python; then install_shm_manager() { - TORCH_BIN_DIR="${ED}/usr/lib64/${EPYTHON}/site-packages/torch/bin" + TORCH_BIN_DIR="${ED}$(python_get_sitedir)/torch/bin" mkdir -pv ${TORCH_BIN_DIR} cp -v "${ED}/usr/bin/torch_shm_manager" "${TORCH_BIN_DIR}" diff --git a/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild b/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild index 807308c4e..ac8790dab 100644 --- a/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild +++ b/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -263,7 +263,7 @@ src_install() { if use python; then install_shm_manager() { - TORCH_BIN_DIR="${ED}/usr/lib64/${EPYTHON}/site-packages/torch/bin" + TORCH_BIN_DIR="${ED}$(python_get_sitedir)/torch/bin" mkdir -pv ${TORCH_BIN_DIR} cp -v "${ED}/usr/bin/torch_shm_manager" "${TORCH_BIN_DIR}"
