Fix setup.py

This commit is contained in:
Tim Bentley 2014-07-02 20:34:28 +01:00
parent f71c4cc7af
commit 3f889e08d4

View File

@ -105,6 +105,8 @@ try:
tag_version, tag_revision = tags[-1].split() tag_version, tag_revision = tags[-1].split()
# If they are equal, then this tree is tarball with the source for the release. We do not want the revision number # If they are equal, then this tree is tarball with the source for the release. We do not want the revision number
# in the version string. # in the version string.
tree_revision = tree_revision.strip()
tag_revision = tag_revision.strip()
if tree_revision == tag_revision: if tree_revision == tag_revision:
version_string = tag_version.decode('utf-8') version_string = tag_version.decode('utf-8')
else: else: