File tree 3 files changed +26
-11
lines changed
3 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 64
64
name : Windows
65
65
vmImage : vs2017-win2016
66
66
matrix :
67
- py37 :
68
- CONDA_PY : ' 3.7'
67
+ py37_64 :
68
+ PYTHON_VERSION : ' 3.7'
69
69
CHECK_WARNINGS : ' true'
70
- py35 :
71
- CONDA_PY : ' 3.5'
70
+ PYTHON_ARCH : ' 64'
71
+ py35_32 :
72
+ PYTHON_VERSION : ' 3.5'
73
+ PYTHON_ARCH : ' 32'
74
+
Original file line number Diff line number Diff line change @@ -6,13 +6,17 @@ set PIP_INSTALL=pip install -q
6
6
7
7
@ echo on
8
8
9
- @ rem Deactivate any environment
10
- call deactivate
11
- @ rem Clean up any left-over from a previous build
12
- conda remove --all -q -y -n %VIRTUALENV%
13
- conda create -n %VIRTUALENV% -q -y python=%CONDA_PY% numpy scipy cython pytest wheel pillow
9
+ IF " %PYTHON_ARCH% " == " 64" (
10
+ @ rem Deactivate any environment
11
+ call deactivate
12
+ @ rem Clean up any left-over from a previous build
13
+ conda remove --all -q -y -n %VIRTUALENV%
14
+ conda create -n %VIRTUALENV% -q -y python=%PYTHON_VERSION% numpy scipy cython pytest wheel pillow
14
15
15
- call activate %VIRTUALENV%
16
+ call activate %VIRTUALENV%
17
+ ) else (
18
+ pip install numpy scipy cython pytest wheel pillow
19
+ )
16
20
python -m pip install -U pip
17
21
python --version
18
22
pip --version
Original file line number Diff line number Diff line change 19
19
20
20
steps :
21
21
- powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
22
- displayName : Add conda to PATH
22
+ displayName : Add conda to PATH for 64 bit Python
23
+ condition : eq(variables['PYTHON_ARCH'], '64')
24
+ - task : UsePythonVersion@0
25
+ inputs :
26
+ versionSpec : ' $(PYTHON_VERSION)'
27
+ addToPath : true
28
+ architecture : ' x86'
29
+ displayName : Use 32 bit System Python
30
+ condition : eq(variables['PYTHON_ARCH'], '32')
23
31
- script : |
24
32
build_tools\\azure\\install.cmd
25
33
displayName: 'Install'
You can’t perform that action at this time.
0 commit comments