From de3f713ccc8c2076da089bfdc0f85e2b71032955 Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Thu, 21 Jan 2021 11:02:09 +0300 Subject: [PATCH] Create python3 symlink on Windows --- installers/win-setup-template.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installers/win-setup-template.ps1 b/installers/win-setup-template.ps1 index 3bfd433..9b6be66 100644 --- a/installers/win-setup-template.ps1 +++ b/installers/win-setup-template.ps1 @@ -121,6 +121,11 @@ if ($LASTEXITCODE -ne 0) { Throw "Error happened during Python installation" } +Write-Host "Create `python3` symlink" +if ($MajorVersion -ne "2") { + New-Item -Path "$PythonArchPath\python3.exe" -ItemType SymbolicLink -Value "$PythonArchPath\python.exe" +} + Write-Host "Install and upgrade Pip" $PythonExePath = Join-Path -Path $PythonArchPath -ChildPath "python.exe" cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location"