mirror of https://github.com/aminya/setup-cpp
fix: skip downgrading pip in subsequent calls
This commit is contained in:
parent
69841cf764
commit
5980f76f4a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -35,11 +35,12 @@ export async function setupPipPack(name: string, version?: string): Promise<Inst
|
|||
tried = true
|
||||
return setupPipPack(name, version)
|
||||
}
|
||||
}
|
||||
if (process.platform === "win32") {
|
||||
// downgrade pip on Windows
|
||||
// https://github.com/pypa/pip/issues/10875#issuecomment-1030293005
|
||||
execa.sync(python, ["-m", "pip", "install", "-U", "pip==21.3.1"], { stdio: "inherit" })
|
||||
}
|
||||
}
|
||||
|
||||
execa.sync(python, ["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name], {
|
||||
stdio: "inherit",
|
||||
|
|
Loading…
Reference in New Issue