Skip to content

Commit

Permalink
Merge pull request pandas-dev#5520 from invisibleroads/patch-2
Browse files Browse the repository at this point in the history
Ensure that we can get a commit number from git
  • Loading branch information
y-p committed Nov 16, 2013
2 parents c70882a + 2d7514f commit 34c0db8
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 @@ -201,12 +201,12 @@ def build_extensions(self):
try:
import subprocess
try:
pipe = subprocess.Popen(["git", "describe", "HEAD"],
pipe = subprocess.Popen(["git", "describe", "--always"],
stdout=subprocess.PIPE).stdout
except OSError:
# msysgit compatibility
pipe = subprocess.Popen(
["git.cmd", "describe", "HEAD"],
["git.cmd", "describe", "--always"],
stdout=subprocess.PIPE).stdout
rev = pipe.read().strip()
# makes distutils blow up on Python 2.7
Expand Down

0 comments on commit 34c0db8

Please sign in to comment.