Skip to content

Commit d502465

Browse files
committed
fix: fix pipx installation on MacOS ARM
1 parent 6294c32 commit d502465

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/setup/setupPipPack.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { mkdirp } from "mkdirp"
77
import { pathExists } from "path-exists"
88
import { addExeExt } from "patha"
99
import { installAptPack } from "setup-apt"
10+
import { installBrewPack } from "setup-brew"
1011
import { untildifyUser } from "untildify-user"
1112
import which from "which"
1213
import { rcOptions } from "../../cli-options.js"
@@ -186,6 +187,8 @@ export function setupPipPackSystem(name: string, addPythonPrefix = true) {
186187
} else if (isUbuntu()) {
187188
return installAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])
188189
}
190+
} else if (process.platform === "darwin") {
191+
return installBrewPack(name)
189192
}
190193
return null
191194
}

0 commit comments

Comments
 (0)