794d428e1345e46deef535cb5c5fc2bdc1182d8a
[sfa.git] / sfa / util / version.py.in
1 ### updated by the toplevel Makefile
2 version_tag="@VERSIONTAG@"
3 scm_url="@SCMURL@"
4 import socket
5
6 from sfa.util.config import Config
7  
8 def version_core (more={}):
9     config = Config()
10     hostname = socket.gethostname()
11     core = { 'code_tag' : version_tag,
12              'code_url' : scm_url,
13              'hostname' : hostname,
14              'geni_api': 3,
15              'geni_api_versions': {'3': "%s:%s" % (hostname, config.sfa_aggregate_port)}, 
16              }
17     core.update(more)
18     return core