/[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 1614 by jan, Tue Aug 19 21:56:20 2003 UTC revision 2212 by bh, Mon May 17 15:47:57 2004 UTC
# Line 1  Line 1 
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  #  #
# Line 83  elif os.name == "nt": Line 83  elif os.name == "nt":
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'),
# Line 275  extensions.append(Extension("Lib.shptree Line 275  extensions.append(Extension("Lib.shptree
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    
# Line 297  py_modules.append(ext_dir + "/pyprojecti Line 298  py_modules.append(ext_dir + "/pyprojecti
298  data_files = []  data_files = []
299    
300  # Resources  # Resources
301  # ("Resources/Locale", "Resources/Locale/*/LC_MESSAGES/*.mo")  for d, patterns in [("Resources/Bitmaps",
302  for d, pattern in [("Resources/Bitmaps", "Resources/Bitmaps/*.xpm"),                      ("Resources/Bitmaps/*.xpm",)),
303                     ("Resources/Projections", "Resources/Projections/*.proj"),                     ("Resources/Projections",
304                     ("Resources/XML", "Resources/XML/*.dtd")]:                      ("Resources/Projections/*.proj",)),
305      data_files.append((d, glob.glob(pattern)))                     ("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"):
314        for d in os.listdir("Resources/Locale"):
315            data_files.append(("Resources/Locale/" + d +"/LC_MESSAGES",
316                               ["Resources/Locale/"+ d +"/LC_MESSAGES/thuban.mo"]))
317    
318  #  #
319  #       Command definitions  #       Command definitions
# Line 1097  Thuban is a viewer for geographic data w Line 1109  Thuban is a viewer for geographic data w
1109  """  """
1110    
1111  setup(name = "Thuban",  setup(name = "Thuban",
1112        version = "0.8.1",        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,

Legend:
Removed from v.1614  
changed lines
  Added in v.2212

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26