-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v14.x] build: support Python 3.11 #45231
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
- v[0-9]+.x | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
PYTHON_VERSION: '3.11' | ||
FLAKY_TESTS: keep_retrying | ||
|
||
jobs: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
- v[0-9]+.x | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
PYTHON_VERSION: '3.11' | ||
FLAKY_TESTS: keep_retrying | ||
|
||
jobs: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
- v[0-9]+.x | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
PYTHON_VERSION: '3.11' | ||
NODE_VERSION: lts/* | ||
|
||
jobs: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ on: | |
- 'doc/**' | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
PYTHON_VERSION: '3.11' | ||
FLAKY_TESTS: keep_retrying | ||
|
||
jobs: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
- v[0-9]+.x | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
PYTHON_VERSION: '3.11' | ||
FLAKY_TESTS: keep_retrying | ||
|
||
jobs: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ on: | |
- 'doc/**' | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
PYTHON_VERSION: '3.11' | ||
FLAKY_TESTS: keep_retrying | ||
|
||
jobs: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,7 +240,7 @@ test with Python 3. | |
* GNU Make 3.81 or newer | ||
* Python (see note above) | ||
* Python 2.7 | ||
* Python 3.5, 3.6, 3.7, 3.8, 3.9 or 3.10 (see note above) | ||
* Python >=3.5 <=3.11 (see note above) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use f-strings and will not run on Python 3.5. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In Node.js 14? I don't think we've backported anything using f-strings there. Node.js 14 is in maintenance and going End-of-Life in April 2023 -- this PR is needed to build Node.js 14 on systems that have update to Python 3.11. |
||
|
||
Installation via Linux package manager can be achieved with: | ||
|
||
|
@@ -257,7 +257,7 @@ FreeBSD and OpenBSD users may also need to install `libexecinfo`. | |
* Xcode Command Line Tools >= 10 for macOS | ||
* Python (see note above) | ||
* Python 2.7 | ||
* Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above) | ||
* Python >=3.5 <=3.11 (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 | ||
|
@@ -561,7 +561,7 @@ to run it again before invoking `make -j4`. | |
|
||
##### Option 1: Manual install | ||
|
||
* [Python 3.8](https://www.python.org/downloads/) | ||
* [Python 3.11](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K) | ||
* The "Desktop development with C++" workload from | ||
[Visual Studio 2017 or 2019](https://visualstudio.microsoft.com/downloads/) or | ||
the "Visual C++ build tools" workload from the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legacy Python?!?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Node.js 14, which goes End-of-Life in April 2023. We dropped legacy Python for Node.js 16 but 14 was the last release where we supported building with both legacy Python and Python 3 -- this PR merely allows the scripts to use Python 3.11.