File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ def build_extensions(self):
200
200
import subprocess
201
201
FULLVERSION += '.dev'
202
202
203
+ pipe = None
203
204
for cmd in ['git' ,'git.cmd' ]:
204
205
try :
205
206
pipe = subprocess .Popen ([cmd , "describe" , "--always" ],
@@ -210,15 +211,15 @@ def build_extensions(self):
210
211
except :
211
212
pass
212
213
213
- if pipe .returncode != 0 :
214
+ if pipe is None or pipe .returncode != 0 :
214
215
warnings .warn ("WARNING: Couldn't get git revision, using generic version string" )
215
216
else :
216
217
rev = so .strip ()
217
218
# makes distutils blow up on Python 2.7
218
219
if sys .version_info [0 ] >= 3 :
219
220
rev = rev .decode ('ascii' )
220
221
221
- # use result og git describe as version string
222
+ # use result of git describe as version string
222
223
FULLVERSION = rev .lstrip ('v' )
223
224
224
225
else :
You can’t perform that action at this time.
0 commit comments