[go: up one dir, main page]

Menu

[r23]: / trunk / setup.py  Maximize  Restore  History

Download this file

77 lines (67 with data), 2.9 kB

 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
import cx_Freeze
import sys
class build_exe(cx_Freeze.build_exe):
user_options = cx_Freeze.build_exe.user_options + [
('cx-logging=', None, 'location of cx_Logging sources'),
('cx-oracle=', None, 'location of cx_Oracle sources'),
('cx-pygenlib=', None, 'location of cx_PyGenLib sources'),
('cx-pyoraclelib=', None, 'location of cx_PyOracleLib sources')
]
def initialize_options(self):
cx_Freeze.build_exe.initialize_options(self)
self.cx_logging = None
self.cx_oracle = None
self.cx_pygenlib = None
self.cx_pyoraclelib = None
def finalize_options(self):
cx_Freeze.build_exe.finalize_options(self)
self.set_source_location("cx_Logging", "trunk")
self.set_source_location("cx_Oracle", "trunk")
self.set_source_location("cx_PyGenLib", "trunk")
self.set_source_location("cx_PyOracleLib", "trunk")
def run(self):
self.build_extension("cx_Logging")
self.build_extension("cx_Oracle")
self.add_to_path("cx_PyGenLib")
self.add_to_path("cx_PyOracleLib")
cx_Freeze.build_exe.run(self)
executables = [
cx_Freeze.Executable("CompileSource.py"),
cx_Freeze.Executable("CopyData.py"),
cx_Freeze.Executable("DbDebugger.py"),
cx_Freeze.Executable("DescribeObject.py"),
cx_Freeze.Executable("DescribeSchema.py"),
cx_Freeze.Executable("DumpCSV.py"),
cx_Freeze.Executable("DumpData.py"),
cx_Freeze.Executable("ExportColumn.py"),
cx_Freeze.Executable("ExportData.py"),
cx_Freeze.Executable("ExportObjects.py"),
cx_Freeze.Executable("ExportXML.py"),
cx_Freeze.Executable("GeneratePatch.py"),
cx_Freeze.Executable("GenerateView.py"),
cx_Freeze.Executable("ImportColumn.py"),
cx_Freeze.Executable("ImportData.py"),
cx_Freeze.Executable("ImportXML.py"),
cx_Freeze.Executable("RebuildTable.py"),
cx_Freeze.Executable("RecompileSource.py"),
]
buildOptions = dict(
compressed = True,
optimize = 2,
replace_paths = [("*", "")])
options = dict(build_exe = buildOptions)
if sys.platform == "win32":
options["bdist_msi"] = dict(
upgrade_code = "{A77F0AB1-3E2A-4242-B6DD-700CF582345C}")
cx_Freeze.setup(
name = "cx_OracleTools",
version = "7.5b2",
description = "Tools for managing Oracle data and source code.",
long_description = "Tools for managing Oracle data and source code.",
license = "See LICENSE.txt",
author = "Anthony Tuininga",
author_email = "anthony.tuininga@gmail.com",
url = "http://cx-oracletools.sourceforge.net",
cmdclass = dict(build_exe = build_exe),
executables = executables,
options = options)