[BE] Update Python min version to 3.10 (#162310)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/162310
Approved by: https://github.com/atalman, https://github.com/Skylion007, https://github.com/ZainRizvi
ghstack dependencies: #162862
This commit is contained in:
Nikita Shulga
2025-09-18 18:43:07 -07:00
committed by PyTorch MergeBot
parent 46c647d1ee
commit 3016616ccb
2 changed files with 3 additions and 4 deletions

View File

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