# HG changeset patch # User Ludovic Chabant # Date 1457337636 28800 # Node ID 551d06cc640cc7c08057fc6a8f4e38809810b4f5 # Parent a9b13c848b20324f8745ebbe6d7fba21e16627d2 cm: Don't raise an exception when no version file exists. diff -r a9b13c848b20 -r 551d06cc640c setup.py --- 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()