Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7b938df

Browse filesBrowse files
lpincaRafaelGSS
authored andcommitted
build: support Python 3.11
PR-URL: #45191 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent ddb7df7 commit 7b938df
Copy full SHA for 7b938df

File tree

Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Open diff view settings
Collapse file

‎BUILDING.md‎

Copy file name to clipboardExpand all lines: BUILDING.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The Node.js project supports Python >= 3 for building and testing.
225225

226226
* `gcc` and `g++` >= 8.3 or newer
227227
* GNU Make 3.81 or newer
228-
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above)
228+
* Python >=3.6 <=3.11 (see note above)
229229
* For test coverage, your Python installation must include pip.
230230

231231
Installation via Linux package manager can be achieved with:
@@ -241,7 +241,7 @@ FreeBSD and OpenBSD users may also need to install `libexecinfo`.
241241
#### macOS prerequisites
242242

243243
* Xcode Command Line Tools >= 11 for macOS
244-
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above)
244+
* Python >=3.6 <=3.11 (see note above)
245245
* For test coverage, your Python installation must include pip.
246246

247247
macOS users can install the `Xcode Command Line Tools` by running
@@ -565,7 +565,7 @@ to run it again before invoking `make -j4`.
565565

566566
##### Option 1: Manual install
567567

568-
* [Python 3.10](https://www.microsoft.com/en-us/p/python-310/9pjpw5ldxlz5)
568+
* [Python 3.11](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K)
569569
* The "Desktop development with C++" workload from
570570
[Visual Studio 2019](https://visualstudio.microsoft.com/vs/older-downloads/#visual-studio-2019-and-other-products) or
571571
the "C++ build tools" workload from the
Collapse file

‎configure‎

Copy file name to clipboardExpand all lines: configure
+2-1Lines 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.11 >/dev/null && exec python3.11 "$0" "$@"
78
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
89
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
910
command -v python3.8 >/dev/null && exec python3.8 "$0" "$@"
@@ -22,7 +23,7 @@ except ImportError:
2223
from distutils.spawn import find_executable as which
2324

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.