Skip to content

Commit 5980f76

Browse files
committed
fix: skip downgrading pip in subsequent calls
1 parent 69841cf commit 5980f76

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ export async function setupPipPack(name: string, version?: string): Promise<Inst
3535
tried = true
3636
return setupPipPack(name, version)
3737
}
38-
}
39-
if (process.platform === "win32") {
40-
// https://github.com/pypa/pip/issues/10875#issuecomment-1030293005
41-
execa.sync(python, ["-m", "pip", "install", "-U", "pip==21.3.1"], { stdio: "inherit" })
38+
if (process.platform === "win32") {
39+
// downgrade pip on Windows
40+
// https://github.com/pypa/pip/issues/10875#issuecomment-1030293005
41+
execa.sync(python, ["-m", "pip", "install", "-U", "pip==21.3.1"], { stdio: "inherit" })
42+
}
4243
}
4344

4445
execa.sync(python, ["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name], {

0 commit comments

Comments
 (0)