Skip to content

Commit

Permalink
Use powershell and nuget to install prereleases of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 20, 2020
1 parent a6a5d75 commit ab8b1d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ stages:
maxParallel: 4

steps:
- powershell: |
nuget install python -Prerelease -OutputDirectory "$(Build.BinariesDirectory)" -ExcludeVersion -NonInteractive
Write-Host "##vso[task.prependpath]$(Build.BinariesDirectory)\python\tools"
Write-Host "##vso[task.prependpath]$(Build.BinariesDirectory)\python\tools\Scripts"
condition: and(succeeded(), and(eq($(python.version), '3.9'), eq($(pool_vm_image), 'vs2017-win2016')))
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
condition: and(succeeded(), ne($(python.version), '3.9'))

- script: python -m pip install tox
displayName: 'Install tox'
Expand Down

0 comments on commit ab8b1d7

Please sign in to comment.