mirror of
https://github.com/python/cpython.git
synced 2024-12-01 11:15:56 +01:00
494374922c
Rather than using Burn "Persisted" variables we now add registry keys for each added feature. These can be detected by the installer regardless of which version installed them, and we use this for Modify and Upgrade. In particular, Upgrades can't access the Persisted variables, but can find well-known registry keys. There are also some changes to the bootstrap app to properly handle upgrades. Finally, a few minor improvements to the Windows build to keep things tidier.
57 lines
1.4 KiB
Batchfile
57 lines
1.4 KiB
Batchfile
@echo off
|
|
setlocal
|
|
set D=%~dp0
|
|
set PCBUILD=%D%..\..\PCBuild\
|
|
|
|
set BUILDX86=
|
|
set BUILDX64=
|
|
set BUILDDOC=
|
|
|
|
:CheckOpts
|
|
if "%~1" EQU "-h" goto Help
|
|
if "%~1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
|
|
if "%~1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
|
|
if "%~1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts
|
|
|
|
if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)
|
|
|
|
call "%PCBUILD%env.bat" x86
|
|
|
|
if defined BUILDX86 (
|
|
call "%PCBUILD%build.bat" -d
|
|
if errorlevel 1 goto :eof
|
|
call "%PCBUILD%build.bat"
|
|
if errorlevel 1 goto :eof
|
|
)
|
|
if defined BUILDX64 (
|
|
call "%PCBUILD%build.bat" -p x64 -d
|
|
if errorlevel 1 goto :eof
|
|
call "%PCBUILD%build.bat" -p x64
|
|
if errorlevel 1 goto :eof
|
|
)
|
|
|
|
if defined BUILDDOC (
|
|
call "%PCBUILD%..\Doc\make.bat" htmlhelp
|
|
if errorlevel 1 goto :eof
|
|
)
|
|
|
|
if defined BUILDX86 (
|
|
"%PCBUILD%win32\python.exe" "%D%get_wix.py"
|
|
msbuild "%D%bundle\snapshot.wixproj"
|
|
if errorlevel 1 goto :eof
|
|
)
|
|
if defined BUILDX64 (
|
|
"%PCBUILD%amd64\python.exe" "%D%get_wix.py"
|
|
msbuild "%D%bundle\snapshot.wixproj" /p:Platform=x64
|
|
if errorlevel 1 goto :eof
|
|
)
|
|
|
|
exit /B 0
|
|
|
|
:Help
|
|
echo build.bat [-x86] [-x64] [--doc] [-h]
|
|
echo.
|
|
echo -x86 Build x86 installers
|
|
echo -x64 Build x64 installers
|
|
echo --doc Build CHM documentation
|