-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
52 lines (43 loc) · 1.45 KB
/
setup.py
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
from distutils.core import setup
from py2exe import *
from glob import glob
import os
version = os.environ.get("version")
architecture = os.environ.get("arch")
company_name = "The WPKG-GP Team (http://wpkg-gp.googlecode.com)"
copyright = "Copyright 2010, 2011 The WPKG-GP team"
class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
self.version = version
self.company_name = company_name
self.copyright = copyright
WpkgPipeClient = Target(
description = "WPKG-GP Command Line Pipe Client",
name = "WPKG-GP Command Line Pipe Client",
script = "src\WpkgPipeClient.py"
)
MakeMSI = Target(
description = "Tool for generating MSI files",
name = "MakeMSI tool",
script = "src\MakeMSI.py"
)
WpkgServer = Target(
# used for the versioninfo resource
description = "WPKG-GP Windows Service",
name = "WPKG-GP Windows Service",
# what to build. For a service, the module name (not the
# filename) must be specified!
modules = ["WpkgServer"],
cmdline_style='pywin32'
)
#data_files = [("Microsoft.VC90.CRT", glob(r'redist\VC90\Microsoft.VC90.CRT-'+architecture+'\*.*'))]
setup(
version = version,
package_dir = {'': 'src'},
packages = [''],
#data_files=data_files,
service = [WpkgServer],
options = {"py2exe":{"dll_excludes":[ "mswsock.dll", "powrprof.dll", "MPR.dll" ]}},
console = [WpkgPipeClient, MakeMSI]
)