Skip to content

Commit

Permalink
build: update prerequisites on progress towards Python 3
Browse files Browse the repository at this point in the history
As recommended at nodejs#25759 (comment)
* 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
  • Loading branch information
cclauss committed Jan 28, 2019
1 parent 4814987 commit 2401b0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,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.6 reached its end of life in 2013 so its use is discouraged.
* Python 2.7 reaches its end of life at the end of 2019 so a transition to Python 3 is underway
* Python 3.5, 3.6, nad 3.7 are intended to be supported in the near future
* GNU Make 3.81 or newer

On macOS, install the `Xcode Command Line Tools` by running
Expand Down Expand Up @@ -193,7 +196,7 @@ 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.
and not a newer version. See the above notes on __Prerequisites__.

After building, setting up [firewall rules](tools/macos-firewall.sh) can avoid
popups asking to accept incoming network connections when running tests.
Expand Down

0 comments on commit 2401b0d

Please sign in to comment.