git: 3c54063b6412 - main - misc/py-pytorch: Fix build of dependencies

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 18 Mar 2025 16:48:32 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3c54063b64122ab2825d090171c64492bfd16055

commit 3c54063b64122ab2825d090171c64492bfd16055
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-18 14:45:20 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-18 16:48:29 +0000

    misc/py-pytorch: Fix build of dependencies
    
    ... by relaxing the sympy dependency limitation.
    
    Reported by:    fallout
---
 misc/py-pytorch/files/patch-requirements.txt | 11 +++++++++++
 misc/py-pytorch/files/patch-setup.py         | 11 +++++++++++
 2 files changed, 22 insertions(+)

diff --git a/misc/py-pytorch/files/patch-requirements.txt b/misc/py-pytorch/files/patch-requirements.txt
new file mode 100644
index 000000000000..9088b16615c0
--- /dev/null
+++ b/misc/py-pytorch/files/patch-requirements.txt
@@ -0,0 +1,11 @@
+--- requirements.txt.orig	2025-03-18 16:44:23 UTC
++++ requirements.txt
+@@ -9,7 +9,7 @@ typing-extensions>=4.10.0
+ setuptools
+ types-dataclasses
+ typing-extensions>=4.10.0
+-sympy==1.13.1 ; python_version >= "3.9"
++sympy>=1.13.1 ; python_version >= "3.9"
+ filelock
+ networkx
+ jinja2
diff --git a/misc/py-pytorch/files/patch-setup.py b/misc/py-pytorch/files/patch-setup.py
new file mode 100644
index 000000000000..f3589af84e10
--- /dev/null
+++ b/misc/py-pytorch/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2025-03-18 16:43:41 UTC
++++ setup.py
+@@ -1099,7 +1099,7 @@ def main():
+         "filelock",
+         "typing-extensions>=4.10.0",
+         'setuptools ; python_version >= "3.12"',
+-        'sympy==1.13.1 ; python_version >= "3.9"',
++        'sympy>=1.13.1 ; python_version >= "3.9"',
+         "networkx",
+         "jinja2",
+         "fsspec",