OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [minimal python2.7.6/] [wx_simple_gui_events_dist/] [setup.py] - Blame information for rev 297

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 172 maximiq
#!/usr/bin/python
2
 
3
from distutils.core import setup
4
import py2exe
5
 
6
manifest = """
7
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
8
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
9
manifestVersion="1.0">
10
<assemblyIdentity
11
    version="0.64.1.0"
12
    processorArchitecture="x86"
13
    name="Controls"
14
    type="win32"
15
/>
16
<description>Your Application</description>
17
<dependency>
18
    <dependentAssembly>
19
        <assemblyIdentity
20
            type="win32"
21
            name="Microsoft.Windows.Common-Controls"
22
            version="6.0.0.0"
23
            processorArchitecture="X86"
24
            publicKeyToken="6595b64144ccf1df"
25
            language="*"
26
        />
27
    </dependentAssembly>
28
</dependency>
29
</assembly>
30
"""
31
 
32
"""
33
installs manifest and icon into the .exe
34
but icon is still needed as we open it
35
for the window icon (not just the .exe)
36
changelog and logo are included in dist
37
"""
38
 
39
setup(
40
    options = {
41
            "py2exe":{
42
            "dll_excludes": ["MSVCP90.dll", "HID.DLL", "w9xpopen.exe"],
43
        }
44
    },
45
    windows = [
46
        {
47
            "script": "phr-gui.py",
48
         #   "icon_resources": [(1, "yourapplication.ico")],
49
         #   "other_resources": [(24,1,manifest)]
50
        }
51
    ],
52
     # data_files=["yourapplication.ico"]
53
)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.