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 |
873 |
"""Execute the command. install_options if given, should be a |
"""Execute the command. install_options if given, should be a |
874 |
directory of additional options to set in the install step""" |
directory of additional options to set in the install step""" |
875 |
# Obviously have to build before we can install |
# Obviously have to build before we can install |
876 |
|
|
877 |
if not self.skip_build: |
if not self.skip_build: |
878 |
self.run_command('build') |
self.run_command('build') |
879 |
|
|
986 |
def run(self): |
def run(self): |
987 |
install_options = { |
install_options = { |
988 |
"prefix": ".", |
"prefix": ".", |
989 |
|
"install_lib": "$base", |
990 |
|
"install_data": "$base", |
991 |
"install_scripts": "$base", |
"install_scripts": "$base", |
992 |
"warn_dir": 0, |
"warn_dir": 0, |
993 |
"extra_files": ["COPYING", "Lib/proj.dll"], |
"extra_files": ["COPYING", "Lib/proj.dll"], |
995 |
# don't make a symlink because we're simulating windows, so |
# don't make a symlink because we're simulating windows, so |
996 |
# that we can generate the iss-file even on Linux |
# that we can generate the iss-file even on Linux |
997 |
install_options["do_symlink"] = 0 |
install_options["do_symlink"] = 0 |
998 |
|
|
999 |
bdist_inno.run(self, install_options) |
bdist_inno.run(self, install_options) |
1000 |
|
|
1001 |
|
class thuban_build_docs(Command): |
1002 |
|
|
1003 |
|
"""Command to generate documentation from source code.""" |
1004 |
|
|
1005 |
|
description = "Generate documentation." |
1006 |
|
|
1007 |
|
user_options = [] |
1008 |
|
|
1009 |
|
def initialize_options(self): pass |
1010 |
|
|
1011 |
|
def finalize_options(self): pass |
1012 |
|
|
1013 |
|
def run(self, install_options = None): |
1014 |
|
self.spawn(["happydoc", "-d./Doc", "./Thuban"]) |
1015 |
|
|
1016 |
# |
# |
1017 |
# Run the script |
# Run the script |
1023 |
""" |
""" |
1024 |
|
|
1025 |
setup(name = "Thuban", |
setup(name = "Thuban", |
1026 |
version = "0.1.3", |
version = "0.2.0", |
1027 |
description = "Geographic data viewer", |
description = "Geographic data viewer", |
1028 |
long_description = long_description, |
long_description = long_description, |
1029 |
licence = "GPL", |
licence = "GPL", |
1065 |
"install": ThubanInstall, |
"install": ThubanInstall, |
1066 |
"bdist_rpm": thuban_bdist_rpm, |
"bdist_rpm": thuban_bdist_rpm, |
1067 |
"bdist_inno": thuban_bdist_inno, |
"bdist_inno": thuban_bdist_inno, |
1068 |
"data_dist": data_dist |
"data_dist": data_dist, |
1069 |
|
"build_docs": thuban_build_docs |
1070 |
}) |
}) |
1071 |
|
|
1072 |
|
|