mirror of https://github.com/aminya/setup-cpp
fix: install python 3.8.1 if it is not already installed
This commit is contained in:
parent
20b0642c37
commit
94827f017e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -7,6 +7,7 @@ import { addPath } from "../path/addPath"
|
||||||
import { setupPython } from "../../python/python"
|
import { setupPython } from "../../python/python"
|
||||||
import { isBinUptoDate } from "./version"
|
import { isBinUptoDate } from "./version"
|
||||||
import { join } from "path"
|
import { join } from "path"
|
||||||
|
import { getVersion } from "../../default_versions"
|
||||||
|
|
||||||
let pip: string | undefined
|
let pip: string | undefined
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ export async function setupPipPack(name: string, version?: string) {
|
||||||
pip = "pip"
|
pip = "pip"
|
||||||
} else {
|
} else {
|
||||||
info("pip3 was not found. Installing python")
|
info("pip3 was not found. Installing python")
|
||||||
await setupPython("3.x", "", process.arch)
|
await setupPython(getVersion("python", undefined), "", process.arch)
|
||||||
pip = "pip3"
|
pip = "pip3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue