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

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [gui/] [setup.py] - Blame information for rev 242

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

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

powered by: WebSVN 2.1.0

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