File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ def run(self):
557
557
"scipy" : ["scipy" ],
558
558
},
559
559
ext_modules = extensions ,
560
- python_requires = ">=3.8 " ,
560
+ python_requires = ">=3.9 " ,
561
561
cmdclass = {
562
562
"build_ext" : BuildExtension .with_options (no_python_abi_suffix = True ),
563
563
"clean" : clean ,
Original file line number Diff line number Diff line change 2
2
3
3
import os
4
4
import sys
5
+ import sysconfig
5
6
from pathlib import Path
6
7
7
8
import torch
@@ -134,8 +135,8 @@ def main() -> None:
134
135
smoke_test_torchvision_decode_jpeg ("cuda" )
135
136
smoke_test_torchvision_resnet50_classify ("cuda" )
136
137
137
- # TODO: remove once pytorch/pytorch#110436 is resolved
138
- if sys .version_info < (3 , 12 , 0 ):
138
+ # torch.compile is not supported on Python 3.14+ and Python built with GIL disabled
139
+ if sys .version_info < (3 , 14 , 0 ) and not sysconfig . get_config_var ( "Py_GIL_DISABLED" ):
139
140
smoke_test_compile ()
140
141
141
142
if torch .backends .mps .is_available ():
You can’t perform that action at this time.
0 commit comments