mirror of https://github.com/aminya/setup-cpp
fix: downgrade pip on Windows to 21.3.1
https://github.com/pypa/pip/issues/10875#issuecomment-1030293005
This commit is contained in:
parent
c86ba684b1
commit
75259a989c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -34,10 +34,18 @@ export async function setupPipPack(name: string, version?: string): Promise<Inst
|
||||||
return setupPipPack(name, version)
|
return setupPipPack(name, version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (process.platform === "win32") {
|
||||||
|
// https://github.com/pypa/pip/issues/10875#issuecomment-1030293005
|
||||||
|
execa.sync(python, ["-m", "pip", "install", "-U", "pip==21.3.1"])
|
||||||
|
}
|
||||||
|
|
||||||
execa.sync(python, ["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name], {
|
execa.sync(
|
||||||
|
python,
|
||||||
|
["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name, "--user"],
|
||||||
|
{
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
|
||||||
if (binDir === undefined) {
|
if (binDir === undefined) {
|
||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
|
|
Loading…
Reference in New Issue