44setlocal ENABLEDELAYEDEXPANSION
55cd %APPVEYOR_BUILD_FOLDER%
66
7+ :: Python3
8+ set PYTHON3_VER = 311
9+ set PYTHON3_RELEASE = 3.11.1
10+ set PYTHON3_URL = https://www.python.org/ftp/python/%PYTHON3_RELEASE% /python-%PYTHON3_RELEASE% -amd64.exe
11+ set PYTHON3_DIR = C:\python%PYTHON3_VER% -x64
12+
13+ if not exist downloads mkdir downloads
14+
15+ :: Python 3
16+ if not exist %PYTHON3_DIR% (
17+ call :downloadfile %PYTHON3_URL% downloads\python3.exe
18+ cmd /c start /wait downloads\python3.exe /quiet TargetDir=%PYTHON3_DIR% Include_pip=0 Include_tcltk=0 Include_test=0 Include_tools=0 AssociateFiles=0 Shortcuts=0 Include_doc=0 Include_launcher=0 InstallLauncherAllUsers=0
19+ )
20+
721cd src
822
923echo " Building MSVC 64bit console Version"
@@ -22,7 +36,7 @@ if "%FEATURE%" == "HUGE" (
2236 nmake -f Make_mvc.mak CPU=AMD64 ^
2337 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^
2438 PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^
25- PYTHON3_VER=38 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python38-x64 ^
39+ PYTHON3_VER=%PYTHON3_VER% DYNAMIC_PYTHON3=yes PYTHON3=%PYTHON3_DIR% ^
2640 FEATURES=%FEATURE%
2741) ELSE (
2842 nmake -f Make_mvc.mak CPU=AMD64 ^
@@ -40,3 +54,17 @@ echo "version output MSVC console"
4054echo " version output MSVC GUI"
4155type ver_msvc.txt || exit 1
4256cd ..
57+
58+ goto :eof
59+ :: ----------------------------------------------------------------------
60+
61+ :downloadfile
62+ :: call :downloadfile <URL> <localfile>
63+ if not exist %2 (
64+ curl -f -L %1 -o %2
65+ )
66+ if ERRORLEVEL 1 (
67+ rem Retry once.
68+ curl -f -L %1 -o %2 || exit 1
69+ )
70+ @ goto :eof
0 commit comments