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 |
# |
# |
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 = "1.0rc1", |
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, |