Skip to content

Commit 5780478

Browse files
Revert "[BE] Update Python min version to 3.10 (pytorch#162310)"
This reverts commit 3016616. Reverted pytorch#162310 on behalf of https://github.com/malfet due to Breaks some windows tests ([comment](pytorch#162862 (comment)))
1 parent ce5637b commit 5780478

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dev = [
5353
name = "torch"
5454
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
5555
readme = "README.md"
56-
requires-python = ">=3.10"
56+
requires-python = ">=3.9"
5757
# TODO: change to `license = "BSD-3-Clause"` and enable PEP 639 after pinning setuptools>=77
5858
# FIXME: As of 2025.06.20, it is hard to ensure the minimum version of setuptools in our CI environment.
5959
# TOML-table-based license deprecated in setuptools>=77, and the deprecation warning will be changed
@@ -74,6 +74,7 @@ classifiers = [
7474
"Topic :: Software Development :: Libraries :: Python Modules",
7575
"Programming Language :: C++",
7676
"Programming Language :: Python :: 3 :: Only",
77+
"Programming Language :: Python :: 3.9",
7778
"Programming Language :: Python :: 3.10",
7879
"Programming Language :: Python :: 3.11",
7980
"Programming Language :: Python :: 3.12",

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256

257257

258258
# Also update `project.requires-python` in pyproject.toml when changing this
259-
python_min_version = (3, 10, 0)
259+
python_min_version = (3, 9, 0)
260260
python_min_version_str = ".".join(map(str, python_min_version))
261261
if sys.version_info < python_min_version:
262262
print(
@@ -1029,7 +1029,7 @@ def build_deps() -> None:
10291029
CWD / "third_party/valgrind-headers/callgrind.h",
10301030
CWD / "third_party/valgrind-headers/valgrind.h",
10311031
]
1032-
for sym_file, orig_file in zip(sym_files, orig_files, strict=True):
1032+
for sym_file, orig_file in zip(sym_files, orig_files):
10331033
same = False
10341034
if sym_file.exists():
10351035
if filecmp.cmp(sym_file, orig_file):

0 commit comments

Comments
 (0)