Import Upstream version 2.7.18

This commit is contained in:
geos_one
2025-08-15 16:28:06 +02:00
commit ba1f69ab39
4521 changed files with 1778434 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
@rem Formerly used by the buildbot "compile" step.
@echo This script is no longer used and may be removed in the future.
@echo To get the same effect as this script, use
@echo PCbuild\build.bat -d -e -k -p x64
call "%~dp0build.bat" -p x64 %*

18
Tools/buildbot/build.bat Normal file
View File

@@ -0,0 +1,18 @@
@rem Used by the buildbot "compile" step.
@setlocal
@rem Clean up
call "%~dp0clean.bat" %*
@rem If you need the buildbots to start fresh (such as when upgrading to
@rem a new version of an external library, especially Tcl/Tk):
@rem 1) uncomment the following line:
@rem call "%~dp0..\..\PCbuild\get_externals.bat" --clean-only
@rem 2) commit and push
@rem 3) wait for all Windows bots to start a build with that changeset
@rem 4) re-comment, commit and push again
@rem Do the build
call "%~dp0..\..\PCbuild\build.bat" -v -e -d -k %*

View File

@@ -0,0 +1,20 @@
@rem Used by the buildbot "buildmsi" step.
cmd /c Tools\buildbot\external.bat
@rem build release versions of things
call "%VS90COMNTOOLS%vsvars32.bat"
@rem build Python
vcbuild /useenv PCbuild\pcbuild.sln "Release|Win32"
@rem build the documentation
bash.exe -c 'cd Doc;make PYTHON=python2.5 update htmlhelp'
"%ProgramFiles%\HTML Help Workshop\hhc.exe" Doc\build\htmlhelp\python26a3.hhp
@rem build the MSI file
cd PC
nmake /f icons.mak
cd ..\Tools\msi
del *.msi
nmake /f msisupport.mak
%HOST_PYTHON% msi.py

View File

@@ -0,0 +1,5 @@
@rem Formerly used by the buildbot "clean" step.
@echo This script is no longer used and may be removed in the future.
@echo To get the same effect as this script, use `clean.bat` from this
@echo directory and pass `-p x64` as two arguments.
call "%~dp0clean.bat" -p x64 %*

16
Tools/buildbot/clean.bat Normal file
View File

@@ -0,0 +1,16 @@
@echo off
rem Used by the buildbot "clean" step.
setlocal
set root=%~dp0..\..
set pcbuild=%root%\PCbuild
echo Deleting build
call "%pcbuild%\build.bat" -t Clean -k %*
call "%pcbuild%\build.bat" -t Clean -k -d %*
echo Deleting .pyc/.pyo files ...
del /s "%root%\Lib\*.pyc" "%root%\Lib\*.pyo"
echo Deleting test leftovers ...
rmdir /s /q "%root%\build"

View File

@@ -0,0 +1,3 @@
@echo This script is no longer used and may be removed in the future.
@echo Please use PCbuild\get_externals.bat instead.
@"%~dp0..\..\PCbuild\get_externals.bat" %*

View File

@@ -0,0 +1,3 @@
@echo This script is no longer used and may be removed in the future.
@echo Please use PCbuild\get_externals.bat instead.
@"%~dp0..\..\PCbuild\get_externals.bat" %*

View File

@@ -0,0 +1,6 @@
@rem Formerly used by the buildbot "test" step.
@echo This script is no longer used and may be removed in the future.
@echo To get the same effect as this script, use
@echo PCbuild\rt.bat -q -d -x64 -uall -rwW
@echo or use `test.bat` in this directory and pass `-x64` as an argument.
call "%~dp0test.bat" -x64 %*

19
Tools/buildbot/test.bat Normal file
View File

@@ -0,0 +1,19 @@
@echo off
rem Used by the buildbot "test" step.
setlocal
set here=%~dp0
set rt_opts=-q -d
set regrtest_args=
:CheckOpts
if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
if "%1"=="-d" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
if "%1"=="-O" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
if "%1"=="-q" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
if "%1"=="+d" (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts
if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts
echo on
call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest %regrtest_args%