Skip to content

Commit bf0747c

Browse files
fffrogpytorchmergebot
authored andcommitted
[Code Clean] Remove deadcodes about Python3.9 [1/N] (pytorch#163626)
As the title stated. Pull Request resolved: pytorch#163626 Approved by: https://github.com/Skylion007, https://github.com/albanD
1 parent 11a231e commit bf0747c

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.ci/aarch64_linux/build_aarch64_wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def parse_arguments():
10041004
install_condaforge_python(host, args.python_version)
10051005
sys.exit(0)
10061006

1007-
python_version = args.python_version if args.python_version is not None else "3.9"
1007+
python_version = args.python_version if args.python_version is not None else "3.10"
10081008

10091009
if args.use_torch_from_pypi:
10101010
configure_system(host, compiler=args.compiler, python_version=python_version)

.ci/docker/requirements-ci.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ ninja==1.11.1.3
112112
#Pinned versions: 1.11.1.3
113113
#test that import: run_test.py, test_cpp_extensions_aot.py,test_determination.py
114114

115-
numba==0.49.0 ; python_version < "3.9" and platform_machine != "s390x"
116-
numba==0.55.2 ; python_version == "3.9" and platform_machine != "s390x"
117115
numba==0.55.2 ; python_version == "3.10" and platform_machine != "s390x"
118116
numba==0.60.0 ; python_version == "3.12" and platform_machine != "s390x"
119117
#Description: Just-In-Time Compiler for Numerical Functions
@@ -134,7 +132,7 @@ numba==0.60.0 ; python_version == "3.12" and platform_machine != "s390x"
134132
#test_nn.py, test_namedtensor.py, test_linalg.py, test_jit_cuda_fuser.py,
135133
#test_jit.py, test_indexing.py, test_datapipe.py, test_dataloader.py,
136134
#test_binary_ufuncs.py
137-
numpy==1.22.4; python_version == "3.9" or python_version == "3.10"
135+
numpy==1.22.4; python_version == "3.10"
138136
numpy==1.26.2; python_version == "3.11" or python_version == "3.12"
139137
numpy==2.1.2; python_version >= "3.13"
140138

@@ -326,8 +324,6 @@ pywavelets==1.7.0 ; python_version >= "3.12"
326324
lxml==5.3.0
327325
#Description: This is a requirement of unittest-xml-reporting
328326

329-
# Python-3.9 binaries
330-
331327
PyGithub==2.3.0
332328

333329
sympy==1.13.3

.lintrunner.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ init_command = [
4949
'mccabe==0.7.0',
5050
'pycodestyle==2.14.0',
5151
'pyflakes==3.4.0',
52-
'torchfix==0.4.0 ; python_version >= "3.9" and python_version < "3.13"',
52+
'torchfix==0.4.0 ; python_version >= "3.10" and python_version < "3.13"',
5353
]
5454

5555

@@ -153,7 +153,7 @@ init_command = [
153153
'python3',
154154
'tools/linter/adapters/pip_init.py',
155155
'--dry-run={{DRYRUN}}',
156-
'numpy==1.26.4 ; python_version >= "3.9" and python_version <= "3.11"',
156+
'numpy==1.26.4 ; python_version >= "3.10" and python_version <= "3.11"',
157157
'numpy==2.1.0 ; python_version >= "3.12"',
158158
'expecttest==0.3.0',
159159
'mypy==1.16.0',

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ They require JetPack 4.2 and above, and [@dusty-nv](https://github.com/dusty-nv)
161161

162162
#### Prerequisites
163163
If you are installing from source, you will need:
164-
- Python 3.9 or later
164+
- Python 3.10 or later
165165
- A compiler that fully supports C++17, such as clang or gcc (gcc 9.4.0 or newer is required, on Linux)
166166
- Visual Studio or Visual Studio Build Tool (Windows only)
167167

0 commit comments

Comments
 (0)