• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1REM Move scripts to root
2set REPO_DIR_STAGE=%cd%\github\protobuf-stage
3xcopy /S  github\protobuf "%REPO_DIR_STAGE%\"
4cd github\protobuf
5copy kokoro\release\python\windows\build_single_artifact.bat build_single_artifact.bat
6
7REM Set environment variables
8set PACKAGE_NAME=protobuf
9set REPO_DIR=protobuf
10set BUILD_DLL=OFF
11set UNICODE=ON
12set PB_TEST_DEP="six==1.9"
13set OTHER_TEST_DEP="setuptools==38.5.1"
14set OLD_PATH=C:\Program Files (x86)\MSBuild\14.0\bin\;%PATH%
15
16REM Fetch multibuild
17git clone https://github.com/matthew-brett/multibuild.git
18
19REM Install zlib
20mkdir zlib
21curl -L -o zlib.zip http://www.winimage.com/zLibDll/zlib123dll.zip
22curl -L -o zlib-src.zip http://www.winimage.com/zLibDll/zlib123.zip
237z x zlib.zip -ozlib
247z x zlib-src.zip -ozlib\include
25SET ZLIB_ROOT=%cd%\zlib
26del /Q zlib.zip
27del /Q zlib-src.zip
28
29REM Create directory for artifacts
30SET ARTIFACT_DIR=%cd%\artifacts
31mkdir %ARTIFACT_DIR%
32
33REM Build wheel
34
35SET PYTHON=C:\python35_32bit
36SET PYTHON_VERSION=3.5
37SET PYTHON_ARCH=32
38CALL build_single_artifact.bat || goto :error
39
40SET PYTHON=C:\python35
41SET PYTHON_VERSION=3.5
42SET PYTHON_ARCH=64
43CALL build_single_artifact.bat || goto :error
44
45SET PYTHON=C:\python36_32bit
46SET PYTHON_VERSION=3.6
47SET PYTHON_ARCH=32
48CALL build_single_artifact.bat || goto :error
49
50SET PYTHON=C:\python36
51SET PYTHON_VERSION=3.6
52SET PYTHON_ARCH=64
53CALL build_single_artifact.bat || goto :error
54
55SET PYTHON=C:\python37_32bit
56SET PYTHON_VERSION=3.7
57SET PYTHON_ARCH=32
58CALL build_single_artifact.bat || goto :error
59
60SET PYTHON=C:\python37
61SET PYTHON_VERSION=3.7
62SET PYTHON_ARCH=64
63CALL build_single_artifact.bat || goto :error
64
65SET PYTHON=C:\python38_32bit
66SET PYTHON_VERSION=3.8
67SET PYTHON_ARCH=32
68CALL build_single_artifact.bat || goto :error
69
70SET PYTHON=C:\python38
71SET PYTHON_VERSION=3.8
72SET PYTHON_ARCH=64
73CALL build_single_artifact.bat || goto :error
74
75goto :EOF
76
77:error
78exit /b %errorlevel%
79