|
@@ -8,8 +8,6 @@ environment:
|
|
|
PACKAGE_NAME: protobuf
|
|
|
BUILD_COMMIT: v3.5.2
|
|
|
BUILD_VERSION: 3.5.2
|
|
|
- MINGW_32: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
|
|
|
- MINGW_64: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
|
|
|
BUILD_DLL: OFF
|
|
|
UNICODE: ON
|
|
|
PB_TEST_DEP: "six==1.9"
|
|
@@ -63,9 +61,19 @@ install:
|
|
|
- python -m pip install -U pip
|
|
|
- pip install wheel
|
|
|
|
|
|
- # # Fix MSVC builds for 64-bit Python. See:
|
|
|
- # # http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
|
|
|
- # - echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
|
|
|
+ # Fix MSVC builds for 64-bit Python. See:
|
|
|
+ # http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
|
|
|
+ - echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
|
|
|
+
|
|
|
+ # Fix MSVC builds for 64-bit Python2.7. See:
|
|
|
+ # https://help.appveyor.com/discussions/kb/38-visual-studio-2008-64-bit-builds
|
|
|
+ - curl -L -o vs2008_patch.zip https://github.com/menpo/condaci/raw/master/vs2008_patch.zip
|
|
|
+ - 7z x vs2008_patch.zip -ovs2008_patch
|
|
|
+ - cd vs2008_patch
|
|
|
+ - CALL setup_x64.bat
|
|
|
+ - dir "C:\Program Files (x86)\"
|
|
|
+ - copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
|
|
|
+ - cd ..
|
|
|
|
|
|
# Check that we have the expected version and architecture for Python
|
|
|
- python --version
|
|
@@ -82,6 +90,18 @@ install:
|
|
|
- del /Q zlib-src.zip
|
|
|
|
|
|
before_build:
|
|
|
+ - if %PYTHON%==C:\Python27 set generator=Visual Studio 9 2008
|
|
|
+ - if %PYTHON%==C:\Python27 set vcplatform=Win32
|
|
|
+
|
|
|
+ - if %PYTHON%==C:\Python27-x64 set generator=Visual Studio 9 2008 Win64
|
|
|
+ - if %PYTHON%==C:\Python27-x64 set vcplatform=x64
|
|
|
+
|
|
|
+ - if %PYTHON%==C:\Python34 set generator=Visual Studio 10 2010
|
|
|
+ - if %PYTHON%==C:\Python34 set vcplatform=Win32
|
|
|
+
|
|
|
+ - if %PYTHON%==C:\Python34-x64 set generator=Visual Studio 10 2010 Win64
|
|
|
+ - if %PYTHON%==C:\Python34-x64 set vcplatform=x64
|
|
|
+
|
|
|
- if %PYTHON%==C:\Python35 set generator=Visual Studio 14
|
|
|
- if %PYTHON%==C:\Python35 set vcplatform=Win32
|
|
|
|
|
@@ -94,21 +114,6 @@ before_build:
|
|
|
- if %PYTHON%==C:\Python36-x64 set generator=Visual Studio 14 Win64
|
|
|
- if %PYTHON%==C:\Python36-x64 set vcplatform=x64
|
|
|
|
|
|
- - if %PYTHON%==C:\Python27 set MINGW=%MINGW_32%
|
|
|
- - if %PYTHON%==C:\Python27-x64 set MINGW=%MINGW_64%
|
|
|
- - if %PYTHON%==C:\Python34 set MINGW=%MINGW_32%
|
|
|
- - if %PYTHON%==C:\Python34-x64 set MINGW=%MINGW_64%
|
|
|
-
|
|
|
- - if %PYTHON_VERSION%==2.7 set generator=MSYS Makefiles
|
|
|
- - if %PYTHON_VERSION%==2.7 set PATH=%MINGW%;%PATH%
|
|
|
- - if %PYTHON_VERSION%==2.7 echo [build] > %PYTHON%\Lib\distutils\distutils.cfg
|
|
|
- - if %PYTHON_VERSION%==2.7 echo.compiler = mingw32 >> %PYTHON%\Lib\distutils\distutils.cfg
|
|
|
-
|
|
|
- - if %PYTHON_VERSION%==3.4 set generator=MSYS Makefiles
|
|
|
- - if %PYTHON_VERSION%==3.4 set PATH=%MINGW%;%PATH%
|
|
|
- - if %PYTHON_VERSION%==3.4 echo [build] > %PYTHON%\Lib\distutils\distutils.cfg
|
|
|
- - if %PYTHON_VERSION%==3.4 echo.compiler = mingw32 >> %PYTHON%\Lib\distutils\distutils.cfg
|
|
|
-
|
|
|
build_script:
|
|
|
- CALL appveyor.bat
|
|
|
|