/[thuban]/branches/WIP-pyshapelib-bramz/setup.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/setup.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 67 by bh, Thu Oct 18 14:50:21 2001 UTC revision 200 by bh, Mon Jul 8 10:50:39 2002 UTC
# Line 1  Line 1 
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  #  #
# Line 200  py_modules = [] Line 200  py_modules = []
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))
# Line 213  extensions.append(Extension("Lib.wxproj" Line 214  extensions.append(Extension("Lib.wxproj"
214    
215  extensions.append(Extension("Lib.shapelibc",  extensions.append(Extension("Lib.shapelibc",
216                              [ext_dir + "/pyshapelib/shapelib_wrap.c",                              [ext_dir + "/pyshapelib/shapelib_wrap.c",
217                               shp_dir + "/shpopen.c"],                               shp_dir + "/shpopen.c",
218                                 shp_dir + "/shptree.c"],
219                                include_dirs = [shp_dir]))
220    extensions.append(Extension("Lib.shptree",
221                                [ext_dir + "/pyshapelib/shptreemodule.c"],
222                              include_dirs = [shp_dir]))                              include_dirs = [shp_dir]))
223  extensions.append(Extension("Lib.dbflibc",  extensions.append(Extension("Lib.dbflibc",
224                              [ext_dir + "/pyshapelib/dbflib_wrap.c",                              [ext_dir + "/pyshapelib/dbflib_wrap.c",
# Line 392  class InstallLocal(Command): Line 397  class InstallLocal(Command):
397      """      """
398    
399      description =\      description =\
400          "Create some symlink so you can run thubanfrom the source directory"          "Create some symlinks so you can run thuban from the source directory"
401    
402      user_options = [      user_options = [
403          ('skip-build', None, "skip the build steps"),          ('skip-build', None, "skip the build steps"),
# Line 416  class InstallLocal(Command): Line 421  class InstallLocal(Command):
421          # now do the work. Simply link or copy the Lib dir          # now do the work. Simply link or copy the Lib dir
422          libdir = os.path.join(self.build_dir, "Lib")          libdir = os.path.join(self.build_dir, "Lib")
423          if os.name == "posix":          if os.name == "posix":
424              # on posix, just lilnk the Lib dir              # on posix, just link the Lib dir
425              self.link_dir(libdir, "Lib")              self.link_dir(libdir, "Lib")
426          else:          else:
427              self.copy_tree(libdir, "Lib")              self.copy_tree(libdir, "Lib")
# Line 602  class thuban_bdist_rpm(bdist_rpm): Line 607  class thuban_bdist_rpm(bdist_rpm):
607    
608      """Thuban specific RPM distribution command"""      """Thuban specific RPM distribution command"""
609    
610      def run(self):      def initialize_options(self):
611          # create the prep script for the spec-file          # create the prep script for the spec-file
612          open("bdist_rpm_prep", "w").write(bdist_rpm_prep_script)          open("bdist_rpm_prep", "w").write(bdist_rpm_prep_script)
613    
614          bdist_rpm.run(self)          bdist_rpm.initialize_options(self)
615    
616    
617  class bdist_inno(Command):  class bdist_inno(Command):
# Line 820  Thuban is a viewer for geographic data w Line 825  Thuban is a viewer for geographic data w
825  """  """
826    
827  setup(name = "Thuban",  setup(name = "Thuban",
828        version = "0.1",        version = "0.1.2",
829        description = "Geographic data viewer",        description = "Geographic data viewer",
830        long_description = long_description,        long_description = long_description,
831        licence = "GPL",        licence = "GPL",
# Line 840  setup(name = "Thuban", Line 845  setup(name = "Thuban",
845                   {"prefix": prefix,                   {"prefix": prefix,
846                    # make sure both libs and scripts are installed in the                    # make sure both libs and scripts are installed in the
847                    # same directory.                    # same directory.
848                    "install_lib": "$base/thuban",                    "install_lib": "$base/lib/thuban",
849                    "install_scripts": "$base/thuban",                    "install_scripts": "$base/lib/thuban",
850                    "install_data": "$base/thuban",                    "install_data": "$base/lib/thuban",
851    
852                    # Don't print warning messages about the lib dir not                    # Don't print warning messages about the lib dir not
853                    # being on Python's path. The libraries are Thuban                    # being on Python's path. The libraries are Thuban

Legend:
Removed from v.67  
changed lines
  Added in v.200

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26