mirror of https://github.com/aminya/setup-cpp
fix: fix setupPipSystem
This commit is contained in:
parent
09fad1b45b
commit
76c4891c79
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
|
@ -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}`)
|
||||||
|
|
Loading…
Reference in New Issue