Skip to content

Commit 9446117

Browse files
committed
Fix brokeness with vs2008 through a conda-forge trick.
1 parent 61785cb commit 9446117

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.appveyor.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,23 @@ configuration:
1616
environment:
1717
matrix:
1818
- CONDA_LOC: "C:\\Miniconda-x64"
19-
VS_PATH: "C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0"
2019
- CONDA_LOC: "C:\\Miniconda35-x64"
21-
VS_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC"
2220

2321
install:
2422
# This breaks conda-build because of git
2523
- cmd: rmdir C:\cygwin /s /q
2624
- cmd: call %CONDA_LOC%\Scripts\activate.bat
2725
- cmd: set PYTHONUNBUFFERED=1
2826
- cmd: conda install -n root --yes conda conda-env conda-build anaconda-client
27+
# We borrow a trick from conda-forge to fix the VS2008 compiler
28+
- cmd: conda config --append channels conda-forge
29+
- cmd: conda install --yes vs2008_express_vc_python_patch
30+
- cmd: call setup_x64
2931

3032
build: off
3133

3234
test_script:
3335
- cmd: for /f "tokens=*" %%i in ('python -c "import versioneer; print(versioneer.get_version())"') do set GPUARRAY_VERSION=%%i
34-
- cd %VS_PATH%
35-
- vcvarsall x64
36-
- cd C:\projects\libgpuarray
3736
- cmd: conda build conda
3837

3938
deploy_script:

0 commit comments

Comments
 (0)