230 |
# |
# |
231 |
# Define some extension and python modules |
# Define some extension and python modules |
232 |
# |
# |
233 |
# The C-extension names are prefixed woth "Lib." so they get put into |
# The C-extension names are prefixed with "Lib." so they get put into |
234 |
# the Lib/ subdirectory. Lib/ is not really a package but distutils |
# the Lib/ subdirectory. Lib/ is not really a package but distutils |
235 |
# doesn't care |
# doesn't care |
236 |
|
|
237 |
# subdirectory containing the extensions |
# subdirectory containing the distutil extensions |
238 |
ext_dir = "extensions" |
ext_dir = "libraries" |
239 |
|
|
240 |
# subdirectory with some shapelib files |
# subdirectory with some shapelib files |
241 |
shp_dir = ext_dir + "/shapelib" |
shp_dir = ext_dir + "/shapelib" |
297 |
data_files = [] |
data_files = [] |
298 |
|
|
299 |
# Resources |
# Resources |
|
# ("Resources/Locale", "Resources/Locale/*/LC_MESSAGES/*.mo") |
|
300 |
for d, pattern in [("Resources/Bitmaps", "Resources/Bitmaps/*.xpm"), |
for d, pattern in [("Resources/Bitmaps", "Resources/Bitmaps/*.xpm"), |
301 |
("Resources/Projections", "Resources/Projections/*.proj"), |
("Resources/Projections", "Resources/Projections/*.proj"), |
302 |
("Resources/XML", "Resources/XML/*.dtd")]: |
("Resources/XML", "Resources/XML/*.dtd")]: |
303 |
data_files.append((d, glob.glob(pattern))) |
data_files.append((d, glob.glob(pattern))) |
304 |
|
for d in os.listdir("Resources/Locale"): |
305 |
|
data_files.append(("Resources/Locale/" + d + "/LC_MESSAGES", |
306 |
|
["Resources/Locale/"+ d + "/LC_MESSAGES/thuban.mo"])) |
307 |
|
|
308 |
# |
# |
309 |
# Command definitions |
# Command definitions |
785 |
|
|
786 |
bdist_rpm_prep_script = ''' |
bdist_rpm_prep_script = ''' |
787 |
%setup |
%setup |
788 |
cp extensions/pyshapelib/{README,README.pyshapelib} |
cp libraries/pyshapelib/{README,README.pyshapelib} |
789 |
cp extensions/pyshapelib/{COPYING,COPYING.pyshapelib} |
cp libraries/pyshapelib/{COPYING,COPYING.pyshapelib} |
790 |
cp extensions/pyprojection/{LICENSE,LICENSE.pyprojection} |
cp libraries/pyprojection/{LICENSE,LICENSE.pyprojection} |
791 |
''' |
''' |
792 |
|
|
793 |
bdist_rpm_build_script = ''' |
bdist_rpm_build_script = ''' |
1099 |
""" |
""" |
1100 |
|
|
1101 |
setup(name = "Thuban", |
setup(name = "Thuban", |
1102 |
version = "0.8.0", |
version = "0.9.0", |
1103 |
description = "Geographic data viewer", |
description = "Geographic data viewer", |
1104 |
long_description = long_description, |
long_description = long_description, |
1105 |
licence = "GPL", |
licence = "GPL", |