Skip to content

Commit d73c49e

Browse files
authored
build: drop support for Python 3.9
PR-URL: #61177 Fixes: #60919 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent cab20f2 commit d73c49e

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

android-configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ command -v python3.13 >/dev/null && exec python3.13 "$0" "$@"
99
command -v python3.12 >/dev/null && exec python3.12 "$0" "$@"
1010
command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
1111
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
12-
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
1312
command -v python3 >/dev/null && exec python3 "$0" "$@"
1413
exec python "$0" "$@"
1514
''' "$0" "$@"
@@ -23,7 +22,7 @@ except ImportError:
2322
from distutils.spawn import find_executable as which
2423

2524
print('Node.js android configure: Found Python {}.{}.{}...'.format(*sys.version_info))
26-
acceptable_pythons = ((3, 14), (3, 13), (3, 12), (3, 11), (3, 10), (3, 9))
25+
acceptable_pythons = ((3, 14), (3, 13), (3, 12), (3, 11), (3, 10))
2726
if sys.version_info[:2] in acceptable_pythons:
2827
import android_configure
2928
else:

configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ command -v python3.13 >/dev/null && exec python3.13 "$0" "$@"
99
command -v python3.12 >/dev/null && exec python3.12 "$0" "$@"
1010
command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
1111
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
12-
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
1312
command -v python3 >/dev/null && exec python3 "$0" "$@"
1413
exec python "$0" "$@"
1514
''' "$0" "$@"
@@ -23,7 +22,7 @@ except ImportError:
2322
from distutils.spawn import find_executable as which
2423

2524
print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
26-
acceptable_pythons = ((3, 14), (3, 13), (3, 12), (3, 11), (3, 10), (3, 9))
25+
acceptable_pythons = ((3, 14), (3, 13), (3, 12), (3, 11), (3, 10))
2726
if sys.version_info[:2] in acceptable_pythons:
2827
import configure
2928
else:

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ def make_bin_override():
24092409
if sys.platform == 'win32':
24102410
raise Exception('make_bin_override should not be called on win32.')
24112411
# If the system python is not the python we are running (which should be
2412-
# python 3.9+), then create a directory with a symlink called `python` to our
2412+
# python 3.10+), then create a directory with a symlink called `python` to our
24132413
# sys.executable. This directory will be prefixed to the PATH, so that
24142414
# other tools that shell out to `python` will use the appropriate python
24152415

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exclude = [
77
"tools/eslint/node_modules"
88
]
99
line-length = 172
10-
target-version = "py39"
10+
target-version = "py310"
1111

1212
[tool.ruff.lint]
1313
select = [

0 commit comments

Comments
 (0)