mirror of https://github.com/aminya/setup-cpp
fix: install pip packages system-wide
This commit is contained in:
parent
75259a989c
commit
6aef987ea2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -39,13 +39,9 @@ export async function setupPipPack(name: string, version?: string): Promise<Inst
|
||||||
execa.sync(python, ["-m", "pip", "install", "-U", "pip==21.3.1"])
|
execa.sync(python, ["-m", "pip", "install", "-U", "pip==21.3.1"])
|
||||||
}
|
}
|
||||||
|
|
||||||
execa.sync(
|
execa.sync(python, ["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name], {
|
||||||
python,
|
stdio: "inherit",
|
||||||
["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name, "--user"],
|
})
|
||||||
{
|
|
||||||
stdio: "inherit",
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
if (binDir === undefined) {
|
if (binDir === undefined) {
|
||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
|
|
Loading…
Reference in New Issue