From e16cc84e383390281ec14b18973eb8bf345b3780 Mon Sep 17 00:00:00 2001 From: Robin Avery Date: Sat, 7 Oct 2023 23:09:21 -0400 Subject: [PATCH] Fix issue with building `python_Levenshtein` on Windows (#981) --- .github/README.md | 4 ++-- .github/packages/build-windows/setup.ps1 | 1 + requirements.txt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/README.md b/.github/README.md index 0d47e67b53..a5d03e8475 100644 --- a/.github/README.md +++ b/.github/README.md @@ -21,11 +21,11 @@ v1.02 - main.dol: `sha1: 08e0bf20134dfcb260699671004527b2d6bb1a45` The easiest way to get set up is with [scoop](https://scoop.sh/). You will also need our compilers (linked below). 1. Open a PowerShell window (`Win+X`). You do not need admin privileges. -1. Install `scoop`, `git`, `python`, and `mingw`. You can skip these if you already have `git`, `python` (3.9+), `bash`, `gcc`, and `make` in your `PATH`. +1. Install `scoop`, `git`, `python`, `mingw`, and `cmake`. You can skip these if you already have `git`, `python` (3.9+), `bash`, `gcc`, `make`, and `cmake` in your `PATH`. ```ps1 Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time irm get.scoop.sh | iex - scoop install git python mingw + scoop install git python mingw cmake ``` 1. Clone the repository and change directory into it. ```ps1 diff --git a/.github/packages/build-windows/setup.ps1 b/.github/packages/build-windows/setup.ps1 index 36940c3737..f8dc50ed83 100644 --- a/.github/packages/build-windows/setup.ps1 +++ b/.github/packages/build-windows/setup.ps1 @@ -20,6 +20,7 @@ git ` python ` mingw ` + cmake ` megatools if ($LASTEXITCODE -ne 0) { diff --git a/requirements.txt b/requirements.txt index 4c49a25131..3debaebce1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,5 +11,5 @@ pcpp==1.30 pyelftools==0.29 Pygments>=2.15.0 pyperclip==1.8.2 -python_Levenshtein==0.20.9 +python_Levenshtein>=0.20.9 watchdog==2.2.1