Skip to content

Commit bd1a2fb

Browse files
VoltrexKeyvadanielleadams
authored andcommitted
build: add python 3.11 support for android
Add Python 3.11 support for configuring Node.js for Android. PR-URL: #45765 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 94e6f08 commit bd1a2fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android-configure

+2-1
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.11 >/dev/null && exec python3.11 "$0" "$@"
78
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
89
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
910
command -v python3.8 >/dev/null && exec python3.8 "$0" "$@"
@@ -22,7 +23,7 @@ except ImportError:
2223
from distutils.spawn import find_executable as which
2324

2425
print('Node.js android configure: Found Python {}.{}.{}...'.format(*sys.version_info))
25-
acceptable_pythons = ((3, 10), (3, 9), (3, 8), (3, 7), (3, 6))
26+
acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6))
2627
if sys.version_info[:2] in acceptable_pythons:
2728
import android_configure
2829
else:

0 commit comments

Comments
 (0)