Skip to content

Commit

Permalink
Update SWIG
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Mar 15, 2022
1 parent 8a7e27f commit 825bf18
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions appveyor.yml
Expand Up @@ -6,13 +6,12 @@ image: Visual Studio 2019

cache:
- '%LOCALAPPDATA%\pip\Cache'
- '%APPVEYOR_BUILD_FOLDER%\swigwin-3.0.12.zip'
- '%APPVEYOR_BUILD_FOLDER%\swigwin-4.0.2.zip'
- '%APPVEYOR_BUILD_FOLDER%\swigwin-4.1.0.zip'

environment:

global:
SWIG_VER: swigwin-4.0.2
SWIG_VER: swigwin-4.1.0
TWINE_USERNAME: mapserver
TWINE_PASSWORD:
secure: mHoJHeXdXbBNoDf7MA4ZEg==
Expand All @@ -22,7 +21,6 @@ environment:
matrix:
- platform: x86
Python_ROOT_DIR: c:/python27
SWIG_VER: swigwin-3.0.12
- platform: x64
Python_ROOT_DIR: c:/python27-x64
- platform: x64
Expand Down Expand Up @@ -61,18 +59,15 @@ build_script:
- if "%platform%" == "x64" call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvars64.bat"
- if "%platform%" == "x86" call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvars32.bat"
- echo "%VS_FULL%"
- if not exist %SWIG_VER%.zip appveyor DownloadFile https://sourceforge.net/projects/swig/files/swigwin/%SWIG_VER%/%SWIG_VER%.zip
- if not exist %SWIG_VER%.zip appveyor DownloadFile https://github.com/geographika/python-mapscript/raw/main/%SWIG_VER%.zip
- set SDK_ZIP=%SDK%-dev.zip
- set SDK_URL=http://download.gisinternals.com/sdk/downloads/%SDK_ZIP%
- mkdir sdk
- 7z x %SWIG_VER%.zip -osdk > nul
# add custom swig.exe
- appveyor DownloadFile http://download.osgeo.org/mapserver/docs/swigwin-4.0.2.mapserver.zip
- cd sdk
- appveyor DownloadFile "%SDK_URL%"
- 7z x "%SDK_ZIP%" > nul
- cd %BUILD_FOLDER%/sdk/%SWIG_VER%/
- if "%platform%" == "x64" 7z e %BUILD_FOLDER%/swigwin-4.0.2.mapserver.zip -y -r swig.exe > nul
- set SDK_PREFIX=%BUILD_FOLDER%/sdk/%SDK%
- set SDK_INC=%BUILD_FOLDER%/sdk/%SDK%/include
- set SDK_LIB=%BUILD_FOLDER%/sdk/%SDK%/lib
Expand Down

0 comments on commit 825bf18

Please sign in to comment.