GeezerVison is showing github.com — build: support Python 3.12 · nodejs/node@ff5713d
File treeExpand 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: 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.12 >/dev/null && exec python3.12 "$0" "$@" | 7 | 8 | command -v python3.11 >/dev/null && exec python3.11 "$0" "$@" | 8 | 9 | command -v python3.10 >/dev/null && exec python3.10 "$0" "$@" | 9 | 10 | command -v python3.9 >/dev/null && exec python3.9 "$0" "$@" | @@ -23,7 +24,7 @@ except ImportError: | 23 | 24 | from distutils.spawn import find_executable as which | 24 | 25 |
| 25 | 26 | print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info)) | 26 | | -acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6)) | | 27 | +acceptable_pythons = ((3, 12), (3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6)) | 27 | 28 | if sys.version_info[:2] in acceptable_pythons: | 28 | 29 | import configure | 29 | 30 | else: | |
|