Skip to content

Commit b2181a3

Browse files
frenzymadnessJiangjin Wang
authored andcommitted
AOSCOS: fix python 3.14 support
SQUASHED UPSTREAM COMMITS: build: test on Python 3.14 release candidate 3 Python v3.14 -- October 7th * https://www.python.org/download/pre-releases * https://www.python.org/downloads/release/python-3140rc3 PR-URL: nodejs#59983 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: Stewart X Addison <sxa@redhat.com>
1 parent 6add85e commit b2181a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Note that the mix of single and double quotes is intentional,
55
# as is the fact that the ] goes on a new line.
66
_=[ 'exec' '/bin/sh' '-c' '''
7+
command -v python3.14 >/dev/null && exec python3.14 "$0" "$@"
78
command -v python3.13 >/dev/null && exec python3.13 "$0" "$@"
89
command -v python3.12 >/dev/null && exec python3.12 "$0" "$@"
910
command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
@@ -23,7 +24,7 @@ except ImportError:
2324
from distutils.spawn import find_executable as which
2425

2526
print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
26-
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8))
27+
acceptable_pythons = ((3, 14), (3, 13), (3, 12), (3, 11), (3, 10), (3, 9))
2728
if sys.version_info[:2] in acceptable_pythons:
2829
import configure
2930
else:

0 commit comments

Comments
 (0)