From a456a6d40a2e896ffa958c3f860fea65d1adc03d Mon Sep 17 00:00:00 2001 From: Dusan Baran Date: Tue, 21 May 2024 10:09:49 +0200 Subject: [PATCH] Remove libtiledb logic --- tiledb/__init__.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tiledb/__init__.py b/tiledb/__init__.py index ec61839fdb..d0e9852611 100644 --- a/tiledb/__init__.py +++ b/tiledb/__init__.py @@ -19,23 +19,7 @@ else: lib_name = "tiledb" -# On Windows and whl builds, we may have a shared library already linked, or -# adjacent to, the cython .pyd shared object. In this case, we can import directly -# from .libtiledb -try: - import tiledb - - from .libtiledb import Ctx - - del Ctx -except: - try: - lib_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "native") - ctypes.CDLL(os.path.join(lib_dir, lib_name)) - except OSError: - # Otherwise try loading by name only. - ctypes.CDLL(lib_name) - +from .libtiledb import Ctx from .array_schema import ArraySchema from .attribute import Attr from .cc import TileDBError