summaryrefslogtreecommitdiff
path: root/appveyor
diff options
context:
space:
mode:
authorLisandro Dalcin <dalcinl@gmail.com>2015-05-25 16:05:22 +0300
committerLisandro Dalcin <dalcinl@gmail.com>2015-05-25 16:05:22 +0300
commit6344f0b05b4c96f7b4803890cdf8fd9744a1d69d (patch)
treec3e255f211df7c8da07e4fadd2e6989d84f3bd28 /appveyor
parent10a74bb2ff7233d8471bfb4e4d9bdeb0a860696b (diff)
downloadcython-6344f0b05b4c96f7b4803890cdf8fd9744a1d69d.tar.gz
AppVeyor: Various fixes and enhancements
* Add Python 2.6 x86/x64 to the build matrix. * Use clone_depth option, no need to clone the full repo. * Build master branch and last release branch. * Use up-to-date pip and setuptools. * Build wheels, msi, and wininst installers.
Diffstat (limited to 'appveyor')
-rw-r--r--appveyor/install.ps128
1 files changed, 19 insertions, 9 deletions
diff --git a/appveyor/install.ps1 b/appveyor/install.ps1
index 2f96d26b3..57ff08062 100644
--- a/appveyor/install.ps1
+++ b/appveyor/install.ps1
@@ -51,7 +51,7 @@ function InstallPython ($python_version, $architecture, $python_home) {
Write-Host "Installing" $filepath "to" $python_home
$args = "/qn /i $filepath TARGETDIR=$python_home"
Write-Host "msiexec.exe" $args
- Start-Process -FilePath "msiexec.exe" -ArgumentList $args -Wait -Passthru
+ Start-Process -FilePath "msiexec.exe" -ArgumentList $args -Wait
Write-Host "Python $python_version ($architecture) installation complete"
return $true
}
@@ -60,18 +60,28 @@ function InstallPython ($python_version, $architecture, $python_home) {
function InstallPip ($python_home) {
$pip_path = $python_home + "\Scripts\pip.exe"
$python_path = $python_home + "\python.exe"
- if (-not(Test-Path $pip_path)) {
- Write-Host "Installing pip..."
+ if (Test-Path $pip_path) {
+ Write-Host "Upgrading pip"
+ $args = "-m pip.__main__ install --upgrade pip"
+ Write-Host "Executing:" $python_path $args
+ Start-Process -FilePath $python_path -ArgumentList $args -Wait
+ Write-Host "pip upgrade complete"
+ } else {
+ Write-Host "Installing pip"
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile($GET_PIP_URL, $GET_PIP_PATH)
Write-Host "Executing:" $python_path $GET_PIP_PATH
- Start-Process -FilePath "$python_path" -ArgumentList "$GET_PIP_PATH" -Wait -Passthru
- } else {
- Write-Host "pip already installed."
- }
+ Start-Process -FilePath "$python_path" -ArgumentList "$GET_PIP_PATH"
+ Write-Host "pip installation complete"
+ }
+ Write-Host "Upgrading setuptools"
+ $args = "install --upgrade setuptools"
+ Write-Host "Executing:" $pip_path $args
+ Start-Process -FilePath $pip_path -ArgumentList $args -Wait
+ Write-Host "setuptools upgrade complete"
}
-function InstallPackage ($python_home, $pkg) {
+function InstallPipPackage ($python_home, $pkg) {
$pip_path = $python_home + "\Scripts\pip.exe"
& $pip_path install $pkg
}
@@ -79,7 +89,7 @@ function InstallPackage ($python_home, $pkg) {
function main () {
InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
InstallPip $env:PYTHON
- InstallPackage $env:PYTHON wheel
+ InstallPipPackage $env:PYTHON wheel
}
main