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

Diff of /branches/WIP-pyshapelib-bramz/Thuban/version.py

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

revision 2088 by bh, Wed Feb 25 10:33:24 2004 UTC revision 2682 by dpinte, Mon May 15 20:11:15 2006 UTC
# Line 27  __version__ = "$Revision$" Line 27  __version__ = "$Revision$"
27  # E.g. given  # E.g. given
28  #  #
29  #  thuban_branch = "1.1"  #  thuban_branch = "1.1"
30  #  thuban_release = "cvs"  #  thuban_release = "svn"
31  #  #
32  # the version string will be "Thuban 1.1 cvs 2004-02-24" (obviously the  # the version string will be "Thuban 1.1 svn-20040224" (obviously the
33  # actual date might differ :) ).  OTOH, given  # actual date might differ :) ).  OTOH, given
34  #  #
35  #  thuban_branch = "1.0"  #  thuban_branch = "1.0"
# Line 39  __version__ = "$Revision$" Line 39  __version__ = "$Revision$"
39  #  #
40    
41  thuban_branch = "1.1"  thuban_branch = "1.1"
42  thuban_release = "cvs"  thuban_release = "svn"
43    
44    
45    
# Line 91  def get_changelog_date(): Line 91  def get_changelog_date():
91    
92  versions = {}  versions = {}
93    
94  if thuban_release == "cvs":  if thuban_release == "svn":
95      version = '%s %s-%s' % (thuban_branch, thuban_release, get_date('%Y%m%d'))      version = '%s %s-%s' % (thuban_branch, thuban_release, get_date('%Y%m%d'))
96      longversion = '%s\n%s' % (version, get_changelog_date())      longversion = '%s\n%s' % (version, get_changelog_date())
97  else:  else:
# Line 111  versions['python'] = "%d.%d.%d" % sys.ve Line 111  versions['python'] = "%d.%d.%d" % sys.ve
111  versions['python-tuple'] = sys.version_info[:3]  versions['python-tuple'] = sys.version_info[:3]
112    
113  # PySQLite  # PySQLite
114  from sqlite import version as pysqlite_version  try:
115  versions['pysqlite'] = pysqlite_version      from pysqlite2 import dbapi2 as sqlite
116  versions['pysqlite-tuple'] = make_tuple(pysqlite_version)  except ImportError:
117        import sqlite
118    versions['pysqlite'] = sqlite.version
119    versions['pysqlite-tuple'] = make_tuple(sqlite.version)
120    
121  # SQLite  # SQLite
122  from _sqlite import sqlite_version  try:
123  versions['sqlite'] = sqlite_version()      from pysqlite2._sqlite import sqlite_version
124  versions['sqlite-tuple'] = make_tuple(sqlite_version())  except ImportError:
125        from _sqlite import sqlite_version
126    versions['sqlite'] = sqlite_version
127    versions['sqlite-tuple'] = make_tuple(sqlite_version)
128    
129  # GDAL  # GDAL
130  from  Thuban.Model.resource import has_gdal_support  from  Thuban.Model.resource import has_gdal_support

Legend:
Removed from v.2088  
changed lines
  Added in v.2682

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26