mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-18 02:06:20 +08:00
Take proxy into use in python provisioning in windows
Task-number: QTQAINFRA-1669 Change-Id: I2030f244da65e4fd0c3b0be54d941b065f9a180e Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
@@ -64,10 +64,11 @@ Add-Path "C:\Python27;C:\Python27\Scripts"
|
||||
Run-Executable "C:\Python27\python.exe" "-m ensurepip"
|
||||
|
||||
# Install python virtual env
|
||||
#if (isProxyEnabled) {
|
||||
# Write-Host "Using proxy with pip"
|
||||
# $pip_args = "--proxy=" + (getProxy)
|
||||
#}
|
||||
Run-Executable "C:\Python27\Scripts\pip.exe" "install virtualenv"
|
||||
if (IsProxyEnabled) {
|
||||
$proxy = Get-Proxy
|
||||
Write-Host "Using proxy ($proxy) with pip"
|
||||
$pip_args = "--proxy=$proxy"
|
||||
}
|
||||
Run-Executable "C:\Python27\Scripts\pip.exe" "$pip_args install virtualenv"
|
||||
|
||||
Write-Output "Python = $version" >> ~/versions.txt
|
||||
|
||||
Reference in New Issue
Block a user