]>
Commit | Line | Data |
---|---|---|
8b9a4190 RD |
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 | ||
d7ec6564 | 14 | """ |
d7ec6564 RD |
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 | |
cb56afc4 | 18 | calculated based on what _core_.pyd imports and an appropriate installer |
d7ec6564 RD |
19 | will be created. |
20 | """ | |
21 | ||
22 | ||
1e4a197e | 23 | import sys, os, time |
d7ec6564 | 24 | |
62f51f1f RD |
25 | KEEP_TEMPS = False |
26 | # default InnoSetup installer location | |
27 | ISCC = r"%s\InnoSetup5\ISCC.exe %s" | |
28 | ||
29 | if os.environ.has_key("INNO5"): | |
30 | ISCC = os.environ["INNO5"] | |
31 | ||
d7ec6564 RD |
32 | |
33 | #---------------------------------------------------------------------- | |
34 | ||
35 | ISS_Template = r''' | |
d7ec6564 RD |
36 | |
37 | [Setup] | |
cb56afc4 RD |
38 | AppName = wxPython%(SHORTVER)s-%(CHARTYPE)s-%(PYVER)s |
39 | AppVerName = wxPython %(VERSION)s (%(CHARTYPE)s) for Python %(PYTHONVER)s | |
40 | OutputBaseFilename = wxPython%(SHORTVER)s-win32-%(CHARTYPE)s-%(VERSION)s-%(PYVER)s | |
7cae647a | 41 |