sumolib.version
index
/usr/src/packages/BUILD/tools/sumolib/version.py

This module contains functions to determine the current SUMO version.

 
Modules
       
importlib
subprocess

 
Functions
       
fromVersionHeader()
Returns the version as defined in "include/version.h" or as a fallback
"src/config.h.cmake". Since the latter only contains the last release info it is extended
with "-0000000000" to mark that it may not be a release and the commit hash is unknown.
gitDescribe(commit='HEAD', gitDir='/usr/src/packages/BUILD/tools/sumolib/../../.git', padZero=True)
The original git describe format is "<tag>-<commit_count>-g<hash>".
We convert it to "<tag>+<commit-count>-hash". If padZero is true (the default),
the commit count is padded to four digits.
If the git describe call fails, the result of fromVersionHeader is returned.

 
Data
        GITDIR = '/usr/src/packages/BUILD/tools/sumolib/../../.git'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 262144)
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 1048576)