[Code Clean] Remove deadcodes about Python3.9 [2/N] (#163627)

As the title stated.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/163627
Approved by: https://github.com/jansel
ghstack dependencies: #163626
This commit is contained in:
FFFrog
2025-09-24 11:24:06 +08:00
committed by PyTorch MergeBot
parent bf0747c6c6
commit 0bca77951d
3 changed files with 3 additions and 4 deletions

View File

@ -821,9 +821,9 @@ if(NOT Python_Interpreter_FOUND)
message(FATAL_ERROR "Python3 could not be found.")
endif()
if(${Python_VERSION} VERSION_LESS 3.9)
if(${Python_VERSION} VERSION_LESS 3.10)
message(FATAL_ERROR
"Found Python libraries version ${Python_VERSION}. Python < 3.9 is no longer supported by PyTorch.")
"Found Python libraries version ${Python_VERSION}. Python < 3.10 is no longer supported by PyTorch.")
endif()
# ---[ Python + Numpy

View File

@ -12,7 +12,7 @@ name = "torch_openreg"
version = "0.0.1"
description = "A minimal reference implementation of an out-of-tree backend"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = { text = "BSD-3-Clause" }
authors = [{ name = "PyTorch Team", email = "packages@pytorch.org" }]
dependencies = [

View File

@ -312,7 +312,6 @@ class TestCustomBackendAPI(torch._dynamo.test_case.TestCase):
mock_group = MagicMock()
mock_group.names = [name]
mock_group[name] = mock_3_10
# mock_group[name].load.return_value = lambda: "mocked 3.10"
return mock_group
with patch("importlib.metadata.entry_points", mock_eps):