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 OTHER_TEST_DEP="setuptools==38.5.1" 13set OLD_PATH=C:\Program Files (x86)\MSBuild\14.0\bin\;%PATH% 14 15REM Fetch multibuild 16git clone https://github.com/matthew-brett/multibuild.git 17REM Pin multibuild scripts at a known commit to avoid potentially unwanted future changes from 18REM silently creeping in (see https://github.com/protocolbuffers/protobuf/issues/9180). 19REM IMPORTANT: always pin multibuild at the same commit for: 20REM - linux/build_artifacts.sh 21REM - linux/build_artifacts.sh 22REM - windows/build_artifacts.bat 23cd multibuild 24git checkout b89bb903e94308be79abefa4f436bf123ebb1313 25cd .. 26 27REM Install zlib 28mkdir zlib 29curl -L -o zlib.zip http://www.winimage.com/zLibDll/zlib123dll.zip 30curl -L -o zlib-src.zip http://www.winimage.com/zLibDll/zlib123.zip 317z x zlib.zip -ozlib 327z x zlib-src.zip -ozlib\include 33SET ZLIB_ROOT=%cd%\zlib 34del /Q zlib.zip 35del /Q zlib-src.zip 36 37REM Create directory for artifacts 38SET ARTIFACT_DIR=%cd%\artifacts 39mkdir %ARTIFACT_DIR% 40 41REM Build wheel 42 43SET PYTHON=C:\python37_32bit 44SET PYTHON_VERSION=3.7 45SET PYTHON_ARCH=32 46CALL build_single_artifact.bat || goto :error 47 48SET PYTHON=C:\python37 49SET PYTHON_VERSION=3.7 50SET PYTHON_ARCH=64 51CALL build_single_artifact.bat || goto :error 52 53powershell -File kokoro/release/python/windows/install_python_interpreters.ps1 54 55SET PYTHON=C:\python38_32bit 56SET PYTHON_VERSION=3.8 57SET PYTHON_ARCH=32 58CALL build_single_artifact.bat || goto :error 59 60SET PYTHON=C:\python38 61SET PYTHON_VERSION=3.8 62SET PYTHON_ARCH=64 63CALL build_single_artifact.bat || goto :error 64 65SET PYTHON=C:\python39_32bit 66SET PYTHON_VERSION=3.9 67SET PYTHON_ARCH=32 68CALL build_single_artifact.bat || goto :error 69 70SET PYTHON=C:\python39 71SET PYTHON_VERSION=3.9 72SET PYTHON_ARCH=64 73CALL build_single_artifact.bat || goto :error 74 75SET PYTHON=C:\python310_32bit 76SET PYTHON_VERSION=3.10 77SET PYTHON_ARCH=32 78CALL build_single_artifact.bat || goto :error 79 80SET PYTHON=C:\python310 81SET PYTHON_VERSION=3.10 82SET PYTHON_ARCH=64 83CALL build_single_artifact.bat || goto :error 84 85goto :EOF 86 87:error 88exit /b %errorlevel% 89