1 |
# Copyright (c) 2001, 2002 by Intevation GmbH |
# Copyright (c) 2001, 2002, 2003 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
80 |
proj4_lib = "proj_i" |
proj4_lib = "proj_i" |
81 |
|
|
82 |
# Define include and lib directories for wxWindows and |
# Define include and lib directories for wxWindows and |
83 |
wx_prefix = r"D:\wx230" |
wx_prefix = r"D:\wx240" |
84 |
wx_inc = os.path.join(wx_prefix, "include") |
wx_inc = [os.path.join(wx_prefix, 'lib', 'mswdllh'), |
85 |
wx_lib = os.path.join(wx_prefix, "lib") |
os.path.join(wx_prefix, "include")] |
86 |
|
wx_lib = [os.path.join(wx_prefix, "lib")] |
87 |
|
|
88 |
|
|
89 |
# |
# |
90 |
# Unless you use a wxPython version other than 2.3.1, you probably |
# Unless you use a wxPython version other than 2.4.0, you probably |
91 |
# shouldn't have to modify anything below here |
# shouldn't have to modify anything below here |
92 |
################################################################## |
################################################################## |
93 |
|
|
129 |
('WXP_USE_THREAD', '1'), |
('WXP_USE_THREAD', '1'), |
130 |
] |
] |
131 |
|
|
132 |
wx_incdirs = [wx_inc] |
wx_incdirs = wx_inc |
133 |
wx_libdirs = [wx_lib] |
wx_libdirs = wx_lib |
134 |
wx_libs = ["wx23_1h"] |
wx_libs = ["wxmsw24h"] |
135 |
|
|
136 |
wx_libs = wx_libs + ['kernel32', 'user32', 'gdi32', 'comdlg32', |
wx_libs = wx_libs + ['kernel32', 'user32', 'gdi32', 'comdlg32', |
137 |
'winspool', 'winmm', 'shell32', 'oldnames', |
'winspool', 'winmm', 'shell32', 'oldnames', |
138 |
'comctl32', 'ctl3d32', 'odbc32', 'ole32', 'oleaut32', |
'comctl32', 'ctl3d32', 'odbc32', 'ole32', 'oleaut32', |
491 |
distribution. |
distribution. |
492 |
""" |
""" |
493 |
|
|
494 |
|
# FIXME: When Thuban can rely on Python 2.3 as the oldest supported |
495 |
|
# Python release we don't need to override the run and |
496 |
|
# find_all_modules methods anymore. distutils will allow both python |
497 |
|
# modules and packages starting with 2.3. |
498 |
|
|
499 |
def run(self): |
def run(self): |
500 |
"""The same the as the original in build_py revision 1.33 except |
"""The same the as the original in build_py revision 1.33 except |
501 |
that this allows both packages and modules to be in one |
that this allows both packages and modules to be in one |
679 |
src, dest = item |
src, dest = item |
680 |
else: |
else: |
681 |
src = dest = item |
src = dest = item |
682 |
self.copy_file(convert_path(src), |
self.copy_file(convert_path(src), |
683 |
os.path.join(self.root, convert_path(dest))) |
os.path.join(self.root, convert_path(dest))) |
684 |
|
|
685 |
if os.name == "posix" and self.do_symlink: |
if os.name == "posix" and self.do_symlink: |
699 |
initfilename = self.thuban_init_filename() |
initfilename = self.thuban_init_filename() |
700 |
if self.root: |
if self.root: |
701 |
initfilename = change_root(self.root, initfilename) |
initfilename = change_root(self.root, initfilename) |
702 |
contents = thubaninit_contents(repr(self.install_lib_orig)) |
contents = thubaninit_contents(self.install_lib_orig) |
703 |
self.mkpath(os.path.dirname(initfilename)) |
self.mkpath(os.path.dirname(initfilename)) |
704 |
self.execute(write_file, (initfilename, contents), |
self.execute(write_file, (initfilename, contents), |
705 |
"Create %s" % initfilename) |
"Create %s" % initfilename) |
761 |
--prefix=%(prefix)s |
--prefix=%(prefix)s |
762 |
''' |
''' |
763 |
|
|
764 |
|
|
765 |
class thuban_bdist_rpm(bdist_rpm): |
class thuban_bdist_rpm(bdist_rpm): |
766 |
|
|
767 |
"""Thuban specific RPM distribution command""" |
"""Thuban specific RPM distribution command""" |
895 |
self.execute(write_file, (iss_file, self.generate_iss()), |
self.execute(write_file, (iss_file, self.generate_iss()), |
896 |
"Create Inno Setup script file %s" % iss_file) |
"Create Inno Setup script file %s" % iss_file) |
897 |
|
|
898 |
# and invoke |
# and invoke |
899 |
if self.run_inno: |
if self.run_inno: |
900 |
self.spawn(["iscc", iss_file]) |
self.spawn(["iscc", iss_file]) |
901 |
|
|
961 |
line = 'Name: "{group}\\%s"; Filename: "%s";' \ |
line = 'Name: "{group}\\%s"; Filename: "%s";' \ |
962 |
% (icon.title, icon.install_name) |
% (icon.title, icon.install_name) |
963 |
iss.append(line) |
iss.append(line) |
964 |
|
|
965 |
return iss |
return iss |
966 |
|
|
967 |
|
|
977 |
else: |
else: |
978 |
self.install_name = filename |
self.install_name = filename |
979 |
|
|
980 |
|
|
981 |
class thuban_bdist_inno(bdist_inno): |
class thuban_bdist_inno(bdist_inno): |
982 |
|
|
983 |
"""Thuban specific Inno Setup stuff""" |
"""Thuban specific Inno Setup stuff""" |
993 |
# that we can generate the iss-file even on Linux |
# that we can generate the iss-file even on Linux |
994 |
install_options["do_symlink"] = 0 |
install_options["do_symlink"] = 0 |
995 |
bdist_inno.run(self, install_options) |
bdist_inno.run(self, install_options) |
996 |
|
|
997 |
|
|
998 |
# |
# |
999 |
# Run the script |
# Run the script |
1000 |
# |
# |
1005 |
""" |
""" |
1006 |
|
|
1007 |
setup(name = "Thuban", |
setup(name = "Thuban", |
1008 |
version = "0.1.3cvs", |
version = "0.1.3", |
1009 |
description = "Geographic data viewer", |
description = "Geographic data viewer", |
1010 |
long_description = long_description, |
long_description = long_description, |
1011 |
licence = "GPL", |
licence = "GPL", |