_version.py 438 B

12345678910111213141516171819
  1. # This is the version of this source code.
  2. manual_verstr = "1.5"
  3. auto_build_num = "211"
  4. verstr = manual_verstr + "." + auto_build_num
  5. try:
  6. from pyutil.version_class import Version as pyutil_Version
  7. __version__ = pyutil_Version(verstr)
  8. except (ImportError, ValueError):
  9. # Maybe there is no pyutil installed.
  10. from distutils.version import LooseVersion as distutils_Version
  11. __version__ = distutils_Version(verstr)