Skip to content

Commit 4007ded

Browse files
committed
build: support python 3.10.0
1 parent 1919b62 commit 4007ded

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

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

0 commit comments

Comments
 (0)