]>
Commit | Line | Data |
---|---|---|
1 | # -*- coding: iso-8859-1 -*- | |
2 | #---------------------------------------------------------------------- | |
3 | # Name: make_installer.py | |
4 | # Purpose: A script to create the wxPython windows installer | |
5 | # | |
6 | # Author: Robin Dunn | |
7 | # | |
8 | # Created: 30-April-2001 | |
9 | # RCS-ID: $Id$ | |
10 | # Copyright: (c) 2003 by Total Control Software | |
11 | # Licence: wxWindows license | |
12 | #---------------------------------------------------------------------- | |
13 | ||
14 | """ | |
15 | This script will generate a setup script for InnoSetup and then run it | |
16 | to make the installer executable. If all goes right the proper versions | |
17 | of Python and wxWindows (including hybrid/final settings) will all be | |
18 | calculated based on what wxc.pyd imports and an appropriate installer | |
19 | will be created. | |
20 | """ | |
21 | ||
22 | ||
23 | # TODO: Remove the registry entry upon uninstall. | |
24 | ||
25 | import sys, os, time | |
26 | ||
27 | KEEP_TEMPS = 0 | |
28 | ISCC = r"%s\InnoSetup2Ex\ISCC.exe %s" | |
29 | ||
30 | #---------------------------------------------------------------------- | |
31 | ||
32 | ISS_Template = r''' | |
33 | ;;------------------------------------------------------------ | |
34 | ||
35 | [Setup] | |
36 | AppName = wxPython | |
37 | AppVerName = wxPython %(VERSION)s for Python %(PYTHONVER)s | |
38 | OutputBaseFilename = wxPythonWIN32-%(VERSION)s-%(PYVER)s | |
39 |