diff setup.py @ 676:a04288f199a5

cm: Don't always generation the version when running `setuptools`.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 06 Mar 2016 23:51:20 -0800
parents b884bef3e611
children 551d06cc640c
line wrap: on
line diff
--- a/setup.py	Sun Mar 06 23:49:41 2016 -0800
+++ b/setup.py	Sun Mar 06 23:51:20 2016 -0800
@@ -137,21 +137,12 @@
     f.close()
 
 
-# Always try to generate an up to date version.
-# Otherwise, fall back on an (hopefully) existing version file.
 try:
-    version = generate_version()
-    write_version(version)
-except:
-    version = None
-
-if version is None:
-    try:
-        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.")
+    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.")
 
 
 install_requires = read('requirements.txt').splitlines()