diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2018-11-27 09:52:01 -0800 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2018-11-27 09:54:14 -0800 |
commit | 425301dc3a132de1effcd610e8e0a74762745f1a (patch) | |
tree | 695bdad3fedb2d504bb574403ba18146c3592cdd /azure-pipelines.yml | |
parent | 1e2cb50706c12c97396f311c3172963980d3e40c (diff) | |
download | numpy-425301dc3a132de1effcd610e8e0a74762745f1a.tar.gz |
TST: use condition for Azure 2.7 check
* the Azure condition directive now
works just fine & is used in place
of a single-line jumble for Python
version checking in our CI now
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a05da2e5b..3052b81b8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -122,12 +122,12 @@ jobs: architecture: $(PYTHON_ARCH) # as noted by numba project, currently need # specific VC install for Python 2.7 - # NOTE: had some issues splitting powershell - # command into bits and / or using condition - # directive, so squeezing operation to a single - # line for now - - powershell: if ($env:PYTHON_VERSION -eq 2.7) {$wc = New-Object net.webclient; $wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi", "VCForPython27.msi"); Start-Process "VCForPython27.msi" /qn -Wait} + - powershell: | + $wc = New-Object net.webclient + $wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi", "VCForPython27.msi") + Start-Process "VCForPython27.msi" /qn -Wait displayName: 'Install VC 9.0' + condition: eq(variables['PYTHON_VERSION'], '2.7') - script: python -m pip install --upgrade pip setuptools wheel displayName: 'Install tools' - script: python -m pip install cython nose pytz pytest |