summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-09-13 18:26:13 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-09-13 18:26:13 (GMT)
commit9a85f040dd0eec001083e7e38cfa3e7b9f1bf3b0 (patch)
tree883d0c1640e69b14a2e0c0c4378404fe4e080b7a /Tools
parentfed6bb7d7061f940c4fe4ed43526ea5bbf968de2 (diff)
downloadcpython-9a85f040dd0eec001083e7e38cfa3e7b9f1bf3b0.zip
cpython-9a85f040dd0eec001083e7e38cfa3e7b9f1bf3b0.tar.gz
cpython-9a85f040dd0eec001083e7e38cfa3e7b9f1bf3b0.tar.bz2
Add 2.5 MSI builder.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/buildbot/buildmsi.bat23
-rw-r--r--Tools/buildbot/getchm.py6
2 files changed, 29 insertions, 0 deletions
diff --git a/Tools/buildbot/buildmsi.bat b/Tools/buildbot/buildmsi.bat
new file mode 100644
index 0000000..367a2a4
--- /dev/null
+++ b/Tools/buildbot/buildmsi.bat
@@ -0,0 +1,23 @@
+@rem Used by the buildbot "buildmsi" step.
+
+cmd /c Tools\buildbot\external.bat
+@rem build release versions of things
+call "%VS71COMNTOOLS%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 PCbuild\pcbuild.sln
+
+@rem fetch the documentation
+python Tools/buildbot/getchm.py
+
+@rem buold the MSI file
+cd PC
+nmake /f icons.mak
+cd ..\Tools\msi
+del *.msi
+nmake /f msisupport.mak
+%HOST_PYTHON% msi.py
diff --git a/Tools/buildbot/getchm.py b/Tools/buildbot/getchm.py
new file mode 100644
index 0000000..b09c5b2
--- /dev/null
+++ b/Tools/buildbot/getchm.py
@@ -0,0 +1,6 @@
+# We cannot build the documentation on Windows, so download an old
+# one instead.
+import urllib, os
+if not os.path.exists("Doc/python25.chm"):
+ urllib.urlretrieve("http://www.python.org/ftp/python/2.5.1/Python25.chm",
+ "Doc/python25.chm")