/[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 1322 by jonathan, Mon Jun 30 12:01:50 2003 UTC revision 2011 by bh, Wed Dec 3 09:46:27 2003 UTC
# Line 1  Line 1 
 #!/usr/bin/env python  
 #  
1  # Copyright (C) 2002, 2003 by Intevation GmbH  # Copyright (C) 2002, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Thomas Koester <[email protected]>  # Thomas Koester <[email protected]>
# Line 26  import time Line 24  import time
24  from string import split  from string import split
25    
26  from Thuban import  _  from Thuban import  _
27    from Thuban.Lib.version import make_tuple
28    
29  if __name__ == "__main__":  if __name__ == "__main__":
30      import sys      import sys
# Line 74  if append_date: Line 72  if append_date:
72  versions['thuban'] = version  versions['thuban'] = version
73    
74  #longversion = '%s\n%s' % (version, get_changelog_date())  #longversion = '%s\n%s' % (version, get_changelog_date())
75  longversion = 'Release Version 0.8.1'  longversion = 'Release Version 1.0rc1'
76  versions['thuban-long'] = longversion  versions['thuban-long'] = longversion
77    
 def make_tuple(s):  
     return tuple(map(int, split(s, ".")[:3]))  
   
78  # wxPython  # wxPython
79  from wxPython.wx import __version__ as wxPython_version  from wxPython.wx import __version__ as wxPython_version
80  versions['wxPython'] = wxPython_version  versions['wxPython'] = wxPython_version
# Line 120  if proj_ver: Line 115  if proj_ver:
115      versions['proj'] = ".".join(map(str, proj_ver))      versions['proj'] = ".".join(map(str, proj_ver))
116      versions['proj-tuple'] = proj_ver      versions['proj-tuple'] = proj_ver
117    
118    # psycopg/postgis
119    import Thuban.Model.postgisdb
120    if Thuban.Model.postgisdb.has_postgis_support():
121        v = Thuban.Model.postgisdb.psycopg_version()
122        versions['psycopg'] = v
123        versions['psycopg-tuple'] = make_tuple(v)
124    
125  def verify_versions():  def verify_versions():
126      """Verifies that the versions of the libraries Thuban requires      """Verifies that the versions of the libraries Thuban requires
127      are correct.      are correct.

Legend:
Removed from v.1322  
changed lines
  Added in v.2011

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26