GeezerVison is showing github.com — build: add python 3.11 support for android · nodejs/node@bd1a2fb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: android-configure +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | # Note that the mix of single and double quotes is intentional, |
5 | 5 | # as is the fact that the ] goes on a new line. |
6 | 6 | _=[ 'exec' '/bin/sh' '-c' ''' |
| 7 | +command -v python3.11 >/dev/null && exec python3.11 "$0" "$@" |
7 | 8 | command -v python3.10 >/dev/null && exec python3.10 "$0" "$@" |
8 | 9 | command -v python3.9 >/dev/null && exec python3.9 "$0" "$@" |
9 | 10 | command -v python3.8 >/dev/null && exec python3.8 "$0" "$@" |
@@ -22,7 +23,7 @@ except ImportError: |
22 | 23 | from distutils.spawn import find_executable as which |
23 | 24 |
|
24 | 25 | 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)) |
26 | 27 | if sys.version_info[:2] in acceptable_pythons: |
27 | 28 | import android_configure |
28 | 29 | else: |
|