commit:     dad0c736cba97bd2cc73f529aa4b10693829a8e9
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  1 07:29:25 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Aug  1 07:30:12 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dad0c736

sci-libs/pytorch: prefixify (by ZongyuZ)

Closes: https://bugs.gentoo.org/911421
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/pytorch/{pytorch-2.0.1.ebuild => pytorch-2.0.1-r1.ebuild} | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sci-libs/pytorch/pytorch-2.0.1.ebuild 
b/sci-libs/pytorch/pytorch-2.0.1-r1.ebuild
similarity index 95%
rename from sci-libs/pytorch/pytorch-2.0.1.ebuild
rename to sci-libs/pytorch/pytorch-2.0.1-r1.ebuild
index b778dcb357c3..11f7d447a1e1 100644
--- a/sci-libs/pytorch/pytorch-2.0.1.ebuild
+++ b/sci-libs/pytorch/pytorch-2.0.1-r1.ebuild
@@ -7,7 +7,7 @@ DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..11} )
 DISTUTILS_SINGLE_IMPL=1
 DISTUTILS_EXT=1
-inherit distutils-r1
+inherit distutils-r1 prefix
 
 DESCRIPTION="Tensors and Dynamic neural networks in Python"
 HOMEPAGE="https://pytorch.org/";
@@ -49,6 +49,8 @@ src_prepare() {
                tools/setup_helpers/env.py \
                || die
        distutils-r1_src_prepare
+
+       hprefixify tools/setup_helpers/env.py
 }
 
 src_compile() {

Reply via email to