summaryrefslogtreecommitdiff
path: root/tools/bootstrap
diff options
context:
space:
mode:
authorcclauss <cclauss@me.com>2019-03-04 08:01:37 -0500
committerRefael Ackermann <refack@gmail.com>2019-03-26 17:59:16 -0400
commit6df9f84f61cd794f017a11606d7e6e4ba638783b (patch)
tree27a0901d6f24be29ab9dd767b8e2decee095e701 /tools/bootstrap
parent975bc897d605926cc8df6894f95d16dde07aec4c (diff)
downloadandroid-node-v8-6df9f84f61cd794f017a11606d7e6e4ba638783b.tar.gz
android-node-v8-6df9f84f61cd794f017a11606d7e6e4ba638783b.tar.bz2
android-node-v8-6df9f84f61cd794f017a11606d7e6e4ba638783b.zip
tools: windows_boxstarter "choco install python -y" for Python 3
PR-URL: https://github.com/nodejs/node/pull/26424 Refs: https://github.com/nodejs/node/issues/25789#issuecomment-469238697 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'tools/bootstrap')
-rw-r--r--tools/bootstrap/README.md15
-rw-r--r--tools/bootstrap/windows_boxstarter2
2 files changed, 14 insertions, 3 deletions
diff --git a/tools/bootstrap/README.md b/tools/bootstrap/README.md
index 069f021a0f..df69a540c1 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 7d682f1fb3..86867ced52 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