This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 29b168b81a gnu: python-pytorch: Patch Python build.
29b168b81a is described below

commit 29b168b81ad537b88d23630133385e5bf5e1411f
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Sat Jan 17 09:19:25 2026 +0100

    gnu: python-pytorch: Patch Python build.
    
    * gnu/packages/machine-learning.scm (python-pytorch)[arguments]: Add phases
    'patch-build-system to remove "__legacy__".
    
    Change-Id: Ic2243bdb4539cca3a0a0ac955961feeec963c2e5
---
 gnu/packages/machine-learning.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index f332c9d6a3..07d5f68f82 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2015-2025 Ricardo Wurmus <[email protected]>
+;;; Copyright © 2015-2026 Ricardo Wurmus <[email protected]>
 ;;; Copyright © 2016, 2020-2024 Efraim Flashner <[email protected]>
 ;;; Copyright © 2016, 2017, 2020 Marius Bakke <[email protected]>
 ;;; Copyright © 2016 Hartmut Goebel <[email protected]>
@@ -4606,6 +4606,11 @@ PyTorch.")
      (list
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-build-system
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("setuptools\\.build_meta:__legacy__")
+                 "setuptools.build_meta"))))
           (add-after 'unpack 'cmake-patches
             (lambda* (#:key inputs outputs #:allow-other-keys)
               (substitute* "cmake/Dependencies.cmake"

Reply via email to