build: support Python 3.10.0

PR-URL: https://github.com/nodejs/node/pull/40296
Fixes: https://github.com/nodejs/node/issues/40294
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
FrankQiu authored and Rich Trott committed 2021-10-06 17:07:07 -07:00
1 parent 24c403cfaf
commit 7752088ef6
11 files changed
+14 -13

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ jobs:
build-tarball:
if: github.event.pull_request.draft == false
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -52,7 +52,7 @@ jobs:
path: tarballs
test-tarball-linux:
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
needs: build-tarball
runs-on: ubuntu-latest
steps:
+1 -1
View File
@@ -12,7 +12,7 @@ on:
- v[0-9]+.x
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
FLAKY_TESTS: dontcare
jobs:
+1 -1
View File
@@ -19,7 +19,7 @@ on:
- 'doc/**'
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
FLAKY_TESTS: dontcare
jobs:
+1 -1
View File
@@ -21,7 +21,7 @@ on:
- 'tools/**'
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
FLAKY_TESTS: dontcare
jobs:
+1 -1
View File
@@ -11,7 +11,7 @@ on:
- v[0-9]+.x
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
NODE_VERSION: lts/*
jobs:
+1 -1
View File
@@ -22,7 +22,7 @@ on:
- 'doc/**'
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
FLAKY_TESTS: dontcare
jobs:
+1 -1
View File
@@ -20,7 +20,7 @@ on:
- test/internet/**
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
FLAKY_TESTS: dontcare
jobs:
+1 -1
View File
@@ -12,7 +12,7 @@ on:
- v[0-9]+.x
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
FLAKY_TESTS: dontcare
jobs:
+1 -1
View File
@@ -22,7 +22,7 @@ on:
- 'doc/**'
env:
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
FLAKY_TESTS: dontcare
jobs:
+2 -2
View File
@@ -235,7 +235,7 @@ The Node.js project supports Python >= 3 for building and testing.
* `gcc` and `g++` >= 8.3 or newer, or
* GNU Make 3.81 or newer
* Python 3.6, 3.7, 3.8, or 3.9 (see note above)
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above)
Installation via Linux package manager can be achieved with:
@@ -250,7 +250,7 @@ FreeBSD and OpenBSD users may also need to install `libexecinfo`.
#### macOS prerequisites
* Xcode Command Line Tools >= 11 for macOS
* Python 3.6, 3.7, 3.8, or 3.9 (see note above)
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above)
macOS users can install the `Xcode Command Line Tools` by running
`xcode-select --install`. Alternatively, if you already have the full Xcode
Vendored
+2 -1
View File
@@ -4,6 +4,7 @@
# Note that the mix of single and double quotes is intentional,
# as is the fact that the ] goes on a new line.
_=[ 'exec' '/bin/sh' '-c' '''
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
command -v python3.8 >/dev/null && exec python3.8 "$0" "$@"
command -v python3.7 >/dev/null && exec python3.7 "$0" "$@"
@@ -21,7 +22,7 @@ except ImportError:
from distutils.spawn import find_executable as which
print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
acceptable_pythons = ((3, 9), (3, 8), (3, 7), (3, 6))
acceptable_pythons = ((3, 10), (3, 9), (3, 8), (3, 7), (3, 6))
if sys.version_info[:2] in acceptable_pythons:
import configure
else: