From bb564a36882102ba8cd46878db7ea886334cac20 Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 28 Jan 2019 15:15:31 +0100 Subject: build: update prerequisites on progress towards Python 3 As recommended at https://github.com/nodejs/node/pull/25759#issuecomment-458139766 * Python 2.6 end of life statement in 2013: https://www.python.org/dev/peps/pep-0361/#release-lifespan * Python 2.7 end of life statement in 2019: https://www.python.org/dev/peps/pep-0373/#update * Python 3.4 reaches it end of life in < 50 days so it should not be a target: https://devguide.python.org/#branchstatus PR-URL: https://github.com/nodejs/node/pull/25766 Reviewed-By: Refael Ackermann Reviewed-By: Rich Trott Reviewed-By: Ali Ijaz Sheikh Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Anna Henningsen --- BUILDING.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'BUILDING.md') diff --git a/BUILDING.md b/BUILDING.md index fbd435172a..7f5605e9f4 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -164,7 +164,9 @@ explains how to install all prerequisites. * `gcc` and `g++` 4.9.4 or newer, or * `clang` and `clang++` 3.4.2 or newer (macOS: latest Xcode Command Line Tools) -* Python 2.6 or 2.7 +* Python 2.7 + * Python 2.7 end of life is in 2019 so a transition to Python 3 is underway. + * Python 3.5, 3.6, and 3.7 are experimental. * GNU Make 3.81 or newer On macOS, install the `Xcode Command Line Tools` by running @@ -192,8 +194,8 @@ The `-j4` option will cause `make` to run 4 simultaneous compilation jobs which may reduce build time. For more information, see the [GNU Make Documentation](https://www.gnu.org/software/make/manual/html_node/Parallel.html). -Note that the above requires that `python` resolve to Python 2.6 or 2.7 -and not a newer version. +Note that the above requires that `python` resolve to Python 2.7 and not a newer +version. See [Prerequisites](#prerequisites). After building, setting up [firewall rules](tools/macos-firewall.sh) can avoid popups asking to accept incoming network connections when running tests. @@ -400,7 +402,7 @@ $ backtrace Prerequisites: -* [Python 2.6 or 2.7](https://www.python.org/downloads/) +* [Python 2.7](https://www.python.org/downloads/) * The "Desktop development with C++" workload from [Visual Studio 2017](https://www.visualstudio.com/downloads/) or the "Visual C++ build tools" workload from the -- cgit v1.2.3