Skip to content

Commit 415b82d

Browse files
avivkellerjasnell
authored andcommitted
build: support up to python 3.13 in android-configure
PR-URL: nodejs#54529 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
1 parent a65e441 commit 415b82d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android-configure

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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.13 >/dev/null && exec python3.13 "$0" "$@"
8+
command -v python3.12 >/dev/null && exec python3.12 "$0" "$@"
79
command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
810
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
911
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
@@ -21,7 +23,7 @@ except ImportError:
2123
from distutils.spawn import find_executable as which
2224

2325
print('Node.js android configure: Found Python {}.{}.{}...'.format(*sys.version_info))
24-
acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8))
26+
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8))
2527
if sys.version_info[:2] in acceptable_pythons:
2628
import android_configure
2729
else:

0 commit comments

Comments
 (0)