Skip to content

Commit 92b666a

Browse files
cclausstargos
authored andcommitted
tools: windows_boxstarter "choco install python -y" for Python 3
PR-URL: #26424 Refs: #25789 (comment) 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>
1 parent 3d9839b commit 92b666a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

tools/bootstrap/README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A [Boxstarter][] script can be used for easy setup of Windows systems with all
66
the required prerequisites for Node.js development. This script will install
77
the following [Chocolatey] packages:
88
* [Git for Windows][] with the `git` and Unix tools added to the `PATH`
9-
* [Python 2.x][]
9+
* [Python 3.x][] and [legacy Python][]
1010
* [Visual Studio 2017 Build Tools][] with [Visual C++ workload][]
1111
* [NetWide Assembler][]
1212

@@ -25,6 +25,16 @@ Install-BoxstarterPackage https://raw.githubusercontent.com/nodejs/node/master/t
2525

2626
Entire installation will take up about 10 GB of disk space.
2727

28+
### Why install two different versions of Python?
29+
Python 2 will reach its _end-of-life_ at the end of 2019. Afterwards, the
30+
interpreter will not get updates — no bugfixes, no security fixes, nothing. In
31+
the interim, the Python ecosystem is abandoning 2.7 support.
32+
https://python3statement.org/ In order to remain safe and current the Node.js
33+
community is transitioning its Python code to Python 3. Having both versions of
34+
Python in this bootstrap will allow developers and end users to test, benchmark,
35+
and debug Node.js running on both versions to ensure a smooth and complete
36+
transition before the yearend deadline.
37+
2838
## Linux
2939

3040
For building Node.js on Linux, following packages are required (note, that this
@@ -50,7 +60,8 @@ xcode-select --install
5060
[Boxstarter WebLauncher]: http://boxstarter.org/WebLauncher
5161
[Chocolatey]: https://chocolatey.org/
5262
[Git for Windows]: https://chocolatey.org/packages/git
53-
[Python 2.x]: https://chocolatey.org/packages/python2
63+
[Python 3.x]: https://chocolatey.org/packages/python
64+
[legacy Python]: https://chocolatey.org/packages/python2
5465
[Visual Studio 2017 Build Tools]: https://chocolatey.org/packages/visualstudio2017buildtools
5566
[Visual C++ workload]: https://chocolatey.org/packages/visualstudio2017-workload-vctools
5667
[NetWide Assembler]: https://chocolatey.org/packages/nasm

tools/bootstrap/windows_boxstarter

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Git and Unix tools will be added to the PATH
1616
choco install git -params /GitAndUnixToolsOnPath -y
17-
choco install python2 -y
17+
choco install python python2 -y
1818

1919
# Installs VS 2017 Build Tools
2020
choco install visualstudio2017buildtools -y

0 commit comments

Comments
 (0)