Skip to content

Commit 1e5f94a

Browse files
author
y-p
committed
Merge pull request #5916 from y-p/PR_setup_git_describe_match_tags
BLD: match version tags when using git-describe to gen version string
2 parents dd89ce4 + 0a5e328 commit 1e5f94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
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)