[Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)
Thomas Heller
theller at ctypes.org
Fri Jun 8 15:45:47 CEST 2007
Martin v. Löwis schrieb:
>> Should I try to setup another buildbot client for win32/AMD64?
>
> We don't have a Win64 buildbot yet. Depending on whether you plan
> to use PCbuild or PCbuild8, this might be a challenge to get working
> (I think it's a challenge either way, but different).
> If it could actually work, it might be useful.
For release25-maint, probably PCBuild should be used since that is used to create the installer.
For trunk/Python 2.6 I don't know what you will use for the release version.
Where do you think is the challange to get it working? For the buildbot client itself
I would use the same stuff as in the WinXP buildbot (32-bit python2.4, twisted, buildbot,
pywin32).
For the build scripts in Tools\buildbot I made some small changes to the batch files (appended).
They look for a PROCESSOR_ARCHITECTURE env var, and if this is equal to AMD64 the build target
and one or two small other things are changed from the default. So these scripts currently build
the PCBuild process.
I can run Tools\buildbot\build.bat, then Tools\buildbot\test.bat, and Tools\buildbot\clean.bat
successfully. Of course this does not mean that *everything* is built correctly - currently
_sqlite3, bz2, _tkinter, and _ssl are not build because of several reasons.
If you want me to go online with the buildbot please send me a HOST:PORT and PASSWORD.
Thomas
Index: Tools/buildbot/build.bat
===================================================================
--- Tools/buildbot/build.bat (revision 55792)
+++ Tools/buildbot/build.bat (working copy)
@@ -2,4 +2,6 @@
cmd /c Tools\buildbot\external.bat
call "%VS71COMNTOOLS%vsvars32.bat"
cmd /q/c Tools\buildbot\kill_python.bat
-devenv.com /useenv /build Debug PCbuild\pcbuild.sln
+set TARGET=Debug
+if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set _TARGET=ReleaseAMD64
+devenv.com /useenv /build %_TARGET% PCbuild\pcbuild.sln
Index: Tools/buildbot/test.bat
===================================================================
--- Tools/buildbot/test.bat (revision 55792)
+++ Tools/buildbot/test.bat (working copy)
@@ -1,3 +1,5 @@
@rem Used by the buildbot "test" step.
cd PCbuild
-call rt.bat -d -q -uall -rw
+set _DEBUG=-d
+if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set _DEBUG=
+call rt.bat %_DEBUG% -q -uall -rw
Index: Tools/buildbot/clean.bat
===================================================================
--- Tools/buildbot/clean.bat (revision 55792)
+++ Tools/buildbot/clean.bat (working copy)
@@ -2,5 +2,9 @@
call "%VS71COMNTOOLS%vsvars32.bat"
cd PCbuild
@echo Deleting .pyc/.pyo files ...
-python_d.exe rmpyc.py
-devenv.com /clean Debug pcbuild.sln
+set _PYTHON=python_d.exe
+if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set _PYTHON=python.exe
+%_PYTHON% rmpyc.py
+set TARGET=Debug
+if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set TARGET=ReleaseAMD64
+devenv.com /clean %TARGET% pcbuild.sln
More information about the Python-Dev
mailing list