Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2020-12-30 17:09:52 +0300
committerRichard Lau <rlau@redhat.com>2021-04-16 22:47:02 +0300
commit4268fae04acc16b34fb302d63b01a85725ef2043 (patch)
tree5f8eb2c274dca965ebf4129dea81f835c3c564a9 /BUILDING.md
parent6d04cc684952ccbaa4a0cad36752a0f2bbaaa048 (diff)
build: remove support for Python 2
PR-URL: https://github.com/nodejs/node/pull/36691 Fixes: https://github.com/nodejs/node/issues/25789 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'BUILDING.md')
-rw-r--r--BUILDING.md33
1 files changed, 12 insertions, 21 deletions
diff --git a/BUILDING.md b/BUILDING.md
index 2de444e9bd2..22d803c76a8 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -19,7 +19,7 @@ file a new issue.
* [OpenSSL asm support](#openssl-asm-support)
* [Previous versions of this document](#previous-versions-of-this-document)
* [Building Node.js on supported platforms](#building-nodejs-on-supported-platforms)
- * [Note about Python 2 and Python 3](#note-about-python-2-and-python-3)
+ * [Note about Python](#note-about-python)
* [Unix and macOS](#unix-and-macos)
* [Unix prerequisites](#unix-prerequisites)
* [macOS prerequisites](#macos-prerequisites)
@@ -225,29 +225,23 @@ Consult previous versions of this document for older versions of Node.js:
## Building Node.js on supported platforms
-### Note about Python 2 and Python 3
-
-The Node.js project supports both Python 3 and Python 2 for building.
-If both are installed Python 3 will be used. If only Python 2 is available
-it will be used instead. When possible we recommend that you build and
-test with Python 3.
+### Note about Python
+The Node.js project supports Python >= 3 for building and testing.
### Unix and macOS
#### Unix prerequisites
* `gcc` and `g++` >= 8.3 or newer, or
* GNU Make 3.81 or newer
-* Python (see note above)
- * Python 2.7
- * Python 3.5, 3.6, 3.7, and 3.8
+* Python 3.6, 3.7, 3.8, and 3.9 (see note above)
Installation via Linux package manager can be achieved with:
-* Ubuntu, Debian: `sudo apt-get install python g++ make`
-* Fedora: `sudo dnf install python gcc-c++ make`
-* CentOS and RHEL: `sudo yum install python gcc-c++ make`
-* OpenSUSE: `sudo zypper install python gcc-c++ make`
+* Ubuntu, Debian: `sudo apt-get install python3 g++ make`
+* Fedora: `sudo dnf install python3 gcc-c++ make`
+* CentOS and RHEL: `sudo yum install python3 gcc-c++ make`
+* OpenSUSE: `sudo zypper install python3 gcc-c++ make`
* Arch Linux, Manjaro: `sudo pacman -S python gcc make`
FreeBSD and OpenBSD users may also need to install `libexecinfo`.
@@ -256,10 +250,8 @@ Python 3 users may also need to install `python3-distutils`.
#### macOS prerequisites
-* Xcode Command Line Tools >= 11 for macOS
-* Python (see note above)
- * Python 2.7
- * Python 3.5, 3.6, 3.7, and 3.8
+* Xcode Command Line Tools >= 10 for macOS
+* Python 3.6, 3.7, 3.8, and 3.9 (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
@@ -568,7 +560,7 @@ to run it again before invoking `make -j4`.
##### Option 1: Manual install
-* [Python 3.8](https://www.python.org/downloads/)
+* [Python 3.9](https://www.microsoft.com/en-us/p/python-39/9p7qfqmjrfp7)
* The "Desktop development with C++" workload from
[Visual Studio 2019](https://visualstudio.microsoft.com/downloads/) or
the "Visual C++ build tools" workload from the
@@ -606,8 +598,7 @@ packages:
* [Git for Windows](https://chocolatey.org/packages/git) with the `git` and
Unix tools added to the `PATH`
-* [Python 3.x](https://chocolatey.org/packages/python) and
- [legacy Python](https://chocolatey.org/packages/python2)
+* [Python 3.x](https://chocolatey.org/packages/python)
* [Visual Studio 2019 Build Tools](https://chocolatey.org/packages/visualstudio2019buildtools)
with [Visual C++ workload](https://chocolatey.org/packages/visualstudio2019-workload-vctools)
* [NetWide Assembler](https://chocolatey.org/packages/nasm)