commit:     ca34cd09adc1d62e9f63329c1abd48604cdaa145
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 28 08:02:02 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Apr 28 08:02:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca34cd09

sci-ml/pytorch: drop legacy from toml

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

 sci-ml/pytorch/pytorch-2.7.0.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sci-ml/pytorch/pytorch-2.7.0.ebuild 
b/sci-ml/pytorch/pytorch-2.7.0.ebuild
index ef8a26d5b9dd..874182c66336 100644
--- a/sci-ml/pytorch/pytorch-2.7.0.ebuild
+++ b/sci-ml/pytorch/pytorch-2.7.0.ebuild
@@ -42,6 +42,11 @@ src_prepare() {
                -e "/BUILD_DIR/s|build|/var/lib/caffe2/|" \
                tools/setup_helpers/env.py \
                || die
+       # Drop legacy from pyproject.toml
+       sed -i \
+               -e "/build-backend/s|:__legacy__||" \
+               pyproject.toml \
+               || die
        distutils-r1_src_prepare
 
        # Get object file from caffe2

Reply via email to