mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-23 06:41:06 +08:00
Download and cache needed python wheels during provisioning
Instead of downloading the packages during the compile/configure step setup a wheel cache folder during the provisioning phase Task-number: AUTOSUITE-195 Change-Id: I465f1be7cdd351e7680dcd8ae22d5e97ddf8cb2d Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
This commit is contained in:
committed by
Simon Hausmann
parent
d16c0d2675
commit
f9f9e0944d
@@ -79,7 +79,12 @@ if (IsProxyEnabled) {
|
||||
Write-Host "Using proxy ($proxy) with pip"
|
||||
$pip_args = "--proxy=$proxy"
|
||||
}
|
||||
Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install virtualenv"
|
||||
Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install virtualenv wheel"
|
||||
|
||||
# Install all needed packages in a special wheel cache directory
|
||||
$python3_wheel_dir="$install_path\python3-wheels"
|
||||
Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args wheel --wheel-dir $python3_wheel_dir -r $PSScriptRoot\..\shared\requirements.txt"
|
||||
Set-EnvironmentVariable "PYTHON3_WHEEL_CACHE" "$python3_wheel_dir"
|
||||
|
||||
Write-Output "Python3-$archVer = $version" >> ~/versions.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user