~ubuntu-branches/debian/squeeze/pycryptopp/squeeze

« back to all changes in this revision

Viewing changes to pycryptopp/_version.py

  • Committer: Bazaar Package Importer
  • Author(s): Zooko O'Whielacronx
  • Date: 2009-06-22 22:20:50 UTC
  • Revision ID: james.westby@ubuntu.com-20090622222050-hbqmn50dt2kvoz5o
Tags: upstream-0.5.14
ImportĀ upstreamĀ versionĀ 0.5.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# This is the version of this tree, as created by setup.py darcsver from the Darcs patch
 
3
# information: the main version number is taken from the most recent release
 
4
# tag. If some patches have been added since the last release, this will have a
 
5
# -NN "build number" suffix, or else a -rNN "revision number" suffix. Please see
 
6
# pyutil.version_class for a description of what the different fields mean.
 
7
 
 
8
verstr = "0.5.14"
 
9
try:
 
10
    from pyutil.version_class import Version as pyutil_Version
 
11
    __version__ = pyutil_Version(verstr)
 
12
except (ImportError, ValueError):
 
13
    # Maybe there is no pyutil installed, or this may be an older version of
 
14
    # pyutil.version_class which does not support SVN-alike revision numbers.
 
15
    from distutils.version import LooseVersion as distutils_Version
 
16
    __version__ = distutils_Version(verstr)