Skip to content

Commit

Permalink
Update version logic
Browse files Browse the repository at this point in the history
Allow any number of components, using only the first 3
for SQLite.  (SQLite used to be a lot less consistent.)
  • Loading branch information
rogerbinns committed Jun 13, 2024
1 parent eb54807 commit 9ff6550
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 @@ -107,8 +107,8 @@ def write_whole_file(name, mode, data):


def sqliteversion(v):
assert len(v.split(".")) == 4
return v.rsplit(".", 1)[0]
assert len(v.split(".")) >= 4
return ".".join(v.split(".")[:3])


# They keep messing with where files are in URI
Expand Down

0 comments on commit 9ff6550

Please sign in to comment.