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.
8 __pkgname__ = "darcsver"
11 from pyutil.version_class import Version as pyutil_Version
12 __version__ = pyutil_Version(verstr)
13 except (ImportError, ValueError):
14 # Maybe there is no pyutil installed, or this may be an older version of
15 # pyutil.version_class which does not support SVN-alike revision numbers.
16 from distutils.version import LooseVersion as distutils_Version
17 __version__ = distutils_Version(verstr)