Skip to content

Commit 1072d23

Browse files
committed
Add patch for torchvision 0.19.1
1 parent 81ff9ce commit 1072d23

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

graalpython/lib-graalpython/patches/torchvision/metadata.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
[[rules]]
2+
version = '== 0.19.1'
3+
patch = 'torchvision-1.19.1.patch'
4+
license = 'BSD-3-Clause'
5+
6+
[[add-sources]]
7+
version = '0.19.1'
8+
url = 'https://github.com/pytorch/vision/archive/refs/tags/v0.19.1.tar.gz'
9+
110
[[rules]]
211
version = '== 0.17.1'
312
patch = 'torchvision-1.17.1.patch'
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/setup.py b/setup.py
2+
index c0c1050..acadf1e 100644
3+
--- a/setup.py
4+
+++ b/setup.py
5+
@@ -56,6 +56,8 @@ def write_version_file():
6+
pytorch_dep = "torch"
7+
if os.getenv("PYTORCH_VERSION"):
8+
pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")
9+
+else:
10+
+ pytorch_dep += "==" + torch.__version__
11+
12+
requirements = [
13+
"numpy",
14+
diff --git a/version.txt b/version.txt
15+
index 2b79645..41915c7 100644
16+
--- a/version.txt
17+
+++ b/version.txt
18+
@@ -1 +1 @@
19+
-0.19.1a0
20+
+0.19.1

0 commit comments

Comments
 (0)