1 |
# Copyright (c) 2001 by Intevation GmbH |
# Copyright (c) 2001, 2002 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
200 |
# |
# |
201 |
|
|
202 |
extensions.append(Extension("Lib.wxproj", |
extensions.append(Extension("Lib.wxproj", |
203 |
[ext_dir + "/thuban/wxproj.cpp", |
[ext_dir + "/thuban/wxproj.cpp"], |
204 |
shp_dir + "/shpopen.c"], |
include_dirs = ([shp_dir, proj4_incdir, |
205 |
include_dirs = [shp_dir, proj4_incdir] +wx_incdirs, |
ext_dir + "/pyshapelib/"] |
206 |
|
+ wx_incdirs), |
207 |
define_macros = wx_defs, |
define_macros = wx_defs, |
208 |
library_dirs = [proj4_libdir] + wx_libdirs, |
library_dirs = [proj4_libdir] + wx_libdirs, |
209 |
libraries = [proj4_lib] + wx_libs)) |
libraries = [proj4_lib] + wx_libs)) |
393 |
""" |
""" |
394 |
|
|
395 |
description =\ |
description =\ |
396 |
"Create some symlink so you can run thubanfrom the source directory" |
"Create some symlinks so you can run thuban from the source directory" |
397 |
|
|
398 |
user_options = [ |
user_options = [ |
399 |
('skip-build', None, "skip the build steps"), |
('skip-build', None, "skip the build steps"), |
417 |
# now do the work. Simply link or copy the Lib dir |
# now do the work. Simply link or copy the Lib dir |
418 |
libdir = os.path.join(self.build_dir, "Lib") |
libdir = os.path.join(self.build_dir, "Lib") |
419 |
if os.name == "posix": |
if os.name == "posix": |
420 |
# on posix, just lilnk the Lib dir |
# on posix, just link the Lib dir |
421 |
self.link_dir(libdir, "Lib") |
self.link_dir(libdir, "Lib") |
422 |
else: |
else: |
423 |
self.copy_tree(libdir, "Lib") |
self.copy_tree(libdir, "Lib") |
603 |
|
|
604 |
"""Thuban specific RPM distribution command""" |
"""Thuban specific RPM distribution command""" |
605 |
|
|
606 |
def run(self): |
def initialize_options(self): |
607 |
# create the prep script for the spec-file |
# create the prep script for the spec-file |
608 |
open("bdist_rpm_prep", "w").write(bdist_rpm_prep_script) |
open("bdist_rpm_prep", "w").write(bdist_rpm_prep_script) |
609 |
|
|
610 |
bdist_rpm.run(self) |
bdist_rpm.initialize_options(self) |
611 |
|
|
612 |
|
|
613 |
class bdist_inno(Command): |
class bdist_inno(Command): |
821 |
""" |
""" |
822 |
|
|
823 |
setup(name = "Thuban", |
setup(name = "Thuban", |
824 |
version = "0.1", |
version = "0.1.1", |
825 |
description = "Geographic data viewer", |
description = "Geographic data viewer", |
826 |
long_description = long_description, |
long_description = long_description, |
827 |
licence = "GPL", |
licence = "GPL", |