Skip to content

Commit 6aef987

Browse files
committed
fix: install pip packages system-wide
1 parent 75259a9 commit 6aef987

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Diff for: dist/setup_cpp.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/setup_cpp.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/utils/setup/setupPipPack.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,9 @@ export async function setupPipPack(name: string, version?: string): Promise<Inst
3939
execa.sync(python, ["-m", "pip", "install", "-U", "pip==21.3.1"])
4040
}
4141

42-
execa.sync(
43-
python,
44-
["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name, "--user"],
45-
{
46-
stdio: "inherit",
47-
}
48-
)
42+
execa.sync(python, ["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name], {
43+
stdio: "inherit",
44+
})
4945

5046
if (binDir === undefined) {
5147
if (process.platform === "linux") {

0 commit comments

Comments
 (0)