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

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [xin/] [setup.py] - Blame information for rev 339

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

Line No. Rev Author Line
1 338 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
            "dll_excludes": ["MSVCP90.dll"],
45
        }
46
    },
47
    windows = [
48
        {
49
            "script": "phr-gui.py",
50
            "icon_resources": [(1, "grafica/phr-gui.ico")],
51
            #"other_resources": [(24,1,manifest)]
52
        }
53
    ],
54
      data_files=[
55
          ("grafica", glob.glob('grafica/*.*')),
56
          ("ejemplos", glob.glob('ejemplos/*.*')),
57
          ("xc3sprog", glob.glob('xc3sprog/*.*')),
58
          ("redist", glob.glob('redist/*.*')),
59
    ]
60
)

powered by: WebSVN 2.1.0

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