Permalink
Browse files

ENH: Use seven character git hash for dev version string

- Also correct spelling of 'Unknown'
  • Loading branch information...
1 parent 58e6360 commit d5ed74419bfae16427da975de6140c1c945cf7c5 @scottza scottza committed with charris Nov 10, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 setup.py
View
@@ -79,7 +79,7 @@ def _minimal_ext_cmd(cmd):
out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
GIT_REVISION = out.strip()
except OSError:
- GIT_REVISION = "Unknwn"
+ GIT_REVISION = "Unknown"
return GIT_REVISION
@@ -114,9 +114,9 @@ def write_version_py(filename='numpy/version.py'):
# must be a source distribution, use existing version file
from numpy.version import git_revision as GIT_REVISION
else:
- GIT_REVISION = "Unknwn"
+ GIT_REVISION = "Unknown"
- FULL_VERSION += GIT_REVISION[:6]
+ FULL_VERSION += GIT_REVISION[:7]
a = open(filename, 'w')
try:

0 comments on commit d5ed744

Please sign in to comment.