1 |
# Copyright (c) 2001, 2002, 2003 by Intevation GmbH |
# Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
83 |
# |
# |
84 |
|
|
85 |
# Directories where Proj4 is installed |
# Directories where Proj4 is installed |
86 |
proj4_prefix = r"D:\cygwin\home\user\proj-4.4.7\src" |
proj4_prefix = r"D:\cygwin\home\user\projects\thuban\proj-4.4.7\src" |
87 |
proj4_incdir = proj4_prefix |
proj4_incdir = proj4_prefix |
88 |
proj4_libdir = proj4_prefix |
proj4_libdir = proj4_prefix |
89 |
proj4_lib = "proj_i" |
proj4_lib = "proj_i" |
90 |
|
|
91 |
# Define include and lib directories for wxWindows and |
# Define include and lib directories for wxWindows and |
92 |
wx_prefix = r"C:\wx-versions\wxPython-2.4.0.6" |
wx_prefix = r"d:\cygwin\home\user\projects\thuban\wxPython-2.4.0.7" |
93 |
wx_inc = [os.path.join(wx_prefix, 'lib', 'mswdllh'), |
wx_inc = [os.path.join(wx_prefix, 'lib', 'mswdllh'), |
94 |
os.path.join(wx_prefix, "include")] |
os.path.join(wx_prefix, "include")] |
95 |
wx_lib = [os.path.join(wx_prefix, "lib")] |
wx_lib = [os.path.join(wx_prefix, "lib")] |
96 |
|
|
97 |
# Define include and lib directories for GDAL |
# Define include and lib directories for GDAL |
98 |
gdal_prefix = r"D:\cygwin\home\user\build\gdal-1.1.8" |
gdal_prefix = r"D:\cygwin\home\user\projects\thuban\gdal-1.1.8" |
99 |
gdal_inc = [os.path.join(gdal_prefix, 'alg'), |
gdal_inc = [os.path.join(gdal_prefix, 'alg'), |
100 |
os.path.join(gdal_prefix, 'ogr'), |
os.path.join(gdal_prefix, 'ogr'), |
101 |
os.path.join(gdal_prefix, 'port'), |
os.path.join(gdal_prefix, 'port'), |
275 |
extensions.append(Extension("Lib.dbflibc", |
extensions.append(Extension("Lib.dbflibc", |
276 |
[ext_dir + "/pyshapelib/dbflib_wrap.c", |
[ext_dir + "/pyshapelib/dbflib_wrap.c", |
277 |
shp_dir + "/dbfopen.c"], |
shp_dir + "/dbfopen.c"], |
278 |
include_dirs = [shp_dir])) |
include_dirs = [shp_dir], |
279 |
|
define_macros = [("HAVE_UPDATE_HEADER", "1")])) |
280 |
for name in ("shapelib", "dbflib"): |
for name in ("shapelib", "dbflib"): |
281 |
py_modules.append(ext_dir + "/pyshapelib/" + name) |
py_modules.append(ext_dir + "/pyshapelib/" + name) |
282 |
|
|
298 |
data_files = [] |
data_files = [] |
299 |
|
|
300 |
# Resources |
# Resources |
301 |
for d, pattern in [("Resources/Bitmaps", "Resources/Bitmaps/*.xpm"), |
for d, patterns in [("Resources/Bitmaps", |
302 |
("Resources/Projections", "Resources/Projections/*.proj"), |
("Resources/Bitmaps/*.xpm",)), |
303 |
("Resources/XML", "Resources/XML/*.dtd")]: |
("Resources/Projections", |
304 |
data_files.append((d, glob.glob(pattern))) |
("Resources/Projections/*.proj",)), |
305 |
|
("Resources/XML", |
306 |
|
("Resources/XML/*.dtd",)), |
307 |
|
("Extensions/importAPR/samples", |
308 |
|
("Extensions/importAPR/samples/README", |
309 |
|
"Extensions/importAPR/samples/*.apr")), |
310 |
|
]: |
311 |
|
for pattern in patterns: |
312 |
|
data_files.append((d, glob.glob(pattern))) |
313 |
if os.path.isdir("Resources/Locale"): |
if os.path.isdir("Resources/Locale"): |
314 |
for d in os.listdir("Resources/Locale"): |
for d in os.listdir("Resources/Locale"): |
315 |
data_files.append(("Resources/Locale/" + d +"/LC_MESSAGES", |
data_files.append(("Resources/Locale/" + d +"/LC_MESSAGES", |
1109 |
""" |
""" |
1110 |
|
|
1111 |
setup(name = "Thuban", |
setup(name = "Thuban", |
1112 |
version = "0.9.0", |
version = "1.0.0", |
1113 |
description = "Geographic data viewer", |
description = "Geographic data viewer", |
1114 |
long_description = long_description, |
long_description = long_description, |
1115 |
licence = "GPL", |
license = "GPL", |
1116 |
author = "Intevation GmbH", |
author = "Intevation GmbH", |
1117 |
author_email = "[email protected]", |
author_email = "[email protected]", |
1118 |
url = "http://thuban.intevation.de/", |
url = "http://thuban.intevation.de/", |
1119 |
|
|
1120 |
scripts = ["thuban.py"], |
scripts = ["thuban.py"], |
1121 |
packages = ["Thuban", "Thuban.Lib", "Thuban.Model", "Thuban.UI"], |
packages = ["Thuban", "Thuban.Lib", "Thuban.Model", "Thuban.UI", |
1122 |
|
"Extensions", "Extensions.gns2shp", "Extensions.wms", |
1123 |
|
"Extensions.importAPR", "Extensions.profiling"], |
1124 |
ext_modules = extensions, |
ext_modules = extensions, |
1125 |
py_modules = py_modules, |
py_modules = py_modules, |
1126 |
data_files = data_files, |
data_files = data_files, |