fix: install venv for using pipx

This commit is contained in:
Amin Yahyaabadi 2023-09-01 03:46:12 -07:00
parent 42d3ea447e
commit 20531c3692
8 changed files with 8 additions and 6 deletions

View File

@ -88,6 +88,7 @@ words:
- vcpkg
- VCPKG
- vcvarsall
- venv
- visualc
- visualcpp
- vsversion

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -47,6 +47,7 @@ async function setupPipx(foundPython: string) {
await setupPipPackWithPython(foundPython, "pipx", undefined, { upgrade: true, usePipx: false })
}
await execa(foundPython, ["-m", "pipx", "ensurepath"], { stdio: "inherit" })
await setupPipPackWithPython(foundPython, "venv", undefined, { upgrade: false, usePipx: false })
} catch (err) {
warning(`Failed to install pipx: ${(err as Error).toString()}. Ignoring...`)
}