Skip to content

Commit 94827f0

Browse files
committed
fix: install python 3.8.1 if it is not already installed
1 parent 20b0642 commit 94827f0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { addPath } from "../path/addPath"
77
import { setupPython } from "../../python/python"
88
import { isBinUptoDate } from "./version"
99
import { join } from "path"
10+
import { getVersion } from "../../default_versions"
1011

1112
let pip: string | undefined
1213

@@ -22,7 +23,7 @@ export async function setupPipPack(name: string, version?: string) {
2223
pip = "pip"
2324
} else {
2425
info("pip3 was not found. Installing python")
25-
await setupPython("3.x", "", process.arch)
26+
await setupPython(getVersion("python", undefined), "", process.arch)
2627
pip = "pip3"
2728
}
2829
}

0 commit comments

Comments
 (0)