Skip to content

Commit 80bdeb9

Browse files
author
Daniel Zuegner
committed
add windows option
1 parent 94441ee commit 80bdeb9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pyproject.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ dependencies = [
6868
"setuptools",
6969
"SMACT",
7070
"sympy>=1.11.1",
71-
"torch==2.2.1+cu118; sys_platform == 'linux'",
72-
"torchvision==0.17.1+cu118; sys_platform == 'linux'",
73-
"torchaudio==2.2.1+cu118; sys_platform == 'linux'",
71+
"torch==2.2.1+cu118; sys_platform != 'darwin'",
72+
"torchvision==0.17.1+cu118; sys_platform != 'darwin'",
73+
"torchaudio==2.2.1+cu118; sys_platform != 'darwin'",
7474
"torch==2.4.1; sys_platform == 'darwin'",
7575
"torchvision==0.19.1; sys_platform == 'darwin'",
7676
"torchaudio==2.4.1; sys_platform == 'darwin'",
@@ -97,30 +97,30 @@ include = ["mattergen*"]
9797
"*" = ["**.yaml", "**.csv", "**.pt", "**.json"]
9898

9999
[tool.uv.sources]
100-
torch = { index = "pytorch_linux", marker = "sys_platform == 'linux'" }
101-
torchvision = { index = "pytorch_linux", marker = "sys_platform == 'linux'" }
102-
torchaudio = { index = "pytorch_linux", marker = "sys_platform == 'linux'" }
103-
pyg-lib = [
104-
{ url = "https://data.pyg.org/whl/torch-2.2.0%2Bcu118/pyg_lib-0.4.0%2Bpt22cu118-cp310-cp310-linux_x86_64.whl", marker = "sys_platform == 'linux'" },
105-
{ url = "https://data.pyg.org/whl/torch-2.4.0%2Bcpu/pyg_lib-0.4.0%2Bpt24-cp310-cp310-macosx_14_0_universal2.whl", marker = "sys_platform == 'darwin'" }
106-
]
100+
torch = { index = "pytorch_cuda", marker = "sys_platform != 'darwin'" }
101+
torchvision = { index = "pytorch_cuda", marker = "sys_platform != 'darwin'" }
102+
torchaudio = { index = "pytorch_cuda", marker = "sys_platform != 'darwin'" }
103+
107104
torch_cluster = [
108105
{ url = "https://data.pyg.org/whl/torch-2.2.0%2Bcu118/torch_cluster-1.6.3%2Bpt22cu118-cp310-cp310-linux_x86_64.whl", marker = "sys_platform == 'linux'" },
106+
{ url = "https://data.pyg.org/whl/torch-2.2.0%2Bcu118/torch_cluster-1.6.3%2Bpt22cu118-cp310-cp310-win_amd64.whl", marker = "sys_platform == 'win32'" },
109107
{ url = "https://data.pyg.org/whl/torch-2.4.0%2Bcpu/torch_cluster-1.6.3-cp310-cp310-macosx_10_9_universal2.whl", marker = "sys_platform == 'darwin'" }
110108
]
111109

112110
torch_scatter = [
113111
{ url = "https://data.pyg.org/whl/torch-2.2.0%2Bcu118/torch_scatter-2.1.2%2Bpt22cu118-cp310-cp310-linux_x86_64.whl", marker = "sys_platform == 'linux'" },
112+
{ url = "https://data.pyg.org/whl/torch-2.2.0%2Bcu118/torch_scatter-2.1.2%2Bpt22cu118-cp310-cp310-win_amd64.whl", marker = "sys_platform == 'win32'" },
114113
{ url = "https://data.pyg.org/whl/torch-2.4.0%2Bcpu/torch_scatter-2.1.2-cp310-cp310-macosx_10_9_universal2.whl", marker = "sys_platform == 'darwin'" }
115114
]
116115

117116
torch_sparse = [
118117
{ url = "https://data.pyg.org/whl/torch-2.2.0%2Bcu118/torch_sparse-0.6.18%2Bpt22cu118-cp310-cp310-linux_x86_64.whl", marker = "sys_platform == 'linux'" },
118+
{ url = "https://data.pyg.org/whl/torch-2.2.0%2Bcu118/torch_sparse-0.6.18%2Bpt22cu118-cp310-cp310-win_amd64.whl", marker = "sys_platform == 'win32'" },
119119
{ url = "https://data.pyg.org/whl/torch-2.4.0%2Bcpu/torch_sparse-0.6.18-cp310-cp310-macosx_11_0_universal2.whl", marker = "sys_platform == 'darwin'" }
120120
]
121121

122122
[[tool.uv.index]]
123-
name = "pytorch_linux"
123+
name = "pytorch_cuda"
124124
url = "https://download.pytorch.org/whl/cu118"
125125
explicit = true
126126

0 commit comments

Comments
 (0)