Skip to content

Commit 76c4891

Browse files
committed
fix: fix setupPipSystem
1 parent 09fad1b commit 76c4891

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

dist/node12/setup-cpp.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/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/node16/setup-cpp.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/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.

src/python/python.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ function ensurePipUpgrade(foundPython: string) {
192192
return false
193193
}
194194

195-
async function setupPipSystem() {
195+
function setupPipSystem() {
196196
if (process.platform === "linux") {
197197
// ensure that pip is installed on Linux (happens when python is found but pip not installed)
198198
if (isArch()) {
199-
await setupPacmanPack("python-pip")
199+
return setupPacmanPack("python-pip")
200200
} else if (hasDnf()) {
201-
setupDnfPack("python3-pip")
201+
return setupDnfPack("python3-pip")
202202
} else if (isUbuntu()) {
203-
await setupAptPack([{ name: "python3-pip" }])
203+
return setupAptPack([{ name: "python3-pip" }])
204204
}
205205
}
206206
throw new Error(`Could not install pip on ${process.platform}`)

0 commit comments

Comments
 (0)