From 6df9f84f61cd794f017a11606d7e6e4ba638783b Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 4 Mar 2019 08:01:37 -0500 Subject: [PATCH] tools: windows_boxstarter "choco install python -y" for Python 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/26424 Refs: https://github.com/nodejs/node/issues/25789#issuecomment-469238697 Reviewed-By: Bartosz Sosnowski Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Michaël Zasso Reviewed-By: Refael Ackermann --- tools/bootstrap/README.md | 15 +++++++++++++-- tools/bootstrap/windows_boxstarter | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/tools/bootstrap/README.md b/tools/bootstrap/README.md index 069f021a0f9603..df69a540c1539a 100644 --- a/tools/bootstrap/README.md +++ b/tools/bootstrap/README.md @@ -6,7 +6,7 @@ A [Boxstarter][] script can be used for easy setup of Windows systems with all the required prerequisites for Node.js development. This script will install the following [Chocolatey] packages: * [Git for Windows][] with the `git` and Unix tools added to the `PATH` - * [Python 2.x][] + * [Python 3.x][] and [legacy Python][] * [Visual Studio 2017 Build Tools][] with [Visual C++ workload][] * [NetWide Assembler][] @@ -25,6 +25,16 @@ Install-BoxstarterPackage https://raw.githubusercontent.com/nodejs/node/master/t Entire installation will take up about 10 GB of disk space. +### Why install two different versions of Python? +Python 2 will reach its _end-of-life_ at the end of 2019. Afterwards, the +interpreter will not get updates — no bugfixes, no security fixes, nothing. In +the interim, the Python ecosystem is abandoning 2.7 support. +https://python3statement.org/ In order to remain safe and current the Node.js +community is transitioning its Python code to Python 3. Having both versions of +Python in this bootstrap will allow developers and end users to test, benchmark, +and debug Node.js running on both versions to ensure a smooth and complete +transition before the yearend deadline. + ## Linux For building Node.js on Linux, following packages are required (note, that this @@ -50,7 +60,8 @@ xcode-select --install [Boxstarter WebLauncher]: http://boxstarter.org/WebLauncher [Chocolatey]: https://chocolatey.org/ [Git for Windows]: https://chocolatey.org/packages/git -[Python 2.x]: https://chocolatey.org/packages/python2 +[Python 3.x]: https://chocolatey.org/packages/python +[legacy Python]: https://chocolatey.org/packages/python2 [Visual Studio 2017 Build Tools]: https://chocolatey.org/packages/visualstudio2017buildtools [Visual C++ workload]: https://chocolatey.org/packages/visualstudio2017-workload-vctools [NetWide Assembler]: https://chocolatey.org/packages/nasm diff --git a/tools/bootstrap/windows_boxstarter b/tools/bootstrap/windows_boxstarter index 7d682f1fb3707b..86867ced52ce29 100644 --- a/tools/bootstrap/windows_boxstarter +++ b/tools/bootstrap/windows_boxstarter @@ -14,7 +14,7 @@ # Git and Unix tools will be added to the PATH choco install git -params /GitAndUnixToolsOnPath -y -choco install python2 -y +choco install python python2 -y # Installs VS 2017 Build Tools choco install visualstudio2017buildtools -y