3
__version_info__ = (0,6,4)
4
__version__ = '%d.%d.%d' % (__version_info__[0],__version_info__[1],__version_info__[2],)
4
__version_info__ = (0,6,6,2)
5
__version__ = '.'.join(map(str,__version_info__))
6
7
SERVER_ID = ','.join([platform.system(),
8
9
'UPnP/1.0,Coherence UPnP framework',
14
from twisted import version as twisted_version
15
from twisted.web import version as twisted_web_version
16
from twisted.python.versions import Version
17
except ImportError, exc:
18
# log error to stderr, might be useful for debugging purpose
19
sys.stderr.write("Twisted >= 2.5 and Twisted.Web >= 2.5 are required. "\
20
"Please install them.\n")
24
if twisted_version < Version("twisted", 2, 5, 0):
25
raise ImportError("Twisted >= 2.5 is required. Please install it.")
27
if twisted_web_version < Version("twisted.web", 2, 5, 0):
28
raise ImportError("Twisted.Web >= 2.5 is required. Please install it")
29
except ImportError, exc:
30
# log error to stderr, might be useful for debugging purpose
32
sys.stderr.write("%s\n" % arg)