Skip to content

Commit 20b0642

Browse files
committed
fix: remove forced installation of pip on windows
1 parent dabb2db commit 20b0642

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/setup/setupPipPack.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { addPath } from "../path/addPath"
77
import { setupPython } from "../../python/python"
88
import { isBinUptoDate } from "./version"
99
import { join } from "path"
10-
import { isGitHubCI } from "../env/isci"
11-
import { getVersion } from "../../default_versions"
1210

1311
let pip: string | undefined
1412

@@ -18,15 +16,12 @@ let binDir: string | undefined
1816
export async function setupPipPack(name: string, version?: string) {
1917
// setup python and pip if needed
2018
if (pip === undefined) {
21-
if (isGitHubCI() && process.platform === "win32") {
22-
// run setupPython in actions_python anyways
23-
await setupPython(getVersion("python", undefined), "", process.arch)
24-
}
2519
if (which.sync("pip3", { nothrow: true }) !== null) {
2620
pip = "pip3"
2721
} else if (which.sync("pip", { nothrow: true }) !== null && (await isBinUptoDate("python", "3.0.0"))) {
2822
pip = "pip"
2923
} else {
24+
info("pip3 was not found. Installing python")
3025
await setupPython("3.x", "", process.arch)
3126
pip = "pip3"
3227
}

0 commit comments

Comments
 (0)