mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
46c647d1ee
commit
3016616ccb
@ -53,7 +53,7 @@ dev = [
|
|||||||
name = "torch"
|
name = "torch"
|
||||||
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.10"
|
||||||
# TODO: change to `license = "BSD-3-Clause"` and enable PEP 639 after pinning setuptools>=77
|
# TODO: change to `license = "BSD-3-Clause"` and enable PEP 639 after pinning setuptools>=77
|
||||||
# FIXME: As of 2025.06.20, it is hard to ensure the minimum version of setuptools in our CI environment.
|
# FIXME: As of 2025.06.20, it is hard to ensure the minimum version of setuptools in our CI environment.
|
||||||
# TOML-table-based license deprecated in setuptools>=77, and the deprecation warning will be changed
|
# TOML-table-based license deprecated in setuptools>=77, and the deprecation warning will be changed
|
||||||
@ -74,7 +74,6 @@ classifiers = [
|
|||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
"Programming Language :: C++",
|
"Programming Language :: C++",
|
||||||
"Programming Language :: Python :: 3 :: Only",
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
"Programming Language :: Python :: 3.9",
|
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
|
4
setup.py
4
setup.py
@ -256,7 +256,7 @@ import platform
|
|||||||
|
|
||||||
|
|
||||||
# Also update `project.requires-python` in pyproject.toml when changing this
|
# 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))
|
python_min_version_str = ".".join(map(str, python_min_version))
|
||||||
if sys.version_info < python_min_version:
|
if sys.version_info < python_min_version:
|
||||||
print(
|
print(
|
||||||
@ -1029,7 +1029,7 @@ def build_deps() -> None:
|
|||||||
CWD / "third_party/valgrind-headers/callgrind.h",
|
CWD / "third_party/valgrind-headers/callgrind.h",
|
||||||
CWD / "third_party/valgrind-headers/valgrind.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
|
same = False
|
||||||
if sym_file.exists():
|
if sym_file.exists():
|
||||||
if filecmp.cmp(sym_file, orig_file):
|
if filecmp.cmp(sym_file, orig_file):
|
||||||
|
Reference in New Issue
Block a user