Commit 2f86848d authored by Tobias Mueller's avatar Tobias Mueller

setup: Fallback to version 0.0.1 if we cannot import calypso

Mostly due to dependency problems, i.e.:
$ python
Traceback (most recent call last):
  File "", line 43, in <module>
    import calypso
  File "/home/muelli/vcs/calypso/calypso/", line 54, in <module>
    from calypso import acl, config, webdav, xmlutils
  File "/home/muelli/vcs/calypso/calypso/", line 36, in <module>
    import vobject
ImportError: No module named vobject
parent 77e96ffe
......@@ -40,8 +40,13 @@ import os
from distutils.core import setup
from distutils.command.build_scripts import build_scripts
import calypso
from calypso import VERSION
except ImportError, e:
print 'Error importing Calypso, probably dependencies are not installed'
print e
VERSION = '0.0.1'
print 'Assuming version %s' % VERSION
# build_scripts is known to have a lot of public methods
# pylint: disable=R0904
......@@ -61,7 +66,7 @@ class BuildScripts(build_scripts):
# A new section in the ``NEWS`` file must be added too.
description="CalDAV and CardDAV Server",
author="Keith Packard",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment