From 3d7f92cbfbdb9fb4c1dd5f479cd4ba04bdeb4f25 Mon Sep 17 00:00:00 2001 From: Michal Nowikowski Date: Mon, 22 Sep 2014 05:55:23 +0200 Subject: Added support for AppVeroy for CI on Windows --- appveyor/install.ps1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 appveyor/install.ps1 (limited to 'appveyor/install.ps1') diff --git a/appveyor/install.ps1 b/appveyor/install.ps1 new file mode 100644 index 0000000..e13c388 --- /dev/null +++ b/appveyor/install.ps1 @@ -0,0 +1,27 @@ +# Sample script to install pip under Windows +# Authors: Olivier Grisel, Jonathan Helmus and Kyle Kastner +# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ + +$GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py" +$GET_PIP_PATH = "C:\get-pip.py" + + +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..." + $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." + } +} + +function main () { + InstallPip $env:PYTHON +} + +main -- cgit v1.2.1