GNU bug report logs -
#78951
[PATCH 1/1] gnu: python-pytorch-geometric: Update to 2.6.1-1.8d76e12.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sun, 13 Jul 2025 23:35:02 +0200
with message-id <aHQmhlzo18aQFIyP <at> jurong>
and subject line Re: [PATCH 1/1] gnu: python-pytorch-geometric: Update to 2.6.1-1.8d76e12.
has caused the debbugs.gnu.org bug report #78951,
regarding [PATCH 1/1] gnu: python-pytorch-geometric: Update to 2.6.1-1.8d76e12.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
78951: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78951
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
This fixes the python-pytorch-geometric test failures with PyTorch 2.7.0
that were failing with 'AttributeError: module torch.fx._symbolic_trace
has no attribute List'.
* gnu/packages/machine-learning.scm: Import (gnu packages digest).
(python-pytorch-geometric): Update to commit 8d76e12.
[source]: Update hash.
[arguments]: Add 'patch-pyproject-toml phase to fix compatibility with
older flit-core. Update 'delete-top-level-directories phase to check
directory existence before deletion.
[propagated-inputs]: Add python-xxhash.
Signed-off-by: Ayan Das <bvits <at> riseup.net>
---
gnu/packages/machine-learning.scm | 44 ++++++++++++++++++++-----------
1 file changed, 29 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index d51eb62176..b44a93d7cf 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -88,6 +88,7 @@ (define-module (gnu packages machine-learning)
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages dejagnu)
+ #:use-module (gnu packages digest)
#:use-module (gnu packages documentation)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gcc)
@@ -5459,18 +5460,20 @@ (define-public python-pytorch-for-r-torch
python-sympy)))))
(define-public python-pytorch-geometric
- (package
- (name "python-pytorch-geometric")
- (version "2.6.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/pyg-team/pytorch_geometric/")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0dbxz9d22vzm7fr9kgg66hj3sf8ag2ly8qky58cxvn1hyjl5h3v7"))))
+ (let ((commit "8d76e1220665dfc701b14e04b543e9dbaad479ce")
+ (revision "1"))
+ (package
+ (name "python-pytorch-geometric")
+ (version (git-version "2.6.1" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pyg-team/pytorch_geometric/")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0m0naifd67d0kpvhvpm70k2v35mprx1270wj03i1v22d39xsz722"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -5502,11 +5505,21 @@ (define-public python-pytorch-geometric
" and not test_type_repr"))
#:phases
'(modify-phases %standard-phases
+ (add-after 'unpack 'patch-pyproject-toml
+ (lambda _
+ ;; Older flit-core expects license to be a dict, not a string
+ ;; and doesn't recognize license-files
+ (substitute* "pyproject.toml"
+ (("license = \"MIT\"")
+ "license = {text = \"MIT\"}")
+ (("license-files = .*") ""))))
(add-after 'unpack 'delete-top-level-directories
(lambda _
;; The presence of these directories confuses the pyproject build
;; system.
- (for-each delete-file-recursively
+ (for-each (lambda (dir)
+ (when (file-exists? dir)
+ (delete-file-recursively dir)))
'("conda" "docker" "graphgym")))))))
(propagated-inputs
(list onnx
@@ -5533,7 +5546,8 @@ (define-public python-pytorch-geometric
python-sympy
python-tabulate
python-torchmetrics
- python-tqdm))
+ python-tqdm
+ python-xxhash))
(native-inputs
(list python-flit-core
python-pytest
@@ -5543,7 +5557,7 @@ (define-public python-pytorch-geometric
(description
"PyG is a library built upon PyTorch to easily write and train Graph
Neural Networks for a wide range of applications related to structured data.")
- (license license:expat)))
+ (license license:expat))))
(define-public python-lightning-cloud
(package
--
2.50.0
[Message part 3 (message/rfc822, inline)]
Hello,
thanks for your patch! A similar one was sent to Codeberg:
https://codeberg.org/guix/guix/pulls/1174
which I have just pushed, since it works with python-flit-core-next,
so it becomes a little bit easier.
Maybe see you on Codeberg soon!
Andreas
This bug report was last modified 17 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.