Skip to content

Commit 33b3b21

Browse files
committed
fix: pip invocation on windows
1 parent 23cdd36 commit 33b3b21

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/docs/docs/main/isaacscript-in-lua.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Note that for Lua users, both `isaac-typescript-definitions` and `isaacscript-co
2424
If you have Python installed on your computer and you know what a terminal/shell is, then the easiest way to install the library is to use the `isaacscript-lua` Python tool. Otherwise, you can use the [manual installation](#manual-installation) (see below).
2525

2626
- In a terminal, navigate to the directory of your mod.
27-
- Install the tool: `pip install isaacscript-lua --upgrade`
27+
- Install the tool: `python -m pip install isaacscript-lua --upgrade`
2828
- Install the Lua library: `isaacscript-lua install`
2929

3030
If you get `ERROR: Could not find a version that satisfies the requirement isaacscript-lua (from versions: none)`, that means that your version of Python is too old. Make sure that you have Python version 3.10 or later installed.

packages/isaacscript-cli/file-templates/static/scripts/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ await lintScript(import.meta.dirname, async () => {
2828

2929
const pythonExists = await commandExists("python");
3030
if (pythonExists) {
31-
await $`pip install isaac-xml-validator --upgrade --quiet`;
31+
await $`python -m pip install isaac-xml-validator --upgrade --quiet`;
3232
promises.push($`isaac-xml-validator --quiet`);
3333
}
3434

packages/isaacscript-cli/scripts/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const LOCAL_GITIGNORE_PATH = path.join(
1212
const GITIGNORE_URL =
1313
"https://raw.githubusercontent.com/github/gitignore/master/Node.gitignore";
1414

15-
await $`pip install isaac-xml-validator --upgrade --quiet`;
15+
await $`python -m pip install isaac-xml-validator --upgrade --quiet`;
1616

1717
await lintCommands(import.meta.dirname, [
1818
"tsc --noEmit",

packages/isaacscript-lua/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a Python script to help manage IsaacScript-related libraries in a Lua pr
99
Install the tool:
1010

1111
```sh
12-
pip install --upgrade isaacscript-lua
12+
python -m pip install --upgrade isaacscript-lua
1313
```
1414

1515
Install the isaacscript-common` library:

0 commit comments

Comments
 (0)