fix: install wheel for pip packages

This commit is contained in:
Amin Yahyaabadi 2022-05-21 21:39:41 -07:00
parent 6cd569102d
commit 136dd0bb4d
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ export async function setupPipPack(name: string, version?: string): Promise<Inst
// ensure that pip is installed on Linux (happens when python is found but pip not installed)
setupAptPack("python3-pip")
}
// install wheel (required for Conan, Meson, etc.)
execa.sync(python, ["-m", "pip", "install", "-U", "wheel"], { stdio: "inherit" })
}
execa.sync(python, ["-m", "pip", "install", version !== undefined && version !== "" ? `${name}==${version}` : name], {