Skip to content

Commit a189d11

Browse files
authored
Merge branch 'main' into please_dont_modify_this_branch_unless_you_are_just_merging_with_main__
2 parents 9128d1f + 0d68c7d commit a189d11

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff 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,

test/smoke_test.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import sys
5+
import sysconfig
56
from pathlib import Path
67

78
import 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():

0 commit comments

Comments
 (0)