better version check
@@ -9,6 +9,7 @@ __all__ = [Ctx, Config, Dim, Domain, Attr, KV, ArraySchema, SparseArray, TileDBE
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")
