Trying to build for py 2.7 with msvc++ 9.0

This commit is contained in:
Thomas Ferreira de Lima 2019-01-01 22:40:33 -05:00
parent 2cf52b54c1
commit 05d9b4c851
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 14 additions and 6 deletions

View File

@ -1,16 +1,16 @@
# https://aka.ms/yaml
jobs:
- job: 'Test'
- job: 'Build'
pool:
vmImage: 'vs2017-win2016' # other options: 'macOS-10.13', 'ubuntu-16.04'
strategy:
matrix:
Python27:
python.version: '2.7'
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
# Python35:
# python.version: '3.5'
# Python36:
# python.version: '3.6'
maxParallel: 3
steps:
@ -26,7 +26,6 @@ jobs:
- task: PowerShell@2
inputs:
targetType: 'inline' # Optional. Options: filePath, inline
#filePath: # Required when targetType == FilePath
#arguments: # Optional
script: | # Required when targetType == Inline
pwd
@ -41,6 +40,15 @@ jobs:
#workingDirectory: # Optional
displayName: 'Downloading and Extracting KLayout bits'
- script: |
curl https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi -o VCForPython27.msi
msiexec /i VCForPython27.msi /quiet
set "VS90COMNTOOLS=C:\Users\VssAdministrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC"
curl https://raw.githubusercontent.com/mattn/gntp-send/master/include/msinttypes/stdint.h -o "%VS90COMNTOOLS%\Include\stdint.h"
dir "%VS90COMNTOOLS%\Include"
condition: eq(variables['python.version'], '2.7')
displayName: 'Installing Microsoft Visual C++ Compiler for Python 2.7'
- script: |
pip install --user --upgrade pip setuptools wheel
displayName: 'Updating pip, setuptools and wheel'