mirror of https://github.com/aminya/setup-cpp
fix: add pipxBinDir to PATH
This commit is contained in:
parent
f3a5dc3f05
commit
5f8ace2495
|
@ -62,7 +62,10 @@ export async function setupPipPackWithPython(
|
||||||
if (isPipx && user) {
|
if (isPipx && user) {
|
||||||
// install to user home
|
// install to user home
|
||||||
env.PIPX_HOME = await getPipxHome()
|
env.PIPX_HOME = await getPipxHome()
|
||||||
env.PIPX_BIN_DIR = getPipxBinDir()
|
|
||||||
|
const pipxBinDir = getPipxBinDir()
|
||||||
|
env.PIPX_BIN_DIR = pipxBinDir
|
||||||
|
await addPath(pipxBinDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
execaSync(givenPython, ["-m", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {
|
execaSync(givenPython, ["-m", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {
|
||||||
|
|
Loading…
Reference in New Issue