Skip to content

Commit 3bff9b5

Browse files
committed
build: support python 3.10.0
1 parent 4bd8e0e commit 3bff9b5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

BUILDING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ The Node.js project supports Python >= 3 for building and testing.
235235

236236
* `gcc` and `g++` >= 8.3 or newer, or
237237
* GNU Make 3.81 or newer
238-
* Python 3.6, 3.7, 3.8, or 3.9 (see note above)
238+
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above)
239239

240240
Installation via Linux package manager can be achieved with:
241241

@@ -250,7 +250,7 @@ FreeBSD and OpenBSD users may also need to install `libexecinfo`.
250250
#### macOS prerequisites
251251

252252
* Xcode Command Line Tools >= 11 for macOS
253-
* Python 3.6, 3.7, 3.8, or 3.9 (see note above)
253+
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above)
254254

255255
macOS users can install the `Xcode Command Line Tools` by running
256256
`xcode-select --install`. Alternatively, if you already have the full Xcode

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)