File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ def run(self):
557557 "scipy" : ["scipy" ],
558558 },
559559 ext_modules = extensions ,
560- python_requires = ">=3.8 " ,
560+ python_requires = ">=3.9 " ,
561561 cmdclass = {
562562 "build_ext" : BuildExtension .with_options (no_python_abi_suffix = True ),
563563 "clean" : clean ,
Original file line number Diff line number Diff line change 22
33import os
44import sys
5+ import sysconfig
56from pathlib import Path
67
78import torch
@@ -134,8 +135,8 @@ def main() -> None:
134135 smoke_test_torchvision_decode_jpeg ("cuda" )
135136 smoke_test_torchvision_resnet50_classify ("cuda" )
136137
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" ):
139140 smoke_test_compile ()
140141
141142 if torch .backends .mps .is_available ():
You can’t perform that action at this time.
0 commit comments