Newbie 1st program

simo simoninusa2001 at yahoo.co.uk
Tue Aug 17 18:24:35 CEST 2004


luismg at gmx.net (Neuruss) wrote:

> Just a question: How did you make the installer package?

It's the old favourite py2exe plus InnoSetup.

Couple of hints:

1. make the image a GIF instead of BMP, it's better for portability
and size

2. is it platform-specific, or have you just not been able to test on
UNIX? you don't need the .pyw

3. to put the .ico into the .exe and get the WinXP look'n'feel, you
can use this as your setup.py for py2exe:


from distutils.core import setup
import py2exe

manifest = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
    version="0.64.1.0"
    processorArchitecture="x86"
    name="Controls"
    type="win32"
/>
<description>GobbleWin</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="X86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>
"""

setup(
    windows = [
        {
            "script": "Gobblewx.py",
            "icon_resources": [(1, "Gobble.ico")],
            "other_resources": [(24,1,manifest)]
        }
    ],
)



More information about the Python-list mailing list