Skip to content

Commit 0a5e328

Browse files
author
y-p
committed
BLD: match version tags when using git-describe to gen version string
1 parent dd89ce4 commit 0a5e328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def build_extensions(self):
203203
pipe = None
204204
for cmd in ['git','git.cmd']:
205205
try:
206-
pipe = subprocess.Popen([cmd, "describe", "--always"],
206+
pipe = subprocess.Popen([cmd, "describe", "--always", "--match", "v[0-9]*"],
207207
stdout=subprocess.PIPE)
208208
(so,serr) = pipe.communicate()
209209
if pipe.returncode == 0:

0 commit comments

Comments
 (0)