fix: install pip packages system-wide

This commit is contained in:
Amin Yahyaabadi 2022-02-05 13:24:04 -08:00
parent 75259a989c
commit 6aef987ea2
3 changed files with 5 additions and 9 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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", version !== undefined && version !== "" ? `${name}==${version}` : name, "--user"],
{
execa.sync(python, ["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name], {
stdio: "inherit",
}
)
})
if (binDir === undefined) {
if (process.platform === "linux") {