Skip to content

Commit f83b9bc

Browse files
iam-frankqiudanielleadams
authored andcommitted
build: support Python 3.10.0
PR-URL: #40296 Fixes: #40294 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 18820bf commit f83b9bc

11 files changed

+14
-13
lines changed

.github/workflows/build-tarball.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
build-tarball:
2828
if: github.event.pull_request.draft == false
2929
env:
30-
PYTHON_VERSION: 3.9
30+
PYTHON_VERSION: '3.10'
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v2
@@ -52,7 +52,7 @@ jobs:
5252
path: tarballs
5353
test-tarball-linux:
5454
env:
55-
PYTHON_VERSION: 3.9
55+
PYTHON_VERSION: '3.10'
5656
needs: build-tarball
5757
runs-on: ubuntu-latest
5858
steps:

.github/workflows/build-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- v[0-9]+.x
1313

1414
env:
15-
PYTHON_VERSION: 3.9
15+
PYTHON_VERSION: '3.10'
1616
FLAKY_TESTS: dontcare
1717

1818
jobs:

.github/workflows/coverage-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
- 'doc/**'
2020

2121
env:
22-
PYTHON_VERSION: 3.9
22+
PYTHON_VERSION: '3.10'
2323
FLAKY_TESTS: dontcare
2424

2525
jobs:

.github/workflows/coverage-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
- 'tools/**'
2222

2323
env:
24-
PYTHON_VERSION: 3.9
24+
PYTHON_VERSION: '3.10'
2525
FLAKY_TESTS: dontcare
2626

2727
jobs:

.github/workflows/linters.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- v[0-9]+.x
1212

1313
env:
14-
PYTHON_VERSION: 3.9
14+
PYTHON_VERSION: '3.10'
1515
NODE_VERSION: lts/*
1616

1717
jobs:

.github/workflows/test-asan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
- 'doc/**'
2323

2424
env:
25-
PYTHON_VERSION: 3.9
25+
PYTHON_VERSION: '3.10'
2626
FLAKY_TESTS: dontcare
2727

2828
jobs:

.github/workflows/test-internet.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
- test/internet/**
2121

2222
env:
23-
PYTHON_VERSION: 3.9
23+
PYTHON_VERSION: '3.10'
2424
FLAKY_TESTS: dontcare
2525

2626
jobs:

.github/workflows/test-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- v[0-9]+.x
1313

1414
env:
15-
PYTHON_VERSION: 3.9
15+
PYTHON_VERSION: '3.10'
1616
FLAKY_TESTS: dontcare
1717

1818
jobs:

.github/workflows/test-macos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
- 'doc/**'
2323

2424
env:
25-
PYTHON_VERSION: 3.9
25+
PYTHON_VERSION: '3.10'
2626
FLAKY_TESTS: dontcare
2727

2828
jobs:

BUILDING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ The Node.js project supports Python >= 3 for building and testing.
239239

240240
* `gcc` and `g++` >= 8.3 or newer, or
241241
* GNU Make 3.81 or newer
242-
* Python 3.6, 3.7, 3.8, or 3.9 (see note above)
242+
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above)
243243

244244
Installation via Linux package manager can be achieved with:
245245

@@ -254,7 +254,7 @@ FreeBSD and OpenBSD users may also need to install `libexecinfo`.
254254
#### macOS prerequisites
255255

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

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

configure

+2-1
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)