Skip to content

Commit

Permalink
better version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed Mar 14, 2018
1 parent 7d78204 commit d1b45b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tiledb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
array_consolidate, group_create, object_type, ls, walk, remove, move]

if not os.environ.get("TILEDB_PY_NO_VERSION_CHECK"):
if libtiledb.version() != (1, 2, 0):
major, minor, patch = libtiledb.version()
if (major, minor) > (1, 2):
raise RuntimeError("The libtiledb library version does not match "
"the latest released version of tiledb v.1.2.0")
"the latest released version of tiledb 1.2.x")

0 comments on commit d1b45b0

Please sign in to comment.