Configure pip for internal cache

Task-number: QTQAINFRA-5531
Change-Id: I89c5502f62b2777a06b8f301a9fbaca1a3f8859d
Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
This commit is contained in:
Casimir Saastamoinen
2023-08-30 15:24:06 +03:00
parent 50aa0031a4
commit 23116e7331
16 changed files with 61 additions and 4 deletions

View File

@@ -69,6 +69,10 @@ Run-Executable "$targetDir\python.exe" "-m ensurepip"
Write-Host "Upgrade pip to the latest version available."
Run-Executable "$targetDir\python.exe" "-m pip install --upgrade pip"
Write-Host "Configure pip"
Run-Executable "$targetDir\python.exe" "-m pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache"
Run-Executable "$targetDir\python.exe" "-m pip config --user set global.extra-index-url https://pypi.org/simple/"
# Install python virtual env
if (IsProxyEnabled) {
$proxy = Get-Proxy