diff setup.py @ 678:551d06cc640c

cm: Don't raise an exception when no version file exists.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 07 Mar 2016 00:00:36 -0800
parents a04288f199a5
children 77cec2fa0e83
line wrap: on
line diff
--- a/setup.py	Sun Mar 06 23:51:44 2016 -0800
+++ b/setup.py	Mon Mar 07 00:00:36 2016 -0800
@@ -141,8 +141,10 @@
     from piecrust.__version__ import APP_VERSION
     version = APP_VERSION
 except ImportError:
-    raise Exception("Can't get version from either a version file or "
-                    "from the repository.")
+    print(
+            "WARNING: Can't get version from version file. "
+            "Will use version `0.0`.")
+    version = '0.0'
 
 
 install_requires = read('requirements.txt').splitlines()