Skip to content

Commit 0bca779

Browse files
fffrogpytorchmergebot
authored andcommitted
[Code Clean] Remove deadcodes about Python3.9 [2/N] (pytorch#163627)
As the title stated. Pull Request resolved: pytorch#163627 Approved by: https://github.com/jansel ghstack dependencies: pytorch#163626
1 parent bf0747c commit 0bca779

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmake/Dependencies.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,9 @@ if(NOT Python_Interpreter_FOUND)
821821
message(FATAL_ERROR "Python3 could not be found.")
822822
endif()
823823

824-
if(${Python_VERSION} VERSION_LESS 3.9)
824+
if(${Python_VERSION} VERSION_LESS 3.10)
825825
message(FATAL_ERROR
826-
"Found Python libraries version ${Python_VERSION}. Python < 3.9 is no longer supported by PyTorch.")
826+
"Found Python libraries version ${Python_VERSION}. Python < 3.10 is no longer supported by PyTorch.")
827827
endif()
828828

829829
# ---[ Python + Numpy

test/cpp_extensions/open_registration_extension/torch_openreg/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name = "torch_openreg"
1212
version = "0.0.1"
1313
description = "A minimal reference implementation of an out-of-tree backend"
1414
readme = "README.md"
15-
requires-python = ">=3.9"
15+
requires-python = ">=3.10"
1616
license = { text = "BSD-3-Clause" }
1717
authors = [{ name = "PyTorch Team", email = "[email protected]" }]
1818
dependencies = [

test/dynamo/test_backends.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def mock_eps(group=None):
312312
mock_group = MagicMock()
313313
mock_group.names = [name]
314314
mock_group[name] = mock_3_10
315-
# mock_group[name].load.return_value = lambda: "mocked 3.10"
316315
return mock_group
317316

318317
with patch("importlib.metadata.entry_points", mock_eps):

0 commit comments

Comments
 (0)