Skip to content

Commit d5ed744

Browse files
scottzacharris
authored andcommitted
ENH: Use seven character git hash for dev version string
- Also correct spelling of 'Unknown'
1 parent 58e6360 commit d5ed744

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _minimal_ext_cmd(cmd):
7979
out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
8080
GIT_REVISION = out.strip()
8181
except OSError:
82-
GIT_REVISION = "Unknwn"
82+
GIT_REVISION = "Unknown"
8383

8484
return GIT_REVISION
8585

@@ -114,9 +114,9 @@ def write_version_py(filename='numpy/version.py'):
114114
# must be a source distribution, use existing version file
115115
from numpy.version import git_revision as GIT_REVISION
116116
else:
117-
GIT_REVISION = "Unknwn"
117+
GIT_REVISION = "Unknown"
118118

119-
FULL_VERSION += GIT_REVISION[:6]
119+
FULL_VERSION += GIT_REVISION[:7]
120120

121121
a = open(filename, 'w')
122122
try:

0 commit comments

Comments
 (0)