]> granicus.if.org Git - python/commitdiff
Use Visual Studio 2009 on the build slaves.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 1 Jan 2008 23:00:48 +0000 (23:00 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 1 Jan 2008 23:00:48 +0000 (23:00 +0000)
Tools/buildbot/build.bat
Tools/buildbot/buildmsi.bat
Tools/buildbot/clean-amd64.bat
Tools/buildbot/clean.bat
Tools/buildbot/external.bat
Tools/buildbot/kill_python.c

index f64c2192ebd209bac4ad46e4eafcd835e92ae34f..69edef20a913f83a2ccaf48067eaf3c5eccc437b 100644 (file)
@@ -1,5 +1,6 @@
 @rem Used by the buildbot "compile" step.
 cmd /c Tools\buildbot\external.bat
-call "%VS71COMNTOOLS%vsvars32.bat"
+call "%VS90COMNTOOLS%vsvars32.bat"
 cmd /q/c Tools\buildbot\kill_python.bat
-devenv.com /useenv /build Debug PC\VS7.1\pcbuild.sln
+vcbuild /useenv PCbuild\pcbuild.sln "Debug|Win32"
+
index c30faee8ba4d783221a816d3aecf694f41da135e..c0537b4c0686ac02a2d77643560dd11a729a5bb1 100644 (file)
@@ -2,14 +2,14 @@
 
 cmd /c Tools\buildbot\external.bat
 @rem build release versions of things
-call "%VS71COMNTOOLS%vsvars32.bat"
+call "%VS90COMNTOOLS%vsvars32.bat"
 if not exist ..\db-4.4.20\build_win32\release\libdb44s.lib (
    devenv ..\db-4.4.20\build_win32\Berkeley_DB.sln /build Release /project db_static
 )
 
 @rem build Python
 cmd /q/c Tools\buildbot\kill_python.bat
-devenv.com /useenv /build Release PC\VS7.1\pcbuild.sln
+devenv.com /useenv /build Release PCbuild\pcbuild.sln
 
 @rem build the documentation
 bash.exe -c 'cd Doc;make PYTHON=python2.5 update htmlhelp'
index e828c886eadc04eb74a6a915d9fdd75526897e35..585476a4856dae6016fa22355c5975b1bf5061c7 100644 (file)
@@ -2,5 +2,5 @@
 call "%VS71COMNTOOLS%vsvars32.bat"
 cd PC\VS7.1
 @echo Deleting .pyc/.pyo files ...
-python.exe rmpyc.py
+del /s Lib\*.pyc Lib\*.pyo
 devenv.com /clean ReleaseAMD64 pcbuild.sln
index 5e7e7908941c0e0d02baa4616c2ea3c9b8145daa..15d7365068f1dd84e05312927a98e9cd3a0dbffb 100644 (file)
@@ -1,7 +1,7 @@
 @rem Used by the buildbot "clean" step.
-call "%VS71COMNTOOLS%vsvars32.bat"
-cd PC\VS7.1
+call "%VS90COMNTOOLS%vsvars32.bat"
+cd PCbuild
 @echo Deleting .pyc/.pyo files ...
-python_d.exe rmpyc.py
-devenv.com /clean Release pcbuild.sln
-devenv.com /clean Debug pcbuild.sln
+del /s Lib\*.pyc Lib\*.pyo
+vcbuild /clean pcbuild.sln "Release|Win32"
+vcbuild /clean pcbuild.sln "Debug|Win32"
index 463285fa4989bac9b3dcad662efa2d2abe22d8c6..9797aa25f96a14b08a7c9395cd7b85fbb8a6ef64 100644 (file)
@@ -2,7 +2,7 @@
 \r
 @rem Assume we start inside the Python source directory\r
 cd ..\r
-call "%VS71COMNTOOLS%vsvars32.bat"\r
+call "%VS90COMNTOOLS%vsvars32.bat"\r
 \r
 @rem bzip\r
 if not exist bzip2-1.0.3 svn export http://svn.python.org/projects/external/bzip2-1.0.3\r
@@ -10,24 +10,29 @@ if not exist bzip2-1.0.3 svn export http://svn.python.org/projects/external/bzip
 @rem Sleepycat db\r
 if not exist db-4.4.20 svn export http://svn.python.org/projects/external/db-4.4.20\r
 if not exist db-4.4.20\build_win32\debug\libdb44sd.lib (\r
-   devenv db-4.4.20\build_win32\Berkeley_DB.sln /build Debug /project db_static\r
+   vcbuild db-4.4.20\build_win32\Berkeley_DB.sln /build Debug /project db_static\r
 )\r
 \r
 @rem OpenSSL\r
-if not exist openssl-0.9.8a svn export http://svn.python.org/projects/external/openssl-0.9.8a\r
+if not exist openssl-0.9.8g (\r
+  if exist openssl-0.9.8a rd /s/q openssl-0.9.8a\r
+  svn export http://svn.python.org/projects/external/openssl-0.9.8g\r
+)\r
 \r
 @rem tcltk\r
-if not exist tcl8.4.12 (\r
+if not exist tcl8.4.16 (\r
    if exist tcltk rd /s/q tcltk\r
-   svn export http://svn.python.org/projects/external/tcl8.4.12\r
-   svn export http://svn.python.org/projects/external/tk8.4.12\r
-   cd tcl8.4.12\win\r
-   nmake -f makefile.vc\r
-   nmake -f makefile.vc INSTALLDIR=..\..\tcltk install\r
+   if exist tcl8.4.12 rd /s/q tcl8.4.12\r
+   if exist tk8.4.12 rd /s/q tk8.4.12\r
+   svn export http://svn.python.org/projects/external/tcl8.4.16\r
+   svn export http://svn.python.org/projects/external/tk8.4.16\r
+   cd tcl8.4.16\win\r
+   nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500\r
+   nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 INSTALLDIR=..\..\tcltk install\r
    cd ..\..\r
-   cd tk8.4.12\win\r
-   nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12\r
-   nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 INSTALLDIR=..\..\tcltk install\r
+   cd tk8.4.16\win\r
+   nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 TCLDIR=..\..\tcl8.4.16\r
+   nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 TCLDIR=..\..\tcl8.4.16 INSTALLDIR=..\..\tcltk install\r
    cd ..\..\r
 )\r
 \r
index fd707da6d588e23579c2460ad49b41b966528dbc..5ba450f302d745d7e4fe9c6e2b0ef3cd4e859e42 100644 (file)
@@ -1,4 +1,4 @@
-/* This program looks for processes which have build\PC\VS7.1\python.exe
+/* This program looks for processes which have build\PCbuild\python.exe
    in their path and terminates them. */
 #include <windows.h>
 #include <psapi.h>
@@ -46,14 +46,14 @@ int main()
                /* Check if we are running a buildbot version of Python.
 
                   On Windows, this will always be a debug build from the
-                  PC\VS7.1 directory.  build\\PC\\VS7.1\\python_d.exe
+                  PCbuild directory.  build\\PCbuild\\python_d.exe
                   
                   On Cygwin, the pathname is similar to other Unixes.
                   Use \\build\\python.exe to ensure we don't match
-                  PC\\VS7.1\\python.exe which could be a normal instance
+                  PCbuild\\python.exe which could be a normal instance
                   of Python running on vanilla Windows.
                */
-               if ((strstr(path, "build\\pc\\vs7.1\\python_d.exe") != NULL) ||
+               if ((strstr(path, "pcbuild\\python_d.exe") != NULL) ||
                    (strstr(path, "\\build\\python.exe") != NULL)) {
                        printf("Terminating %s (pid %d)\n", path, pids[i]);
                        if (!TerminateProcess(hProcess, 1)) {