Skip to content

Commit 59a86bc

Browse files
committed
Add patch for torchvision 0.22.0
1 parent 598f9be commit 59a86bc

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

graalpython/lib-graalpython/patches/metadata.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,9 +785,18 @@ url = 'https://github.com/pytorch/pytorch/releases/download/v2.4.1/pytorch-v2.4.
785785
version = '2.7.0'
786786
url = 'https://github.com/pytorch/pytorch/releases/download/v2.7.0/pytorch-v2.7.0.tar.gz'
787787

788+
[[torchvision.rules]]
789+
version = '== 0.22.0'
790+
patch = 'torchvision-0.22.0.patch'
791+
license = 'BSD-3-Clause'
792+
793+
[[torchvision.add-sources]]
794+
version = '0.19.1'
795+
url = 'https://github.com/pytorch/vision/archive/refs/tags/v0.22.0.tar.gz'
796+
788797
[[torchvision.rules]]
789798
version = '== 0.19.1'
790-
patch = 'torchvision-1.19.1.patch'
799+
patch = 'torchvision-0.19.1.patch'
791800
license = 'BSD-3-Clause'
792801

793802
[[torchvision.add-sources]]
@@ -796,7 +805,7 @@ url = 'https://github.com/pytorch/vision/archive/refs/tags/v0.19.1.tar.gz'
796805

797806
[[torchvision.rules]]
798807
version = '== 0.17.1'
799-
patch = 'torchvision-1.17.1.patch'
808+
patch = 'torchvision-0.17.1.patch'
800809
license = 'BSD-3-Clause'
801810

802811
[[torchvision.add-sources]]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/setup.py b/setup.py
2+
index a42aef6..a619588 100644
3+
--- a/setup.py
4+
+++ b/setup.py
5+
@@ -104,6 +104,9 @@ def get_requirements():
6+
# supported on a best-effort basis, we don't guarantee that this won't
7+
# eventually break (and we don't test it.)
8+
pytorch_dep += f">={version_pin_ge},<{version_pin_lt}"
9+
+ else:
10+
+ # GraalPy change
11+
+ pytorch_dep += "==" + torch.__version__
12+
13+
requirements = [
14+
"numpy",

0 commit comments

Comments
 (0)