#!/usr/bin/env python
# Written by Jeremy Arendt
# see G3.LICENSE.txt for license information
from distutils.core import setup
import py2exe
manifest_template = '''
<?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="%(prog)s"
type="win32"
/>
<description>%(prog)s Program</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
'''
RT_MANIFEST = 24
setup(
name='BitTorrent',
options = {"py2exe": {
"compressed": 0,
"optimize": 2,
"excludes": "",
"packages" : ["encodings","cjkcodecs"]
}},
windows = [
{
"other_resources": [(RT_MANIFEST, 1, manifest_template % dict(prog="Rufus"))],
"script": "rufus.py",
"icon_resources": [(1, "images/rufus.ico")]
}
],
data_files=[("locale\\h4\\LC_MESSAGES",["locale\\h4\\LC_MESSAGES\\rufus.mo"]),
("locale\\en\\LC_MESSAGES",["locale\\en\\LC_MESSAGES\\rufus.mo"])],
zipfile = "rufus.dat"
)
|