From 66fe92353b2828a82bdd7c09b7a41401e66ede53 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Mon, 6 Jan 2020 20:49:09 +0800 Subject: [PATCH] win: change to use Python in install tool PR-URL: https://github.com/nodejs/node/pull/31221 Reviewed-By: David Carlier Reviewed-By: Sam Roberts Reviewed-By: Richard Lau Reviewed-By: Christian Clauss Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott --- tools/msvs/install_tools/install_tools.bat | 4 ++-- tools/msvs/msi/i18n/en-us.wxl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/msvs/install_tools/install_tools.bat b/tools/msvs/install_tools/install_tools.bat index da927ed4829409..eac70e2159fa86 100644 --- a/tools/msvs/install_tools/install_tools.bat +++ b/tools/msvs/install_tools/install_tools.bat @@ -38,7 +38,7 @@ echo result of a Chocolatey install. This acceptance occurs whether you know the echo license terms or not. Read and understand the license terms of the packages echo being installed and their dependencies prior to installation: echo - https://chocolatey.org/packages/chocolatey -echo - https://chocolatey.org/packages/python2 +echo - https://chocolatey.org/packages/python echo - https://chocolatey.org/packages/visualstudio2017-workload-vctools echo. echo This script is provided AS-IS without any warranties of any kind @@ -52,4 +52,4 @@ pause cls -"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); choco upgrade -y python2 visualstudio2017-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs +"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); choco upgrade -y python visualstudio2017-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs diff --git a/tools/msvs/msi/i18n/en-us.wxl b/tools/msvs/msi/i18n/en-us.wxl index 16d79173d6b05c..b0e8d7dab67ab4 100644 --- a/tools/msvs/msi/i18n/en-us.wxl +++ b/tools/msvs/msi/i18n/en-us.wxl @@ -12,7 +12,7 @@ {\WixUI_Font_Title}Tools for Native Modules Optionally install the tools necessary to compile native modules. WixUI_Bmp_Banner - Some npm modules need to be compiled from C/C++ when installing. If you want to be able to install such modules, some tools (Python 2 and Visual Studio Build Tools) need to be installed. + Some npm modules need to be compiled from C/C++ when installing. If you want to be able to install such modules, some tools (Python and Visual Studio Build Tools) need to be installed. Automatically install the necessary tools. Note that this will also install Chocolatey. The script will pop-up in a new window after the installation completes. Alternatively, follow the instructions at https://github.com/nodejs/node-gyp#on-windows]]> to install the dependencies yourself.