Skip to content

Commit

Permalink
Remove libtiledb logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed May 21, 2024
1 parent f73dcb8 commit a456a6d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions tiledb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a456a6d

Please sign in to comment.