fix: fix setupPipSystem

This commit is contained in:
Amin Yahyaabadi 2023-06-28 15:46:43 -07:00
parent 09fad1b45b
commit 76c4891c79
5 changed files with 12 additions and 12 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

@ -192,15 +192,15 @@ function ensurePipUpgrade(foundPython: string) {
return false return false
} }
async function setupPipSystem() { function setupPipSystem() {
if (process.platform === "linux") { if (process.platform === "linux") {
// ensure that pip is installed on Linux (happens when python is found but pip not installed) // ensure that pip is installed on Linux (happens when python is found but pip not installed)
if (isArch()) { if (isArch()) {
await setupPacmanPack("python-pip") return setupPacmanPack("python-pip")
} else if (hasDnf()) { } else if (hasDnf()) {
setupDnfPack("python3-pip") return setupDnfPack("python3-pip")
} else if (isUbuntu()) { } else if (isUbuntu()) {
await setupAptPack([{ name: "python3-pip" }]) return setupAptPack([{ name: "python3-pip" }])
} }
} }
throw new Error(`Could not install pip on ${process.platform}`) throw new Error(`Could not install pip on ${process.platform}`)