]> granicus.if.org Git - python/commitdiff
Lets have another try at getting the Windows buildbots in a consistent state before...
authorTrent Nelson <trent.nelson@snakebite.org>
Wed, 19 Mar 2008 09:23:08 +0000 (09:23 +0000)
committerTrent Nelson <trent.nelson@snakebite.org>
Wed, 19 Mar 2008 09:23:08 +0000 (09:23 +0000)
Tools/buildbot/external-amd64.bat
Tools/buildbot/external-common.bat [new file with mode: 0644]
Tools/buildbot/external.bat

index 45fb11c7c154b2048684e76920b8ec7f1845da30..8fd452a011aa8e40653187c769b42572fbe4ea2a 100644 (file)
@@ -1,41 +1,17 @@
 @rem Fetches (and builds if necessary) external dependencies
 
 @rem Assume we start inside the Python source directory
-cd ..
-call "%VS90COMNTOOLS%vsvars32.bat"
+call "Tools\buildbot\external-common.bat"
+call "%VS90COMNTOOLS%\vsvars32.bat"
 
-@rem bzip
-if not exist bzip2-1.0.3 svn export http://svn.python.org/projects/external/bzip2-1.0.3
-
-@rem Sleepycat db
-@rem Remove VS 2003 builds
-if exist db-4.4.20 if not exist db-4.4.20\build_win32\this_is_for_vs9 (
-   echo Removing old build
-   rd /s/q db-4.4.20
-)
-if not exist db-4.4.20 svn export http://svn.python.org/projects/external/db-4.4.20-vs9 db-4.4.20
-
-@rem OpenSSL
-if not exist openssl-0.9.8g (
-  if exist openssl-0.9.8a rd /s/q openssl-0.9.8a
-  svn export http://svn.python.org/projects/external/openssl-0.9.8g
+if not exist tcltk64\bin\tcl84g.dll (
+    cd tcl-8.4.18.2\win
+    nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 INSTALLDIR=..\..\tcltk64 clean all install
+    cd ..\..
 )
 
-@rem tcltk
-if not exist tcl-8.4.18.1 (
-   if exist tcltk rd /s/q tcltk
-   if exist tcl8.4.12 rd /s/q tcl8.4.12
-   if exist tk8.4.12 rd /s/q tk8.4.12
-   if exist tcl8.4.16 rd /s/q tcl8.4.16
-   if exist tk8.4.16 rd /s/q tk8.4.16
-   svn export http://svn.python.org/projects/external/tcl-8.4.18.1
-   svn export http://svn.python.org/projects/external/tk-8.4.18.1
+if not exist tcltk64\bin\tk84g.dll (
+    cd tk-8.4.18.1\win    
+    nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 INSTALLDIR=..\..\tcltk64 TCLDIR=..\..\tcl-8.4.18.2 clean all install
+    cd ..\..
 )
-cd tcl-8.4.18.1\win
-nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 MACHINE=AMD64 INSTALLDIR=../../tcltk64 clean all install
-cd ..\..
-cd tk-8.4.18.1\win
-nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 MACHINE=AMD64 INSTALLDIR=../../tcltk64 TCLDIR=../../tcl-8.4.18.1 clean all install
-
-@rem sqlite
-if not exist sqlite-source-3.3.4 svn export http://svn.python.org/projects/external/sqlite-source-3.3.4
diff --git a/Tools/buildbot/external-common.bat b/Tools/buildbot/external-common.bat
new file mode 100644 (file)
index 0000000..cb4b284
--- /dev/null
@@ -0,0 +1,31 @@
+@rem Common file shared between external.bat and external-amd64.bat.  Responsible for\r
+@rem fetching external components into the root\.. buildbot directories.\r
+\r
+cd ..\r
+@rem XXX: Force the buildbots to start from a fresh environment.  Will be removed.\r
+if exist bzip2-1.0.3 rd /s/q bzip2-1.0.3\r
+if exist tcltk rd /s/q tcltk\r
+if exist tcltk64 rd /s/q tcltk64\r
+if exist tcl8.4.12 rd /s/q tcl8.4.12\r
+if exist tcl8.4.16 rd /s/q tcl8.4.16\r
+if exist tcl-8.4.18.1 rd /s/q tcl-8.4.18.1\r
+if exist tk8.4.12 rd /s/q tk8.4.12\r
+if exist tk8.4.16 rd /s/q tk8.4.16\r
+if exist tk-8.4.18.1 rd /s/q tk-8.4.18.1\r
+if exist db-4.4.20 rd /s/q db-4.4.20\r
+if exist openssl-0.9.8g rd /s/q openssl-0.9.8g\r
+if exist sqlite-source-3.3.4 rd /s/q sqlite-source-3.3.4    \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
+\r
+@rem Sleepycat db\r
+if not exist db-4.4.20 svn export http://svn.python.org/projects/external/db-4.4.20-vs9 db-4.4.20\r
+\r
+@rem OpenSSL\r
+if not exist openssl-0.9.8g svn export http://svn.python.org/projects/external/openssl-0.9.8g\r
+\r
+@rem tcl/tk\r
+if not exist tcl-8.4.18.2 svn export http://svn.python.org/projects/external/tcl-8.4.18.2\r
+if not exist tk-8.4.18.1 svn export http://svn.python.org/projects/external/tk-8.4.18.1\r
+\r
index ae18ead3858edd21809fd1a0bbe0f888f5dee367..411360560011a43d39d18223127f4e1fec77d6a3 100644 (file)
@@ -1,46 +1,17 @@
 @rem Fetches (and builds if necessary) external dependencies\r
 \r
 @rem Assume we start inside the Python source directory\r
-cd ..\r
-call "%VS90COMNTOOLS%vsvars32.bat"\r
+call "Tools\buildbot\external-common.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
-\r
-@rem Sleepycat db\r
-@rem Remove VS 2003 builds\r
-if exist db-4.4.20 if not exist db-4.4.20\build_win32\this_is_for_vs9 (\r
-   echo Removing old build\r
-   rd /s/q db-4.4.20\r
-)\r
-if not exist db-4.4.20 svn export http://svn.python.org/projects/external/db-4.4.20-vs9 db-4.4.20\r
-if not exist db-4.4.20\build_win32\debug\libdb44sd.lib (\r
-   vcbuild db-4.4.20\build_win32\db_static.vcproj "Debug|Win32"\r
+if not exist tcltk\bin\tcl84g.dll (\r
+    cd tcl-8.4.18.2\win\r
+    nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 INSTALLDIR=..\..\tcltk clean all install\r
+    cd ..\..\r
 )\r
 \r
-@rem OpenSSL\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
+if not exist tcltk\bin\tk84g.dll (\r
+    cd tk-8.4.18.1\win    \r
+    nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 INSTALLDIR=..\..\tcltk TCLDIR=..\..\tcl-8.4.18.2 clean all install\r
+    cd ..\..\r
 )\r
-\r
-@rem tcltk\r
-if not exist tcl8.4.16 (\r
-   if exist tcltk rd /s/q tcltk\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.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
-@rem sqlite\r
-if not exist sqlite-source-3.3.4 svn export http://svn.python.org/projects/external/sqlite-source-3.3.4\r
-if not exist build\PCbuild\sqlite3.dll copy sqlite-source-3.3.4\sqlite3.dll build\PCbuild\r