aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
blob: 92260735a8bd71a9157701bf672842c4a48e0ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
from distutils.core import setup
import sys, os

LOCALE_DIR= '/usr/share/locale'

locales = []
if os.path.exists('po/locale'):
    for lang in os.listdir('po/locale'):
        locales.append(os.path.join(lang, 'LC_MESSAGES'))

if sys.platform == 'win32':
    import py2exe
    LOCALE_DIR = 'locale'
    manifest = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
      <security>
         <requestedPrivileges>
            <requestedExecutionLevel
               level="requireAdministrator"
               uiAccess="False"/>
         </requestedPrivileges>
      </security>
   </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>
"""


    setup(
        name = 'usbdumper',
        version = '3.6.4',
        packages = ['liveusb'],
        scripts = ['usbdumper'], 
        license = 'GNU General Public License (GPL)',
        url = 'http://git.mandriva.com/?p=projects/mandriva-seed.git',
        description = 'This tool dumps hybrid ISO on USB stick',
        long_description = 'usbdumper is a cross-platform tool for easily dump hybrid ISO on USB flash drives',
        platforms = ['Windows'], 
        maintainer = 'Aurelien Lefebvre',
        maintainer_email = 'alefebvre@mandriva.com',
        windows = [
            {
                "script" : "usbdumper",
                "other_resources": [(24,1,manifest)],
                #"icon_resources" : [(0, "data/mdv.ico")],
            }
        ],
        options={
            "py2exe" : {
                #"includes" : ["sip", "PyQt4._qt"],
                "includes" : ["sip"],
                'bundle_files': 1,
            }
        }, 
        zipfile=None,
        data_files = [
            "LICENSE.txt",
            ("tools", [
                "tools/dd.exe",
                "tools/dd.exe.manifest",
            ],)
          ] + [(os.path.join(LOCALE_DIR, locale),
                [os.path.join('po', 'locale', locale, 'liveusb-creator.mo')])
                for locale in locales]
    )
else:
    setup(
        name = 'usbdumper',
        version = '3.6.4',
        packages = ['liveusb'],
        scripts = ['usbdumper'], 
        license = 'GNU General Public License (GPL)',
        url = 'http://git.mandriva.com/?p=projects/mandriva-seed.git',
        description = 'This tool dumps hybrid ISO on USB stick',
        long_description = 'usbdumper is a cross-platform tool for easily dump hybrid ISO on USB flash drives',
        platforms = ['Linux'],
        maintainer = 'Aurelien Lefebvre',
        maintainer_email = 'alefebvre@mandriva.com',
        data_files = [("/usr/share/applications",["data/liveusb-creator.desktop"]), 
                      ('/usr/share/pixmaps',["data/fedorausb.png"]),
                      ] + [(os.path.join(LOCALE_DIR, locale),
                            [os.path.join('po', 'locale', locale, 'liveusb-creator.mo')])
                            for locale in locales]
        )