Skip to content

Commit

Permalink
Merge pull request #337 from grlee77/setup_fix
Browse files Browse the repository at this point in the history
fix variable names for building from source distribution
  • Loading branch information
corranwebster authored Dec 23, 2016
2 parents 1cc77c1 + 1ffae73 commit 649dcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ def write_version_py(filename=_VERSION_FILENAME):
elif os.path.exists(filename):
# must be a source distribution, use existing version file
try:
git_revision, full_version = read_version_py(chaco_version_path)
git_rev, fullversion = read_version_py(chaco_version_path)
except (SyntaxError, KeyError):
raise RuntimeError("Unable to read git_revision. Try removing "
"chaco/_version.py and the build directory "
"before building.")


match = re.match(r'.*?\.dev(?P<dev_num>\d+)', full_v)
match = re.match(r'.*?\.dev(?P<dev_num>\d+)', fullversion)
if match is None:
dev_num = '0'
else:
Expand Down

0 comments on commit 649dcb5

Please sign in to comment.