aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/python.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'coin/provisioning/common/python.ps1')
-rw-r--r--coin/provisioning/common/python.ps116
1 files changed, 6 insertions, 10 deletions
diff --git a/coin/provisioning/common/python.ps1 b/coin/provisioning/common/python.ps1
index 29114456..0be96eef 100644
--- a/coin/provisioning/common/python.ps1
+++ b/coin/provisioning/common/python.ps1
@@ -30,27 +30,23 @@
## $QT_END_LICENSE$
##
#############################################################################
-param([Int32]$archVer=32)
. "$PSScriptRoot\helpers.ps1"
# This script installs Python $version.
# Python is required for building Qt 5 from source.
$version = "2.7.13"
-$package = "C:\Windows\temp\python-$version.msi"
-
-# check bit version
-if ( $archVer -eq 64 ) {
- echo "Running in 64 bit system"
- $externalUrl = "https://www.python.org/ftp/python/$version/python-$version.amd64.msi"
- $internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\python-$version.amd64.msi"
+if( (is64bitWinHost) -eq 1 ) {
+ $arch = ".amd64"
$sha1 = "d9113142bae8829365c595735e1ad1f9f5e2894c"
}
else {
- $externalUrl = "https://www.python.org/ftp/python/$version/python-$version.msi"
- $internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\python-$version.msi"
+ $arch = ""
$sha1 = "7e3b54236dbdbea8fe2458db501176578a4d59c0"
}
+$package = "C:\Windows\temp\python-$version.msi"
+$externalUrl = "https://www.python.org/ftp/python/$version/python-$version" + $arch + ".msi"
+$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\python-$version" + $arch + ".msi"
echo "Fetching from URL..."
Download $externalUrl $internalUrl $package