fix: install python 3.8.1 if it is not already installed

This commit is contained in:
Amin Yahyaabadi 2022-02-05 11:33:40 -08:00
parent 20b0642c37
commit 94827f017e
3 changed files with 4 additions and 3 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

@ -7,6 +7,7 @@ import { addPath } from "../path/addPath"
import { setupPython } from "../../python/python"
import { isBinUptoDate } from "./version"
import { join } from "path"
import { getVersion } from "../../default_versions"
let pip: string | undefined
@ -22,7 +23,7 @@ export async function setupPipPack(name: string, version?: string) {
pip = "pip"
} else {
info("pip3 was not found. Installing python")
await setupPython("3.x", "", process.arch)
await setupPython(getVersion("python", undefined), "", process.arch)
pip = "pip3"
}
}