def __get_version(saltstack_version):
 try:
  from salt._version import __saltstack_version__
  return __saltstack_version__
 except ImportError:
  return __discover_version(saltstack_version)

def __get_version ( saltstack_version ) : try : from salt . _version import __saltstack_version__ return __saltstack_version__ except ImportError : return __discover_version ( saltstack_version )
if we can get a version provided at installation time or from git .