Skip to content

Commit 24ed36b

Browse files
committed
fix: fix pipx installation on arch
1 parent d34b955 commit 24ed36b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dist/legacy/setup-cpp.js

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/legacy/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/modern/setup-cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function setupPipx(foundPython: string) {
7474
if (!(await hasPipxModule(foundPython))) {
7575
// install pipx for the system-wide python
7676
try {
77-
await setupPipPackSystem("pipx", false)
77+
await setupPipPackSystem("pipx")
7878
} catch (err) {
7979
notice(`pipx was not installed completely for the system-wide python: ${err}`)
8080
}

src/utils/setup/setupPipPack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export async function setupPipPackSystem(name: string, givenAddPythonPrefix?: bo
286286
if (process.platform === "linux") {
287287
info(`Installing ${name} via the system package manager`)
288288

289-
const addPythonPrefix = name === "pipx" ? false : (givenAddPythonPrefix ?? true)
289+
const addPythonPrefix = name === "pipx" ? isArch() : (givenAddPythonPrefix ?? true)
290290

291291
if (isArch()) {
292292
return setupPacmanPack(addPythonPrefix ? `python-${name}` : name)

0 commit comments

Comments
 (0)