aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/windows/python3.ps1
diff options
context:
space:
mode:
authorHeikki Halmet <heikki.halmet@qt.io>2019-08-01 14:51:40 +0300
committerLiang Qi <liang.qi@qt.io>2019-09-17 08:57:18 +0000
commit0cf3fdabe315d62066a7642787a5058a737a79e4 (patch)
treea2788170373b2044db737868fcece9062e0d8fdb /coin/provisioning/common/windows/python3.ps1
parenta3136bdbfef242339c002630f51b4bc0f5c05503 (diff)
Provisioning: Upgrade Python pip version for Windows machines
Task-number: QTQAINFRA-2564 Change-Id: I10402bb3169b483c71e44db7ecba443eb4f46dc1 Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'coin/provisioning/common/windows/python3.ps1')
-rw-r--r--coin/provisioning/common/windows/python3.ps16
1 files changed, 5 insertions, 1 deletions
diff --git a/coin/provisioning/common/windows/python3.ps1 b/coin/provisioning/common/windows/python3.ps1
index c05c022c..8fbd615c 100644
--- a/coin/provisioning/common/windows/python3.ps1
+++ b/coin/provisioning/common/windows/python3.ps1
@@ -1,6 +1,6 @@
#############################################################################
##
-## Copyright (C) 2017 The Qt Company Ltd.
+## Copyright (C) 2019 The Qt Company Ltd.
## Copyright (C) 2017 Pelagicore AG
## Contact: http://www.qt.io/licensing/
##
@@ -79,6 +79,10 @@ if (IsProxyEnabled) {
Write-Host "Using proxy ($proxy) with pip"
$pip_args = "--proxy=$proxy"
}
+
+Write-Host "Upgrade pip3 to the latest version available."
+Run-Executable "$install_path\python.exe" "-m pip install --upgrade pip"
+
Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install virtualenv wheel"
# Install all needed packages in a special wheel cache directory