|
#!/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]> |
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 |
|
|
78 |
def make_tuple(s): |
def make_tuple(s): |
118 |
versions['proj'] = ".".join(map(str, proj_ver)) |
versions['proj'] = ".".join(map(str, proj_ver)) |
119 |
versions['proj-tuple'] = proj_ver |
versions['proj-tuple'] = proj_ver |
120 |
|
|
121 |
|
# psycopg/postgis |
122 |
|
import Thuban.Model.postgisdb |
123 |
|
if Thuban.Model.postgisdb.has_postgis_support(): |
124 |
|
v = Thuban.Model.postgisdb.psycopg_version() |
125 |
|
versions['psycopg'] = v |
126 |
|
versions['psycopg-tuple'] = make_tuple(v) |
127 |
|
|
128 |
def verify_versions(): |
def verify_versions(): |
129 |
"""Verifies that the versions of the libraries Thuban requires |
"""Verifies that the versions of the libraries Thuban requires |
130 |
are correct. |
are correct. |