Skip to content

Commit 6af5714

Browse files
committed
fix: log the pip fallback error
1 parent ddbec09 commit 6af5714

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/setup/setupPipPack.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ export async function setupPipPackWithPython(
5858
stdio: "inherit",
5959
})
6060
} catch (err) {
61+
info(`Failed to install ${name} via ${pip}: ${err}.`)
6162
if ((await setupPipPackSystem(name)) === null) {
62-
throw new Error(`Failed to install ${name} via ${pip} ${err}`)
63+
throw new Error(`Failed to install ${name} via ${pip}: ${err}.`)
6364
}
6465
}
6566

@@ -102,6 +103,7 @@ async function findBinDir(dirs: string[], name: string) {
102103

103104
export function setupPipPackSystem(name: string) {
104105
if (process.platform === "linux") {
106+
info(`Installing ${name} via the system package manager`)
105107
if (isArch()) {
106108
return setupPacmanPack(`python-${name}`)
107109
} else if (hasDnf()) {

0 commit comments

Comments
 (0)