fix: fix pipx installation on MacOS ARM

This commit is contained in:
Amin Yahyaabadi 2024-09-08 05:15:42 -07:00
parent 6294c32d20
commit d5024653f1
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
5 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,7 @@ import { mkdirp } from "mkdirp"
import { pathExists } from "path-exists"
import { addExeExt } from "patha"
import { installAptPack } from "setup-apt"
import { installBrewPack } from "setup-brew"
import { untildifyUser } from "untildify-user"
import which from "which"
import { rcOptions } from "../../cli-options.js"
@ -186,6 +187,8 @@ export function setupPipPackSystem(name: string, addPythonPrefix = true) {
} else if (isUbuntu()) {
return installAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])
}
} else if (process.platform === "darwin") {
return installBrewPack(name)
}
return null
}