From 30f310e9359069aaaaa0d4d940fd29861a266890 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Fri, 6 May 2022 16:33:12 -0500 Subject: [PATCH] Remove Python 2 references in the Powershell shim CPython >= 3.8 is required for proper Windows support. --- tools/git-submodule/install.ps1 | 2 +- tools/hg-subrepo/install.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/git-submodule/install.ps1 b/tools/git-submodule/install.ps1 index a5940cf..5d8d9c5 100644 --- a/tools/git-submodule/install.ps1 +++ b/tools/git-submodule/install.ps1 @@ -10,7 +10,7 @@ Set-Location $BASEDIR git -C $DOTBOT_DIR submodule sync --quiet --recursive git submodule update --init --recursive $DOTBOT_DIR -foreach ($PYTHON in ('python', 'python3', 'python2')) { +foreach ($PYTHON in ('python', 'python3')) { # Python redirects to Microsoft Store in Windows 10 when not installed if (& { $ErrorActionPreference = "SilentlyContinue" ![string]::IsNullOrEmpty((&$PYTHON -V)) diff --git a/tools/hg-subrepo/install.ps1 b/tools/hg-subrepo/install.ps1 index 39078bf..3b9439a 100644 --- a/tools/hg-subrepo/install.ps1 +++ b/tools/hg-subrepo/install.ps1 @@ -9,7 +9,7 @@ $BASEDIR = $PSScriptRoot Set-Location $BASEDIR Set-Location $DOTBOT_DIR && git submodule update --init --recursive -foreach ($PYTHON in ('python', 'python3', 'python2')) { +foreach ($PYTHON in ('python', 'python3')) { # Python redirects to Microsoft Store in Windows 10 when not installed if (& { $ErrorActionPreference = "SilentlyContinue" ![string]::IsNullOrEmpty((&$PYTHON -V))