Skip to content

Commit cd73601

Browse files
authored
Fix issue that no valid semantic version tag found when installing bitsandbytes from source in personal repo (bitsandbytes-foundation#1419)
1 parent cd3cb68 commit cd73601

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def get_latest_semver_tag():
2727
tags = subprocess.check_output(["git", "tag"], text=True).splitlines()
2828
semver_tags = [tag for tag in tags if tag.count(".") == 2 and all(part.isdigit() for part in tag.split("."))]
2929
if not semver_tags:
30-
raise ValueError("No valid semantic version tags found")
30+
print("No valid semantic version tags found, use 0.0.1 defaultly")
31+
semver_tags = ["0.0.1"]
3132
return sorted(semver_tags, key=lambda s: list(map(int, s.split("."))))[-1]
3233

3334

0 commit comments

Comments
 (0)