Skip to content

Commit ed3200f

Browse files
committed
Try to only patch VS2008 when required.
1 parent 39d37bd commit ed3200f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.appveyor.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ environment:
1919

2020
matrix:
2121
- CONDA_LOC: "C:\\Miniconda-x64"
22+
PATCH_VS2008: "1"
2223
- CONDA_LOC: "C:\\Miniconda35-x64"
24+
PATCH_VS2008: "0"
2325
- CONDA_LOC: "C:\\Miniconda36-x64"
26+
PATCH_VS2008: "0"
2427

2528
install:
2629
# This breaks conda-build because of git
@@ -29,9 +32,12 @@ install:
2932
- cmd: set PYTHONUNBUFFERED=1
3033
- cmd: conda install -n root --yes conda conda-env conda-build anaconda-client
3134
# We borrow a trick from conda-forge to fix the VS2008 compiler
32-
- cmd: conda config --append channels conda-forge
33-
- cmd: conda install --yes vs2008_express_vc_python_patch
34-
- cmd: call setup_x64
35+
- ps: |
36+
if($env:PATCH_VS2008 -eq '1') {
37+
cmd /c "conda config --append channels conda-forge 2>&1"
38+
cmd /c "conda install --yes vs2008_express_vc_python_patch 2>&1"
39+
cmd /c "call setup_x64 2>&1"
40+
}
3541
3642
build: off
3743

0 commit comments

Comments
 (0)