Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

setup.py: Try git when printing the release version

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information...
commit d0388c6e65190a9d5f4a954c1489acbbc4638999 1 parent 39302a1
@davvid davvid authored
Showing with 5 additions and 5 deletions.
  1. +4 −1 cola/version.py
  2. +1 −4 setup.py
View
5 cola/version.py
@@ -90,7 +90,10 @@ def release_version():
v = fp.read().strip()
fp.close()
else:
- v = version()
+ try:
+ v = git_describe_version()
+ except VersionUnavailable:
+ v = version()
return v
View
5 setup.py
@@ -6,10 +6,7 @@
from glob import glob
from distutils.core import setup
-try:
- from extras import cmdclass
-except ImportError:
- cmdclass = {}
+from extras import cmdclass
# Look for modules in the root and thirdparty directories
srcdir = os.path.dirname(os.path.abspath(__file__))
Please sign in to comment.
Something went wrong with that request. Please try again.